/* ==========================================================================
   Dynasty Game Store — storefront shell + Product List / Product Detail
   Loaded after StyleSheet.css. Prefixes: sf- (shared shell), pl- (list), pd- (detail).
   Tokens come from styleguide.css (:root) and the existing component vocabulary.
   ========================================================================== */

:root {
    --sf-card: #171b2a;
    --sf-card-deep: #111114;
    --sf-pill: #2e354f;
    --sf-line: rgba(99, 207, 252, 0.10);
    --sf-line-strong: rgba(99, 207, 252, 0.18);
    --sf-muted: #bdbdbd;
    --sf-dim: #8992a3;
    --sf-ink: #131316;
    --sf-btn: linear-gradient(135deg, #17b6fb, #0c66f2);
    --sf-btn-light: linear-gradient(135deg, #63cffc, #17b6fb);
    --sf-tab: linear-gradient(90deg, rgba(0, 174, 220, 1) 0%, rgba(12, 102, 242, 1) 100%);
    --sf-orange: linear-gradient(135deg, #ff9500, #ffb340);
    --sf-rule: linear-gradient(90deg, rgba(9, 14, 26, 1) 0%, rgba(99, 207, 252, 1) 100%);
    --sf-header-h: 64px;
    --sf-font: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
}

/* ---------- shared shell ---------- */
.sf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sf-header-h);
    z-index: 50;
    background: linear-gradient(180deg, rgba(9, 14, 26, 0.95) 51%, rgba(9, 14, 26, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 207, 252, 0.08);
    font-family: var(--sf-font);
}

.sf-header__inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sf-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    cursor: pointer;
}

.sf-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.sf-nav {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-left: 12px;
    height: 100%;
}

.sf-nav a {
    display: flex;
    align-items: center;
    padding: 0 4px;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--sf-muted);
    white-space: nowrap;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.sf-nav a:hover { color: #ffffff; }

.sf-nav a.is-active {
    color: #ffffff;
    font-weight: 700;
    border-bottom-color: var(--primary-color);
}

.sf-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 360px;
    height: 40px;
    margin-left: 8px;
}

.sf-search svg {
    position: absolute;
    left: 14px;
    color: rgba(99, 207, 252, 0.7);
    pointer-events: none;
}

.sf-search input {
    width: 100%;
    height: 100%;
    padding: 0 40px 0 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(99, 207, 252, 0.14);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--sf-font);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sf-search input::placeholder { color: rgba(189, 189, 189, 0.55); }

.sf-search input:focus {
    border-color: rgba(99, 207, 252, 0.4);
    box-shadow: 0 0 20px rgba(23, 182, 251, 0.1);
}

.sf-search__clear {
    position: absolute;
    right: 8px;
    display: none;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    border-radius: 6px;
    color: var(--sf-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.sf-search.has-value .sf-search__clear { display: flex; }

.sf-header__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-iconbtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-line);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.sf-iconbtn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--sf-line-strong);
}

.sf-iconbtn__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--primary-color);
    color: var(--sf-ink);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-searchtoggle { display: none; }

.sf-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    background: var(--sf-btn-light);
    border: 0;
    border-radius: 8px;
    font-family: var(--sf-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--sf-ink);
    cursor: pointer;
    box-shadow: var(--shadow-glow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sf-login:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-md); }

.sf-account { position: relative; }

.sf-account__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-line);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sf-account__btn:hover { background: rgba(255, 255, 255, 0.08); }

.sf-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sf-btn-light);
    color: var(--sf-ink);
    flex: 0 0 auto;
}

.sf-account__label {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.sf-account__chev { color: var(--sf-muted); }

.sf-account__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    padding: 8px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
}

.sf-account__menu.is-open { display: block; }

.sf-account__email {
    padding: 8px 10px 10px;
    font-size: 12px;
    color: var(--sf-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 1px solid var(--sf-line);
    margin-bottom: 6px;
}

.sf-account__item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
}

.sf-account__item:hover { background: rgba(255, 255, 255, 0.06); }

.sf-account__item svg { color: var(--sf-muted); }

.sf-account__item--danger { color: #ff9c95; }

.sf-footer {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(99, 207, 252, 0.15);
    background: rgba(8, 14, 26, 0.6);
    font-family: var(--sf-font);
}

.sf-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sf-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.sf-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sf-footer__col img { height: 32px; width: auto; margin-bottom: 4px; }

.sf-footer__title { font-size: 13px; font-weight: 700; color: #ffffff; }

.sf-footer__col a,
.sf-footer__text {
    font-size: 13px;
    font-weight: 500;
    color: var(--sf-muted);
    line-height: 1.4;
}

.sf-footer__col a:hover { color: var(--primary-color); }

.sf-footer__text { max-width: 300px; }

.sf-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--sf-line);
    font-size: 12px;
    color: var(--sf-dim);
}

.sf-footer__secure { display: flex; align-items: center; gap: 6px; }
.sf-footer__secure svg { color: #63cffc; }

/* ---------- shared primitives ---------- */
.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--sf-orange);
    font-size: 11px;
    font-weight: 700;
    color: var(--sf-ink);
    white-space: nowrap;
}

.sf-badge--soft {
    background: rgba(99, 207, 252, 0.10);
    border: 1px solid rgba(99, 207, 252, 0.25);
    color: #63cffc;
    font-weight: 600;
}

.sf-badge--muted {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--sf-muted);
    font-weight: 600;
}

.sf-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    background: var(--sf-pill);
    border: 0;
    font-family: var(--sf-font);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sf-chip:hover { background: #3a4260; }

.sf-chip.is-active {
    background: var(--sf-tab);
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--shadow-glow-sm);
}

.sf-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    background: var(--sf-btn);
    border: 0;
    border-radius: 10px;
    font-family: var(--sf-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--sf-ink);
    cursor: pointer;
    box-shadow: var(--shadow-glow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.sf-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-md); }
.sf-btn:active { transform: translateY(0); }
.sf-btn--light { background: var(--sf-btn-light); }
.sf-btn--block { width: 100%; }
.sf-btn--lg { height: 50px; font-size: 16px; }

.sf-btn--ghost {
    background: transparent;
    border: 1px solid var(--sf-line-strong);
    color: #63cffc;
    box-shadow: none;
    font-weight: 600;
}

.sf-btn--ghost:hover { background: rgba(99, 207, 252, 0.06); box-shadow: none; }

.sf-rule {
    width: 226px;
    max-width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--sf-rule);
}

.sf-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: calc(var(--sf-header-h) + 16px);
}

.sf-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sf-section__heading { display: flex; flex-direction: column; gap: 8px; }
.sf-section__title { font-size: 22px; font-weight: 700; color: #ffffff; line-height: 1.2; }
.sf-section__sub { font-size: 13px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; }

.sf-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #63cffc;
    cursor: pointer;
}

.sf-link:hover { color: #ffffff; }

.sf-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
}

.sf-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(99, 207, 252, 0.14);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--sf-font);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sf-input::placeholder { color: rgba(189, 189, 189, 0.5); }
.sf-input:focus { border-color: rgba(99, 207, 252, 0.4); box-shadow: 0 0 20px rgba(23, 182, 251, 0.1); }
.sf-input:disabled { opacity: 0.55; cursor: not-allowed; }

.sf-empty {
    padding: 32px;
    text-align: center;
    color: rgba(189, 189, 189, 0.6);
    font-size: 15px;
    font-weight: 500;
    border: 1px dashed var(--sf-line-strong);
    border-radius: 12px;
}

.sf-hidden { display: none !important; }

/* ---------- product tiles (shared by list sections + AJAX cards) ---------- */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.pl-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    min-width: 0;
}

.pl-tile__art {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #030201;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pl-tile__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.pl-tile__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.pl-tile:hover .pl-tile__art {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--shadow-glow-sm);
}

.pl-tile:hover .pl-tile__art img { transform: scale(1.05); }

.pl-tile__badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 1;
}

.pl-tile__name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-tile__meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--sf-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- product list page ---------- */
.pl {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--sf-header-h) + 32px) 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    font-family: var(--sf-font);
    color: #ffffff;
}

.pl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
}

.pl-banner {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--sf-card);
}

.pl-banner__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pl-banner__slide {
    flex: 0 0 100%;
    height: 100%;
    cursor: pointer;
}

.pl-banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pl-banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 14, 26, 0.6);
    backdrop-filter: blur(6px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.pl-banner:hover .pl-banner__arrow { opacity: 1; }
.pl-banner__arrow:hover { background: rgba(23, 182, 251, 0.35); }
.pl-banner__arrow--prev { left: 14px; }
.pl-banner__arrow--next { right: 14px; }

.pl-banner__dots {
    position: absolute;
    left: 20px;
    bottom: 16px;
    display: flex;
    gap: 6px;
}

.pl-banner__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width var(--transition-normal), background var(--transition-normal);
}

.pl-banner__dot.is-active { width: 24px; background: var(--primary-color); }

.pl-trust {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.pl-trust__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    flex: 1 1 auto;
}

.pl-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sf-btn-light);
    color: var(--sf-ink);
    flex: 0 0 auto;
}

.pl-trust__icon--orange { background: var(--sf-orange); }
.pl-trust__title { font-size: 15px; font-weight: 700; }
.pl-trust__sub { font-size: 12px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; }

.pl-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pl-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.pl-cardsearch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-cardsearch .sf-input { width: 260px; height: 38px; font-size: 13px; }
.pl-cardsearch .sf-btn { height: 38px; padding: 0 16px; font-size: 13px; }

.pl-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pl-pager button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 18px;
    background: var(--sf-pill);
    font-family: var(--sf-font);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pl-pager button:hover { background: #3a4260; }

.pl-pager button.active {
    background: var(--sf-tab);
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--shadow-glow-sm);
}

.pl-pager span { color: var(--sf-dim); padding: 0 4px; }

/* ---------- product detail page ---------- */
.pd {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--sf-header-h) + 24px) 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--sf-font);
    color: #ffffff;
}

.pd-crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sf-dim);
}

.pd-crumbs a { color: var(--sf-dim); }
.pd-crumbs a:hover { color: #63cffc; }
.pd-crumbs strong { font-weight: 600; color: var(--sf-muted); }

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

.pd-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.pd-head { display: flex; align-items: flex-start; gap: 24px; }

.pd-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--sf-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.pd-head__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-head__title h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; }
.pd-head__note { font-size: 14px; font-weight: 500; color: var(--sf-muted); max-width: 640px; line-height: 1.5; margin: 0; white-space: pre-line; }
.pd-head__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-head__eta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sf-dim); }

.pd-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-step__left { display: flex; align-items: center; gap: 12px; }

.pd-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--sf-btn-light);
    color: var(--sf-ink);
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
}

.pd-step__title { font-size: 18px; font-weight: 700; }
.pd-step__sub { font-size: 13px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; }

.pd-regions { display: flex; flex-wrap: wrap; gap: 8px; }

.pd-denoms {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 6px;
}

.pd-denoms.is-visible { display: grid; }

.pd-denom {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px 14px;
    border-radius: 12px;
    border: 2px solid #004b73;
    background: rgba(23, 27, 42, 0.6);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.pd-denom:hover { border-color: rgba(23, 182, 251, 0.6); transform: translateY(-2px); }

.pd-denom.selected-topup {
    background: #004b73;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-md);
}

.pd-denom__tag {
    position: absolute;
    top: -10px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--sf-orange);
    font-size: 10px;
    font-weight: 800;
    color: var(--sf-ink);
}

.pd-denom__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--sf-ink);
    display: none;
    align-items: center;
    justify-content: center;
}

.pd-denom.selected-topup .pd-denom__check { display: flex; }
.pd-denom__face { font-size: 15px; font-weight: 600; padding-right: 24px; }
.pd-denom__prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd-denom__price { font-size: 18px; font-weight: 800; }
.pd-denom__old { font-size: 12px; font-weight: 500; color: var(--sf-muted); text-decoration: line-through; }

.pd-fields {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.pd-fields.is-visible { display: flex; }

.pd-fieldrow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.pd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-field__label { font-size: 13px; font-weight: 600; color: var(--sf-muted); }
.pd-field__hint { font-size: 12px; font-weight: 500; color: var(--sf-dim); }

.pd-verified {
    display: none;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ade88a;
    color: var(--sf-ink);
    font-size: 13px;
    font-weight: 600;
}

.pd-verified.is-visible { display: flex; }

.pd-desc { color: var(--sf-muted); font-size: 14px; line-height: 1.6; }
.pd-desc p { margin: 0 0 10px; }
.pd-desc ul, .pd-desc ol { margin: 0 0 10px; padding-left: 20px; }
.pd-desc img { max-width: 100%; height: auto; border-radius: 8px; }

/* summary */
.pd-summary {
    position: sticky;
    top: calc(var(--sf-header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
}

.pd-summary__title { font-size: 18px; font-weight: 700; }
.pd-summary__product { display: flex; align-items: center; gap: 12px; }
.pd-summary__product img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--sf-card-deep); }
.pd-summary__name { font-size: 15px; font-weight: 700; }
.pd-summary__region { font-size: 13px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; }
.pd-summary__divider { height: 1px; background: var(--sf-line); }
.pd-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.pd-summary__row .k { font-weight: 500; color: var(--sf-muted); }
.pd-summary__row .v { font-weight: 600; text-align: right; }
.pd-summary__row .v small { font-size: 13px; font-weight: 500; color: var(--sf-dim); text-decoration: line-through; margin-right: 8px; }
.pd-summary__total { display: flex; align-items: baseline; justify-content: space-between; }
.pd-summary__total .k { font-size: 16px; font-weight: 700; }
.pd-summary__total .v { font-size: 24px; font-weight: 800; }
.pd-summary__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--sf-dim); }
.pd-summary__note svg { color: #63cffc; }

.pd-qty { display: flex; align-items: center; gap: 6px; }

.pd-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--sf-pill);
    color: #ffffff;
    cursor: pointer;
}

.pd-qty__btn:hover { background: #3a4260; }

.pd-qty input {
    width: 48px;
    height: 36px;
    text-align: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-family: var(--sf-font);
    font-size: 16px;
    font-weight: 700;
    outline: none;
    -moz-appearance: textfield;
}

.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* select2 inside the detail form */
.pd .select2-container--default .select2-selection--single {
    height: 46px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(99, 207, 252, 0.14);
    border-radius: 10px;
}

.pd .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    color: #ffffff;
    font-family: var(--sf-font);
    font-size: 15px;
    font-weight: 500;
}

.pd .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pl-hero { grid-template-columns: 1fr; }
    .pl-trust { flex-direction: row; }
    .pl-trust__card { padding: 14px; }
}

@media (max-width: 1024px) {
    .pd-layout { grid-template-columns: 1fr; gap: 24px; }
    .pd-denoms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pd { padding-bottom: 120px; }

    .pd-summary {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 40;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-radius: 0;
        border: 0;
        border-top: 1px solid var(--sf-line-strong);
        background: rgba(9, 14, 26, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .pd-summary__title,
    .pd-summary__product,
    .pd-summary__divider,
    .pd-summary__row,
    .pd-summary__note,
    .pd-summary .sf-btn--ghost { display: none; }

    .pd-summary__total { order: 1; flex-direction: column; align-items: flex-start; gap: 0; flex: 1 1 auto; min-width: 0; white-space: nowrap; }
    .pd-summary__total .k { font-size: 11px; font-weight: 500; color: var(--sf-dim); }
    .pd-summary__total .v { font-size: 18px; }
    .pd-summary__qtywrap { order: 2; display: flex; align-items: center; gap: 10px; }
    .pd-summary__qtywrap .k { display: none; }
    .pd-summary .sf-btn--block { width: auto; min-width: 0; height: 46px; padding: 0 18px; }
    .pd-summary__actions { order: 3; display: flex; align-items: center; gap: 10px; }
    .pd-qty__btn { width: 36px; height: 36px; }
    .pd-qty input { width: 34px; font-size: 15px; }
    .pd-summary__qtywrap .pd-qty { gap: 4px; }
}

@media (max-width: 768px) {
    .sf-nav { display: none; }
    .sf-account__label, .sf-account__chev { display: none; }
    .sf-account__btn { padding: 0 6px; width: 40px; justify-content: center; }
    .sf-header__inner { padding: 0 16px; gap: 10px; }
    .sf-logo img { height: 32px; }
    .sf-searchtoggle { display: flex; }

    .sf-search {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 10px 16px 12px;
        background: rgba(9, 14, 26, 0.96);
        border-bottom: 1px solid var(--sf-line);
    }

    .sf-search.is-open { display: flex; }
    .sf-search svg { left: 30px; }
    .sf-search input { height: 44px; border-radius: 12px; }
    .sf-search__clear { right: 24px; }

    .sf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

    .pl { padding: calc(var(--sf-header-h) + 16px) 16px 56px; gap: 32px; }
    .pl-banner { height: 170px; border-radius: 14px; }
    .pl-banner__arrow { opacity: 1; width: 34px; height: 34px; }
    .pl-trust { flex-direction: column; gap: 8px; }
    .pl-trust__card { padding: 10px 12px; gap: 10px; border-radius: 10px; }
    .pl-trust__icon { width: 32px; height: 32px; border-radius: 8px; }
    .pl-trust__icon svg { width: 16px; height: 16px; }
    .pl-trust__title { font-size: 13px; }
    .pl-trust__sub { font-size: 11px; }
    .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .pl-tile__art { border-radius: 10px; }
    .pl-tile__name { font-size: 12px; }
    .pl-tile__meta { font-size: 11px; }
    .pl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
    .pl-chips::-webkit-scrollbar { display: none; }
    .pl-chips .sf-chip { height: 34px; padding: 0 12px; font-size: 12px; }
    .pl-cardsearch { width: 100%; }
    .pl-cardsearch .sf-input { flex: 1 1 auto; width: auto; }
    .sf-section__title { font-size: 18px; }
    .sf-rule { width: 120px; }

    .pd { padding: calc(var(--sf-header-h) + 12px) 16px 120px; gap: 16px; }
    .pd-head { gap: 14px; }
    .pd-icon { width: 64px; height: 64px; border-radius: 14px; }
    .pd-head__title h1 { font-size: 20px; }
    .pd-head__note { font-size: 13px; }
    .sf-panel { padding: 16px; }
    .pd-step__title { font-size: 16px; }
    .pd-denoms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pd-denom { padding: 14px 12px 12px; }
    .pd-denom__price { font-size: 16px; }
    .pd-fieldrow { grid-template-columns: 1fr; }
    .pd-regions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
    .pd-regions::-webkit-scrollbar { display: none; }
    .pd-regions .sf-chip { height: 34px; padding: 0 12px; font-size: 13px; }
}

@media (max-width: 420px) {
    .sf-footer__grid { grid-template-columns: 1fr; }
    .pd-summary .sf-btn--block { min-width: 0; padding: 0 18px; }
}

/* ==========================================================================
   Account shell (ac-), Cart (ct-), Checkout (co-), My Orders (od-)
   ========================================================================== */
.ac-title { margin: 0; font-size: 28px; font-weight: 700; color: #ffffff; line-height: 1.15; }
.ac-sub { font-size: 14px; font-weight: 500; color: var(--sf-dim); margin-top: 4px; }

.ac-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sf-card-deep);
    white-space: nowrap;
}

.ac-chip--green { background: #ade88a; box-shadow: 0 0 8px rgba(173, 232, 138, 0.2); }
.ac-chip--amber { background: #ffdf8b; box-shadow: 0 0 8px rgba(255, 223, 139, 0.2); }
.ac-chip--yellow { background: #fff98d; box-shadow: 0 0 8px rgba(255, 249, 141, 0.2); }
.ac-chip--grey { background: #e0e0e0; }

.sf-avatar--lg { width: 44px; height: 44px; }

.ac {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--sf-header-h) + 32px) 20px 72px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    font-family: var(--sf-font);
    color: #ffffff;
}

.ac-side {
    width: 260px;
    flex: 0 0 auto;
    position: sticky;
    top: calc(var(--sf-header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
}

.ac-side__user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; min-width: 0; }
.ac-side__email { font-size: 13px; font-weight: 600; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ac-side__menu { display: flex; flex-direction: column; gap: 4px; }

.ac-side__item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sf-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.ac-side__item:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; }

.ac-side__item.is-active {
    background: var(--sf-tab);
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-glow-sm);
}

.ac-side__item--muted { margin-top: 8px; border-top: 1px solid var(--sf-line); border-radius: 0 0 10px 10px; color: var(--sf-dim); }

.ac-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- cart ---------- */
.ct {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--sf-header-h) + 32px) 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--sf-font);
    color: #ffffff;
}

.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.ct-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px 4px; font-size: 14px; font-weight: 600; color: var(--sf-muted); }

.ct-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; position: relative; }
.ct-check input { position: absolute; opacity: 0; width: 0; height: 0; }

.ct-check__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(99, 207, 252, 0.4);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.ct-check__box::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2.5px solid var(--sf-ink);
    border-bottom: 2.5px solid var(--sf-ink);
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
}

.ct-check input:checked + .ct-check__box { background: var(--primary-color); border-color: var(--primary-color); }
.ct-check input:checked + .ct-check__box::after { opacity: 1; }
.ct-check input:focus-visible + .ct-check__box { outline: 2px solid rgba(99, 207, 252, 0.6); outline-offset: 2px; }

.ct-item {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr) auto auto 110px auto;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    transition: opacity var(--transition-fast);
}

.ct-item.is-unchecked { opacity: 0.55; }
.ct-item__img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--sf-card-deep); }
.ct-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-item__name { font-size: 15px; font-weight: 700; }
.ct-item__value { font-size: 13px; font-weight: 600; color: #63cffc; }
.ct-item__details { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--sf-dim); }
.ct-item__details strong { font-weight: 600; color: var(--sf-muted); }
.ct-item__disc { margin-top: 4px; width: fit-content; }
.ct-item__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ct-item__old { font-size: 12px; font-weight: 500; color: var(--sf-dim); text-decoration: line-through; }
.ct-item__unit { font-size: 15px; font-weight: 700; }
.ct-item__total { font-size: 16px; font-weight: 800; text-align: right; }

.ct-qty-input {
    width: 44px;
    height: 36px;
    text-align: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-family: var(--sf-font);
    font-size: 16px;
    font-weight: 700;
    outline: none;
    -moz-appearance: textfield;
}

.ct-qty-input::-webkit-outer-spin-button,
.ct-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ct-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sf-dim);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.ct-item__remove:hover { background: rgba(255, 156, 149, 0.12); color: #ff9c95; }

.ct-summary,
.co-summary {
    position: sticky;
    top: calc(var(--sf-header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
}

.ct-summary__title, .co-summary__title { font-size: 18px; font-weight: 700; }
.ct-summary__row, .co-summary__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 14px; }
.ct-summary__row .k, .co-summary__row .k { font-weight: 500; color: var(--sf-muted); min-width: 0; }
.ct-summary__row .v, .co-summary__row .v { font-weight: 600; white-space: nowrap; }
.co-summary__row .v.is-credit { color: #ade88a; }
.ct-summary__divider, .co-summary__divider { height: 1px; background: var(--sf-line); }
.ct-summary__total, .co-summary__total { display: flex; align-items: baseline; justify-content: space-between; }
.ct-summary__total .k, .co-summary__total .k { font-size: 16px; font-weight: 700; }
.ct-summary__total .v, .co-summary__total .v { font-size: 26px; font-weight: 800; }
.ct-summary__link { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; color: #63cffc; }
.ct-summary__note, .co-summary__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--sf-dim); text-align: center; }
.ct-summary__note svg, .co-summary__note svg { color: #63cffc; flex: 0 0 auto; }

.sf-btn.is-disabled, .sf-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.ct-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 64px 24px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    text-align: center;
}

.ct-empty__icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: rgba(99, 207, 252, 0.1); color: #63cffc; margin-bottom: 8px; }
.ct-empty__title { font-size: 20px; font-weight: 700; }
.ct-empty__sub { font-size: 14px; color: var(--sf-dim); margin-bottom: 12px; }

/* ---------- checkout ---------- */
.co {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--sf-header-h) + 32px) 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: var(--sf-font);
    color: #ffffff;
}

.co-head { display: flex; flex-direction: column; gap: 16px; }
.co-steps { display: flex; align-items: center; gap: 12px; width: 520px; max-width: 100%; }
.co-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sf-dim); white-space: nowrap; }
.co-step.is-current { color: #ffffff; font-weight: 700; }
.co-step.is-done { color: var(--sf-muted); }

.co-step__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--sf-line-strong);
    font-size: 12px;
    font-weight: 700;
    color: var(--sf-dim);
}

.co-step.is-current .co-step__dot { background: var(--sf-btn-light); border: 0; color: var(--sf-ink); font-weight: 800; }
.co-step.is-done .co-step__dot { background: var(--primary-color); border: 0; color: var(--sf-ink); }
.co-step__line { flex: 1 1 auto; height: 1px; background: var(--sf-line); }
.co-step__line.is-done { background: var(--sf-line-strong); }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.co-main { min-width: 0; }
.co-main form { display: flex; flex-direction: column; gap: 24px; }
.co-panel__title { font-size: 18px; font-weight: 700; }

.co-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--sf-line);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.co-method:hover { border-color: rgba(23, 182, 251, 0.4); }
.co-method.is-selected { border-color: var(--primary-color); background: rgba(0, 75, 115, 0.35); }
.co-method.is-unavailable { opacity: 0.5; cursor: not-allowed; }
.co-method.is-unavailable:hover { border-color: var(--sf-line); }

.co-method__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.co-method.is-selected .co-method__radio { border-color: var(--primary-color); }
.co-method.is-selected .co-method__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-color); }

.co-method__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sf-pill); color: var(--sf-muted); flex: 0 0 auto; }
.co-method.is-selected .co-method__icon { color: #63cffc; }
.co-method__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-method__title { font-size: 15px; font-weight: 700; }
.co-method__sub { font-size: 12px; font-weight: 500; color: var(--sf-dim); line-height: 1.4; }

.co-bank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sf-line);
}

.co-bank__label { font-size: 12px; font-weight: 500; color: var(--sf-dim); }
.co-bank__acct { font-size: 15px; font-weight: 700; margin-top: 2px; }
.co-bank__name { font-size: 13px; font-weight: 500; color: var(--sf-muted); }
.co-bank .sf-btn { height: 38px; font-size: 13px; }

.co .sf-input[type="datetime-local"] { color-scheme: dark; }
.co .sf-input[type="number"] { -moz-appearance: textfield; }
.co .sf-input[type="number"]::-webkit-outer-spin-button,
.co .sf-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.co-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px;
    border: 1px dashed rgba(99, 207, 252, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.co-drop:hover, .co-drop.is-over { background: rgba(99, 207, 252, 0.06); border-color: rgba(99, 207, 252, 0.6); }
.co-drop__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(99, 207, 252, 0.1); color: #63cffc; margin-bottom: 4px; }
.co-drop__title { font-size: 15px; font-weight: 600; }
.co-drop__sub { font-size: 12px; font-weight: 500; color: var(--sf-dim); }

.co-file {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-line);
}

.co-file.is-visible { display: flex; }
.co-file__preview { display: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.co-file__icon { color: #63cffc; display: flex; }
.co-file__name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-file__remove { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--sf-dim); cursor: pointer; }
.co-file__remove:hover { background: rgba(255, 156, 149, 0.12); color: #ff9c95; }

/* ---------- my orders ---------- */
.od-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.od-toolbar .sf-chip { text-decoration: none; }

.od-search { position: relative; display: flex; align-items: center; gap: 8px; }
.od-search > svg { position: absolute; left: 12px; color: rgba(99, 207, 252, 0.7); pointer-events: none; }
.od-search .sf-input { width: 320px; height: 38px; padding-left: 36px; font-size: 13px; }
.od-search .sf-btn { height: 38px; padding: 0 16px; font-size: 13px; }

.od-card {
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.od-card:hover { border-color: var(--sf-line-strong); box-shadow: var(--shadow-glow-sm); }
.od-card:focus-visible { outline: 2px solid rgba(99, 207, 252, 0.6); }

.od-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--sf-line); }
.od-card__num { font-size: 15px; font-weight: 700; }
.od-card__date { font-size: 13px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; }
.od-card__right { display: flex; align-items: center; gap: 16px; }
.od-card__amount { font-size: 18px; font-weight: 800; }

.od-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) 50px 90px 110px; align-items: center; gap: 16px; padding: 12px 20px; }
.od-line + .od-line { border-top: 1px solid rgba(99, 207, 252, 0.05); }
.od-line__img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--sf-card-deep); }
.od-line__body { min-width: 0; }
.od-line__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-line__value { font-size: 12px; font-weight: 500; color: var(--sf-dim); }
.od-line__qty { font-size: 13px; font-weight: 500; color: var(--sf-muted); }
.od-line__price { font-size: 14px; font-weight: 600; text-align: right; }
.od-line__status { display: flex; justify-content: flex-end; }
.od-card__foot { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--sf-line); }

.od-pager { padding-top: 8px; }
.od-pager__nav { display: inline-flex; gap: 6px; }
.od-pager .sf-chip { height: 36px; min-width: 36px; justify-content: center; padding: 0 12px; font-size: 13px; text-decoration: none; }
.od-pager .pagination-button { min-width: 36px; height: 36px; padding: 0; border: 0; border-radius: 18px; background: var(--sf-pill); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1024px) {
    .ct-layout, .co-layout { grid-template-columns: 1fr; gap: 24px; }
    .ct-summary, .co-summary { position: static; }
    .ac { flex-direction: column; align-items: stretch; gap: 20px; }
    .ac-main { width: 100%; }
    .ac-side { position: static; width: 100%; flex-direction: row; align-items: center; gap: 8px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
    .ac-side::-webkit-scrollbar { display: none; }
    .ac-side__user { display: none; }
    .ac-side__menu { flex-direction: row; gap: 6px; }
    .ac-side__item { height: 38px; padding: 0 12px; white-space: nowrap; font-size: 13px; }
    .ac-side__item--muted { margin-top: 0; border-top: 0; border-radius: 10px; }
    .od-line { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .od-line__qty { grid-column: 3; grid-row: 1; text-align: right; }
    .od-line__price { grid-column: 3; grid-row: 2; }
    .od-line__status { grid-column: 2; grid-row: 2; justify-content: flex-start; }
}

@media (max-width: 768px) {
    .ct, .co, .ac { padding: calc(var(--sf-header-h) + 16px) 16px 56px; }
    .ct-item { grid-template-columns: auto 56px minmax(0, 1fr) auto; grid-template-areas: "check img body remove" "check img price price" "check img qty total"; gap: 8px 12px; padding: 14px; align-items: start; }
    .ct-item__check { grid-area: check; align-self: center; }
    .ct-item__img { grid-area: img; width: 56px; height: 56px; align-self: center; }
    .ct-item__body { grid-area: body; }
    .ct-item__remove { grid-area: remove; }
    .ct-item__price { grid-area: price; flex-direction: row; align-items: baseline; gap: 8px; }
    .ct-item__qty { grid-area: qty; justify-self: start; }
    .ct-item__total { grid-area: total; text-align: right; align-self: center; }
    .co-steps { width: 100%; }
    .od-toolbar { flex-direction: column; align-items: stretch; }
    .od-search .sf-input { width: 100%; }
    .od-search { width: 100%; }
    .od-card__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .od-card__right { width: 100%; justify-content: space-between; }
    .od-line { padding: 12px 14px; }
}

/* ==========================================================================
   My Account (pf-), My History (hf-), Order Detail (odd-), modals (sf-modal)
   ========================================================================== */
.pf-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.pf-row { display: flex; align-items: stretch; gap: 24px; }
.pf-account { flex: 1 1 0; min-width: 0; gap: 12px; }
.pf-wallet { width: 320px; flex: 0 0 auto; gap: 14px; background: rgba(0, 75, 115, 0.35); border-color: var(--sf-line-strong); }
.pf-wallet__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.pf-wallet__title svg { color: #63cffc; }
.pf-wallet__balance { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; margin-top: 2px; }
.pf-wallet__link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #63cffc; }

.pf-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pf-panel__title { font-size: 18px; font-weight: 700; }
.pf-panel__sub { font-size: 13px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; line-height: 1.4; }
.pf-identity { display: flex; align-items: center; gap: 12px; }
.pf-identity__name { font-size: 16px; font-weight: 700; }
.pf-identity__since { font-size: 12px; font-weight: 500; color: var(--sf-dim); margin-top: 2px; }

.pf-kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pf-kv__label { font-size: 13px; font-weight: 500; color: var(--sf-muted); }
.pf-kv__value { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.pf-kv__value--muted { font-weight: 500; color: var(--sf-dim); }
.pf-divider { height: 1px; background: var(--sf-line); }

.sf-switch {
    position: relative;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--sf-pill);
    cursor: pointer;
    flex: 0 0 auto;
    transition: background var(--transition-fast);
}

.sf-switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.sf-switch.is-on { background: var(--sf-btn-light); }
.sf-switch.is-on .sf-switch__knob { transform: translateX(20px); background: var(--sf-ink); }

.pf-form { gap: 14px; }
.pf-grid { display: grid; gap: 14px; }
.pf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-actions { display: flex; justify-content: flex-end; gap: 10px; }
.pf-inline { display: flex; gap: 10px; }
.pf-inline .sf-input { flex: 1 1 auto; min-width: 0; }

.sf-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.sf-select option { background: #171b2a; color: #ffffff; }
.sf-input[type="date"], .sf-input[type="datetime-local"] { color-scheme: dark; }

.pf-iplist { display: flex; flex-direction: column; gap: 8px; }
.pf-ip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--sf-line); }
.pf-ip__addr { font-family: Consolas, Menlo, monospace; font-size: 14px; font-weight: 600; }
.pf-ip__remove { border: 0; background: transparent; color: #ff9c95; font-family: var(--sf-font); font-size: 13px; font-weight: 600; cursor: pointer; }
.pf-iprow { display: flex; align-items: flex-end; gap: 10px; }
.pf-iprow .pd-field { flex: 1 1 auto; }

.pf-codebtn { height: 46px; width: 120px; flex: 0 0 auto; }
.pf-codebtn__countdown { display: none; }
.pf-checkcode { display: none; }
.pf-checkcode.is-visible { display: block; }
.pf-pw { position: relative; }
.pf-pw .sf-input { padding-right: 60px; }
.pf-pw__toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #63cffc; font-family: var(--sf-font); font-size: 12px; font-weight: 600; cursor: pointer; }
.pf-pwhint { color: var(--sf-dim); }
.pf-pwhint.is-short { color: #ff9c95; }
.pf-pwhint.is-ok { color: #94f397; }
.pf-pwerror { display: none; color: #ff9c95; }
.pf-pwerror.is-visible { display: block; }

.pf-amount { padding: 14px 16px; border-radius: 12px; background: rgba(0, 75, 115, 0.35); border: 1px solid var(--sf-line-strong); }
.pf-amount__value { font-size: 26px; font-weight: 800; margin-top: 2px; }

.pf-success__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #ade88a; color: var(--sf-ink); margin: 0 auto 4px; }
.pf-success__rows { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--sf-line); text-align: left; }

/* ---------- modal ---------- */
.sf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 14, 26, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--sf-font);
    color: #ffffff;
    overflow-y: auto;
}

.sf-modal.is-open { display: flex; }

.sf-modal__card {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line-strong);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.sf-modal__card--center { align-items: center; text-align: center; max-width: 440px; }
.sf-modal__form { display: flex; flex-direction: column; gap: 16px; }
.sf-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-modal__title { font-size: 20px; font-weight: 700; }
.sf-modal__close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--sf-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.sf-modal__close:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.sf-modal__actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.sf-modal__actions .sf-btn { min-width: 120px; }

/* ---------- my history ---------- */
.hf-filters { gap: 12px; padding: 20px; }
.hf-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hf-filter__label { width: 100px; flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--sf-dim); }
.hf-filter .pl-chips .sf-chip { height: 34px; font-size: 13px; }
.hf-dates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hf-date { width: 170px; height: 40px; font-size: 13px; }
.hf-dates__to { font-size: 13px; color: var(--sf-dim); }
.hf-dates .sf-btn { height: 40px; padding: 0 18px; font-size: 13px; }
.hf-filter .pd-field__hint { width: 100%; padding-left: 112px; }

.hf-tablewrap { background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: 14px; overflow-x: auto; }
.hf-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.hf-table th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--sf-dim); white-space: nowrap; }
.hf-table td { padding: 14px 16px; font-size: 13px; font-weight: 500; color: #ffffff; border-top: 1px solid var(--sf-line); vertical-align: middle; white-space: nowrap; }
.hf-table .is-right { text-align: right; }
.hf-table .is-center { text-align: center; }
.hf-table .hf-muted { color: var(--sf-muted); }
.hf-table .hf-strong { font-weight: 600; }
.hf-table .hf-mono { font-family: Consolas, Menlo, monospace; }
.hf-table tr.is-clickable { cursor: pointer; }
.hf-table tr.is-clickable:hover td { background: rgba(255, 255, 255, 0.03); }
.hf-invoice { border: 0; background: transparent; font-family: var(--sf-font); font-size: 13px; }
.hf-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hf-pager__count { font-size: 13px; color: var(--sf-dim); }
.hf-pager .od-pager { padding-top: 0; }
.hf-pager .pagenum { cursor: pointer; }

/* ---------- order detail ---------- */
.odd-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.odd-head__num { font-size: 22px; font-weight: 700; }
.odd-head__meta { font-size: 13px; font-weight: 500; color: var(--sf-dim); margin-top: 4px; }
.odd-head__right { display: flex; align-items: center; gap: 16px; }
.odd-head__amount { font-size: 24px; font-weight: 800; }
.odd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.odd-lines { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.odd-line { gap: 10px; padding: 20px; }
.odd-line__top { display: flex; align-items: flex-start; gap: 16px; }
.odd-line__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--sf-card-deep); flex: 0 0 auto; }
.odd-line__body { flex: 1 1 auto; min-width: 0; }
.odd-line__name { font-size: 16px; font-weight: 700; }
.odd-line__qty { font-size: 13px; font-weight: 500; color: var(--sf-muted); margin-top: 2px; }
.odd-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.odd-line__price { font-size: 16px; font-weight: 800; }
.odd-line__status { display: flex; align-items: center; gap: 8px; }
.odd-line__date { font-size: 12px; font-weight: 500; color: var(--sf-dim); }
.odd-line__title { font-size: 13px; font-weight: 700; color: var(--sf-muted); }
.odd-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.odd-detail__k { font-size: 12px; font-weight: 500; color: var(--sf-dim); }
.odd-detail__v { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.odd-detail__v--mono { font-family: Consolas, Menlo, monospace; }
.odd-note { display: flex; align-items: flex-start; gap: 8px; width: fit-content; max-width: 100%; padding: 10px 12px; border-radius: 8px; background: #fff98d; color: var(--sf-ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
.odd-note svg { flex: 0 0 auto; margin-top: 2px; }
.odd-remark { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--sf-line); }
.odd-remark__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.odd-remark__text { font-size: 14px; font-weight: 500; line-height: 1.5; white-space: pre-line; }
.odd-remark__images { display: flex; gap: 10px; flex-wrap: wrap; }
.odd-remark__img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--sf-card-deep); }
.odd-summary { position: sticky; top: calc(var(--sf-header-h) + 24px); gap: 14px; }
.odd-summary__title { font-size: 18px; font-weight: 700; }
.odd-mono { font-family: Consolas, Menlo, monospace; }

@media (max-width: 1100px) {
    .pf-row { flex-direction: column; }
    .pf-wallet { width: 100%; }
    .odd-layout { grid-template-columns: 1fr; }
    .odd-summary { position: static; }
    .odd-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .pf-grid--2, .pf-grid--3 { grid-template-columns: 1fr; }
    .pf-kv { align-items: flex-start; }
    .pf-iprow { flex-direction: column; align-items: stretch; }
    .pf-iprow .sf-btn { width: 100%; }
    .sf-modal { padding: 12px; align-items: flex-end; }
    .sf-modal__card { padding: 20px; max-height: calc(100vh - 24px); }
    .sf-modal__actions { flex-direction: column-reverse; }
    .sf-modal__actions .sf-btn { width: 100%; }
    .hf-filter__label { width: 100%; }
    .hf-filter .pd-field__hint { padding-left: 0; }
    .hf-date { flex: 1 1 120px; width: auto; }
    .odd-head__right { width: 100%; justify-content: space-between; }
    .odd-line__top { flex-wrap: wrap; }
    .odd-line__right { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Auth shell (au-), info pages (in-, ab-, lg-, cu-), standalone states (st-)
   ========================================================================== */
.au-body, .st-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #080e1a 0%, #0a1225 50%, #080e1a 100%);
    font-family: var(--sf-font);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.au { display: flex; min-height: 100vh; }

.au-brand {
    position: relative;
    width: 52%;
    max-width: 760px;
    flex: 0 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    background: linear-gradient(160deg, #0a1225 0%, #080e1a 60%);
}

.au-brand__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.au-brand__glow--1 { left: -120px; top: -120px; background: #0c66f2; opacity: 0.25; }
.au-brand__glow--2 { right: -160px; bottom: -160px; background: #63cffc; opacity: 0.18; }
.au-brand__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.au-brand__logo img { height: 44px; width: auto; display: block; }
.au-brand__headline { display: flex; flex-direction: column; font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.au-brand__accent { color: #63cffc; }
.au-brand__sub { margin: 0; max-width: 440px; font-size: 16px; font-weight: 500; color: var(--sf-muted); line-height: 1.5; }
.au-brand__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.au-brand__bullets li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.au-brand__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--sf-btn-light); color: var(--sf-ink); flex: 0 0 auto; }
.au-brand__copy { position: absolute; left: 72px; bottom: 28px; font-size: 12px; color: var(--sf-dim); }

.au-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px;
    min-width: 0;
}

.au-main__logo { display: none; }
.au-main__logo img { height: 40px; width: auto; }
.au-main__copy { display: none; font-size: 12px; color: var(--sf-dim); }

.au-card {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    background: var(--sf-card);
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.au-card--wide { max-width: 520px; }
.au-card[hidden] { display: none; }
.au-back + div { flex: 1 1 auto; }
.au-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.au-card__title { font-size: 26px; font-weight: 700; line-height: 1.15; }
.au-card__sub { font-size: 14px; font-weight: 500; color: var(--sf-dim); margin-top: 4px; }
.au-back { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 4px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: #ffffff; cursor: pointer; flex: 0 0 auto; }
.au-back:hover { background: rgba(255, 255, 255, 0.08); }
.au-labelrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.au-link { font-size: 13px; font-weight: 700; color: #63cffc; }
.au-link:hover { color: #ffffff; }
.au-alt { display: flex; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--sf-dim); }
.au-text { margin: 0; font-size: 14px; font-weight: 500; color: var(--sf-muted); line-height: 1.5; }
.au-text strong { color: #ffffff; }
.au-hint { display: none; }
.au-hint.is-visible { display: block; }
.au-error { display: none; color: #ff9c95; }
.au-error.is-visible { display: block; }
.au-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--sf-dim); }
.au-divider::before, .au-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--sf-line); }

.au-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    border: 1px solid var(--sf-line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--sf-font);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.au-google:hover { background: rgba(255, 255, 255, 0.08); }
.au-google img { width: 20px; height: 20px; }

.au-otp { display: flex; justify-content: space-between; gap: 6px; }

.au-otp__input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(99, 207, 252, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--sf-font);
    font-size: 22px;
    font-weight: 800;
    outline: none;
    transition: border-color var(--transition-fast);
}

.au-otp__input:focus { border-color: var(--primary-color); }

.get-code-timer { display: none; }

/* ---------- info pages ---------- */
.in {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--sf-header-h) + 40px) 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-family: var(--sf-font);
    color: #ffffff;
}

.in-section { display: flex; flex-direction: column; gap: 16px; }
.in-text { margin: 0; font-size: 15px; font-weight: 500; color: var(--sf-muted); line-height: 1.65; max-width: 760px; }
.in-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; color: var(--sf-muted); line-height: 1.6; max-width: 760px; }
.in-list strong { color: #ffffff; font-weight: 600; }

.ab-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 8px; }
.ab-hero__title { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; max-width: 760px; }
.ab-hero__text { margin: 0; font-size: 16px; font-weight: 500; color: var(--sf-muted); line-height: 1.55; max-width: 620px; }
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: 14px; }
.ab-card__icon { width: 48px; height: 48px; object-fit: contain; }
.ab-card__title { font-size: 16px; font-weight: 700; }
.ab-card__text { font-size: 13px; font-weight: 500; color: var(--sf-dim); line-height: 1.5; }
.ab-commit { display: flex; align-items: flex-start; gap: 40px; }
.ab-commit__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; }
.ab-join { width: 380px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; background: rgba(0, 75, 115, 0.35); border: 1px solid var(--sf-line-strong); border-radius: 14px; }
.ab-join__title { font-size: 20px; font-weight: 700; }
.ab-join__text { margin: 0; font-size: 13px; font-weight: 500; color: var(--sf-dim); line-height: 1.5; }

.lg { flex-direction: row; align-items: flex-start; gap: 48px; }
.lg--single { justify-content: center; }
.lg-toc { position: sticky; top: calc(var(--sf-header-h) + 24px); width: 260px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.lg-toc__label { font-size: 12px; font-weight: 600; color: var(--sf-dim); margin-bottom: 4px; }
.lg-toc a { padding: 6px 10px; border-left: 2px solid var(--sf-line); font-size: 13px; font-weight: 500; color: var(--sf-muted); }
.lg-toc a:hover { color: #ffffff; border-left-color: var(--primary-color); }
.lg-body { flex: 1 1 auto; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.lg-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.lg-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.lg-updated { font-size: 13px; font-weight: 500; color: var(--sf-dim); }
.lg-section { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--sf-line); scroll-margin-top: calc(var(--sf-header-h) + 16px); }
.lg-section__title { margin: 0; font-size: 18px; font-weight: 700; }

.cu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cu-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: 14px; color: #ffffff; transition: border-color var(--transition-fast), transform var(--transition-fast); }
.cu-card:hover { border-color: var(--sf-line-strong); transform: translateY(-2px); }
.cu-card__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sf-btn-light); color: var(--sf-ink); }
.cu-card__icon--primary { background: var(--sf-orange); }
.cu-card__title { font-size: 16px; font-weight: 700; }
.cu-card__value { font-size: 15px; font-weight: 600; color: #63cffc; }
.cu-card__text { font-size: 13px; font-weight: 500; color: var(--sf-dim); line-height: 1.5; }
.cu-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--sf-muted); line-height: 1.5; }

/* ---------- standalone states ---------- */
.st { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 20px; text-align: center; }
.st__logo { height: 44px; width: auto; }
.st__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: rgba(99, 207, 252, 0.1); color: #63cffc; }
.st__code { font-size: 72px; font-weight: 800; color: rgba(99, 207, 252, 0.18); line-height: 1; letter-spacing: -2px; }
.st__title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.st__text { margin: 0; max-width: 460px; font-size: 16px; font-weight: 500; color: var(--sf-muted); line-height: 1.55; }
.st__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.st__copy { padding-top: 24px; font-size: 12px; color: var(--sf-dim); }

@media (max-width: 1024px) {
    .au { flex-direction: column; }
    .au-brand { display: none; }
    .au-main { padding: 24px 16px 32px; justify-content: flex-start; }
    .au-main__logo { display: block; padding: 8px 0; }
    .au-main__copy { display: block; }
    .au-card { padding: 24px; }
    .ab-grid, .cu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-commit { flex-direction: column; }
    .ab-join { width: 100%; }
    .lg { flex-direction: column; gap: 24px; }
    .lg-toc { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .lg-toc__label { width: 100%; }
    .lg-toc a { border-left: 0; padding: 6px 10px; border-radius: 16px; background: var(--sf-pill); }
}

@media (max-width: 768px) {
    .in { padding: calc(var(--sf-header-h) + 20px) 16px 56px; gap: 28px; }
    .ab-hero__title { font-size: 28px; }
    .ab-grid, .cu-grid { grid-template-columns: 1fr; }
    .lg-title { font-size: 28px; }
    .au-otp__input { height: 48px; font-size: 18px; border-radius: 8px; }
    .st__title { font-size: 24px; }
    .st__code { font-size: 56px; }
}
