/* ─────────────────────────────────────────────────────────────────
   styles.css — IdentiFiber by WayTek
   Visual design only. No logic lives here.
───────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #111111;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

/* ── App shell ── */
#fmp {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: linear-gradient(150deg, #181818 0%, #1a1f2c 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
               'Segoe UI', system-ui, sans-serif;
  color: #e8e8e8;
  border-top: 3px solid #00C9B8;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
#fmp-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 13px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

#fmp-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #f0f0f0;
}

#fmp-wt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #00C9B8;
  text-transform: uppercase;
}

/* ── Section layout ── */
.fmp-sec {
  padding: 16px 20px 0;
}

.fmp-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #909090;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.fmp-lbl-bar {
  width: 3px;
  height: 12px;
  background: #00C9B8;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Cable type segmented selector ── */
#fmp-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #252525;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid #383838;
}

.fmp-opt {
  height: 52px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: #3d3d3d;
  color: #d8d8d8;
  transition: opacity 0.1s;
}

.fmp-opt:active {
  opacity: 0.8;
  transform: scale(0.96);
}

/* ── Fiber number input ── */
#fmp-inp-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#fmp-inp-wrap {
  flex: 1;
  position: relative;
}

#fmp-hash {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
  color: #555555;
  pointer-events: none;
  line-height: 1;
}

#fmp-num {
  width: 100%;
  background: #272727;
  border: 2px solid #525252;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 26px;
  font-weight: 700;
  height: 60px;
  padding: 0 14px 0 34px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.12s;
}

#fmp-num::placeholder {
  color: #484848;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

#fmp-num:focus {
  border-color: #E8A020;
}

/* Hide browser number input arrows */
#fmp-num::-webkit-inner-spin-button,
#fmp-num::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* ── Look Up button ── */
#fmp-go-wrap {
  flex-shrink: 0;
}

#fmp-go {
  height: 60px;
  padding: 0 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  background: #E8A020;
  color: #000000;
  transition: opacity 0.12s, transform 0.1s;
}

#fmp-go:active {
  opacity: 0.85;
  transform: scale(0.96);
}

/* ── Error message ── */
#fmp-err {
  min-height: 22px;
  font-size: 12px;
  color: #E05252;
  margin-top: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Result card ── */
#fmp-card {
  margin: 14px 20px 0;
  flex: 1;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#fmp-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 10px;
}

.idle-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 201, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.idle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 201, 184, 0.25);
}

.idle-txt {
  color: #525252;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Result rows ── */
.fmp-rrow {
  padding: 15px 17px;
}

.fmp-rrow + .fmp-rrow {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fmp-rmeta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
}

.fmp-rlbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #606060;
  text-transform: uppercase;
}

.fmp-rnum {
  font-size: 12px;
  font-weight: 800;
  color: #E8A020;
  letter-spacing: 0.06em;
}

.fmp-rdot {
  color: #383838;
  font-size: 10px;
}

.fmp-fref {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  color: #424242;
  letter-spacing: 0.06em;
}

.fmp-crow {
  display: flex;
  align-items: center;
  gap: 13px;
}

.fmp-sw {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  flex-shrink: 0;
}

.fmp-cname {
  font-size: 28px;
  font-weight: 800;
  color: #f0f0f0;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.fmp-tbadge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-top: 6px;
  text-transform: uppercase;
}

.fmp-notrace {
  font-size: 10px;
  color: #484848;
  margin-top: 5px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Footer ── */
#fmp-foot {
  text-align: center;
  padding: 10px 20px 14px;
  font-size: 9px;
  color: #363636;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* ── Safe area for notched phones ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #fmp-foot {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* ── IdentiFiber name update additions ── */
#fmp-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#fmp-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f0f0f0;
  line-height: 1;
}

#fmp-tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #00C9B8;
  text-transform: uppercase;
  opacity: 0.75;
}

#fmp-wt {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #505050;
  text-transform: uppercase;
  align-self: flex-start;
  padding-top: 3px;
}
