/* Love Your Package — app mockup components (concept UI, not a real app) */

/* ---------- browser chrome frame ---------- */

.browser-frame {
  background: #10101c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-frame__dots {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.browser-frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.browser-frame__url {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Consolas', ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame__ext {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e94560, #ff9a5a);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.browser-frame__body {
  background: #12121f;
}

/* ---------- app shell ---------- */

.app {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 420px;
}

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
  }
  .app__sidebar {
    display: none;
  }
}

.app__sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0.75rem;
}

.app__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 0.5rem 1rem;
  color: #fff;
}

.app-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.app-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.app-nav a.is-active {
  background: rgba(233, 69, 96, 0.16);
  color: #fff;
  font-weight: 600;
}

.app-nav .count {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.05rem 0.45rem;
}

.app__main {
  padding: 1.25rem;
  min-width: 0;
}

.app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.app__title {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.app__search {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  min-width: 180px;
}

/* ---------- stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.stat__n {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat__l {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
}

.stat--cool .stat__n { color: #4ea8de; }
.stat--ok .stat__n { color: #4ecd8a; }
.stat--warn .stat__n { color: #ffb454; }

/* ---------- filter tabs ---------- */

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.tab {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

.tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.tab.is-active {
  background: #fff;
  border-color: #fff;
  color: #12121f;
  font-weight: 600;
}

/* ---------- package rows ---------- */

.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pkg {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 0.85rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

a.pkg:hover {
  border-color: rgba(255, 154, 90, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.pkg__thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.08);
}

.pkg__body {
  min-width: 0;
}

.pkg__merchant {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.15rem;
}

.pkg__item {
  font-size: 0.925rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.pkg__right {
  text-align: right;
  flex-shrink: 0;
}

.pkg__eta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .pkg {
    grid-template-columns: 38px 1fr;
  }
  .pkg__right {
    grid-column: 2;
    text-align: left;
  }
}

/* ---------- pills & tags ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--transit { background: rgba(78, 168, 222, 0.16); color: #6cbdee; }
.pill--out     { background: rgba(255, 180, 84, 0.16); color: #ffb454; }
.pill--done    { background: rgba(78, 205, 138, 0.16); color: #4ecd8a; }
.pill--issue   { background: rgba(233, 69, 96, 0.18); color: #ff7189; }
.pill--label   { background: rgba(255, 255, 255, 0.09); color: rgba(255,255,255,0.6); }

.carrier {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- progress ---------- */

.progress {
  display: flex;
  gap: 3px;
  margin-top: 0.55rem;
}

.progress span {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.progress span.on { background: #4ea8de; }
.progress span.done { background: #4ecd8a; }
.progress span.warn { background: #ffb454; }

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline li {
  position: relative;
  padding-bottom: 1.15rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #12121f;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.timeline li.is-current::before {
  border-color: #4ea8de;
  background: #4ea8de;
  box-shadow: 0 0 0 4px rgba(78, 168, 222, 0.18);
}

.timeline li.is-done::before {
  border-color: #4ecd8a;
  background: #4ecd8a;
}

.timeline__t {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.timeline__m {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.1rem;
}

/* ---------- panels ---------- */

.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 1rem;
}

.panel__h {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.75rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.825rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kv:last-child { border-bottom: none; }
.kv dt { color: rgba(255, 255, 255, 0.45); }
.kv dd { color: #fff; text-align: right; font-weight: 500; }

/* ---------- warranty cards ---------- */

.war-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.war {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.95rem;
}

.war__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.war__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.war__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.war__brand {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
}

.war__bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.war__bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ecd8a, #4ecdc4);
}

.war__bar i.warn { background: linear-gradient(90deg, #ffb454, #ff9a5a); }
.war__bar i.gone { background: rgba(255, 255, 255, 0.2); }

.war__exp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.7rem;
}

.docs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.doc {
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  background: rgba(78, 168, 222, 0.14);
  color: #7cc4ee;
  border: 1px solid rgba(78, 168, 222, 0.25);
}

/* ---------- email mock ---------- */

.mail {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
}

.mail__head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mail__subj {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.mail__from {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.mail__body {
  padding: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.mail__body p { margin-bottom: 0.75rem; }
.mail__body p:last-child { margin-bottom: 0; }

mark.scan {
  background: rgba(255, 180, 84, 0.22);
  color: #ffd9a0;
  border-bottom: 2px solid #ffb454;
  border-radius: 3px;
  padding: 0.05em 0.25em;
  font-family: 'Consolas', ui-monospace, monospace;
  font-size: 0.9em;
}

/* ---------- extension popup ---------- */

.popup {
  width: 100%;
  max-width: 320px;
  background: #16162a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.popup__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.2), rgba(255, 154, 90, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.825rem;
  font-weight: 600;
}

.popup__body {
  padding: 0.9rem;
}

.detect {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(78, 205, 138, 0.1);
  border: 1px solid rgba(78, 205, 138, 0.3);
  border-radius: 8px;
  padding: 0.7rem;
  margin-bottom: 0.75rem;
}

.detect__i {
  color: #4ecd8a;
  font-size: 0.95rem;
  line-height: 1.2;
}

.detect__t {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.detect__d {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Consolas', ui-monospace, monospace;
}

.popup__btn {
  display: block;
  width: 100%;
  padding: 0.55rem;
  border: none;
  border-radius: 7px;
  background: linear-gradient(90deg, #e94560, #ff9a5a);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* ---------- demo caption ---------- */

.demo-cap {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  margin-top: 0.85rem;
  font-style: italic;
}

/* ---------- side-by-side demo layout ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 800px) {
  .duo {
    grid-template-columns: 1fr;
  }
}
