* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 86, 255, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent),
        #0f1419;
    color: #e7e9ea;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: #1d9bf0; text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    background: rgba(22, 24, 28, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.logo { font-weight: 700; font-size: 1.2rem; color: #e7e9ea; text-decoration: none; }
.logo:hover { text-decoration: none; }

.shop-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: transform 0.2s ease;
}
.shop-brand:hover { transform: translateY(-1px); }
.shop-brand-gem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #7856ff 0%, #38bdf8 50%, #c084fc 100%);
    box-shadow: 0 0 20px rgba(120, 86, 255, 0.45);
    flex-shrink: 0;
}
.shop-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 0.05rem;
}
.shop-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #e9d5ff 0%, #c4b5fd 40%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.shop-brand-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a78bfa;
    opacity: 0.95;
}

.header nav,
.header-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ── Nav pills (shared style) ── */
.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(120, 86, 255, 0.12);
    color: #ddd6fe;
    box-shadow: 0 0 12px rgba(120, 86, 255, 0.12);
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-pill:hover {
    text-decoration: none;
    color: #f5f3ff;
    background: rgba(120, 86, 255, 0.22);
    border-color: rgba(196, 181, 253, 0.55);
    box-shadow: 0 0 16px rgba(120, 86, 255, 0.22);
    transform: translateY(-1px);
}
.nav-pill-accent {
    border-color: rgba(196, 181, 253, 0.5);
    background: linear-gradient(135deg, rgba(120, 86, 255, 0.85), rgba(56, 189, 248, 0.75));
    color: #fff;
    box-shadow: 0 0 18px rgba(120, 86, 255, 0.35);
}
.nav-pill-accent:hover {
    color: #fff;
    background: linear-gradient(135deg, #7856ff, #38bdf8);
    box-shadow: 0 0 22px rgba(120, 86, 255, 0.45);
}
.nav-pill-btn {
    cursor: pointer;
    font-family: inherit;
}
.nav-user {
    color: #71767b;
    font-size: 0.82rem;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.25rem;
}

.user-email { color: #71767b; font-size: 0.9rem; }
.logout-form { display: inline; margin: 0; }
.nav-link-btn {
    background: none;
    border: none;
    color: #1d9bf0;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}
.nav-link-btn:hover { text-decoration: underline; }

.main { flex: 1; max-width: 900px; width: 100%; margin: 0 auto; padding: 2rem 1rem; }
.main--catalog {
    max-width: 1280px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.footer {
    text-align: center;
    padding: 1rem;
    color: #71767b;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
    background: rgba(15, 20, 25, 0.6);
}

.flash-list { margin-bottom: 1rem; }
.flash { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; }
.flash-success { background: #003d1a; color: #00ba7c; }
.flash-error { background: #3d0a0a; color: #f4212e; }

.card {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.card h2, .card h3 { margin-bottom: 0.75rem; }

.btn {
    display: inline-block;
    background: #1d9bf0;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}
.btn:hover { background: #1a8cd8; text-decoration: none; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-outline {
    background: transparent;
    border: 1px solid #1d9bf0;
    color: #1d9bf0;
}
.btn-danger { background: #f4212e; }
.btn-block { width: 100%; text-align: center; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; color: #71767b; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid #2f3336;
    background: #0f1419;
    color: #e7e9ea;
}
.form-group textarea { min-height: 120px; resize: vertical; font-family: monospace; }

.product-card-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: block;
}
.product-detail-img {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    max-height: 540px;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: #0f1419;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: block;
}
.product-gallery {
    margin-bottom: 1rem;
    max-width: 960px;
    width: 100%;
}
.product-gallery-main {
    margin-left: auto;
    margin-right: auto;
}
.card-product-detail {
    padding: 0;
    overflow: hidden;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.card-product-detail .product-gallery {
    max-width: none;
    margin-bottom: 0;
}
.card-product-detail .product-detail-img {
    max-width: none;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
}
.card-product-detail .product-gallery-thumbs {
    padding: 0.75rem 1rem 0;
}
.card-product-detail-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.product-gallery-thumb {
    padding: 0;
    border: 2px solid #2f3336;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.product-gallery-thumb.is-active { border-color: #1d9bf0; }
.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.admin-image-item {
    text-align: center;
}
.admin-image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 0.35rem;
}
.product-admin-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.product-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
@media (min-width: 1024px) {
    .main--catalog .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}
.product-grid-empty {
    grid-column: 1 / -1;
    color: #71767b;
    padding: 1rem 0;
}
.main--catalog .product-card {
    padding: 1rem;
}
.main--catalog .product-card h3 {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    word-break: break-word;
}
.main--catalog .product-card .price {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.main--catalog .product-card-img {
    max-height: 130px;
    margin-bottom: 0.6rem;
}
.catalog-lead { margin-bottom: 1.25rem; }
.catalog-back { margin-bottom: 0.75rem; }
.catalog-section-title {
    margin: 1.75rem 0 0.85rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e7e9ea;
}
.catalog-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.1rem 0.45rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ddd6fe;
    background: rgba(120, 86, 255, 0.25);
    vertical-align: middle;
}
.product-card { transition: border-color 0.2s, transform 0.15s; }
.product-card:hover { border-color: #1d9bf0; }
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    border-color: #1d9bf0;
}
.card-disabled {
    opacity: 0.55;
    pointer-events: none;
}
.stock-ok { color: #00ba7c; }
.stock-out { color: #f4212e; }
.stock-contact { color: #1d9bf0; font-size: 0.9rem; margin-top: 0.25rem; font-weight: 600; }

.contact-only-box {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(29, 155, 240, 0.35);
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.08), rgba(120, 86, 255, 0.06));
}
.contact-only-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(29, 155, 240, 0.15);
    color: #1d9bf0;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}
.contact-only-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(29, 155, 240, 0.25);
    transition: transform 0.15s, box-shadow 0.2s;
}
.contact-only-cta:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(29, 155, 240, 0.35);
}
.contact-only-icon { font-size: 1.1rem; line-height: 1; }
.contact-only-fallback { margin-top: 0.75rem; }

.stock-reserved { color: #ffd400; font-size: 0.9rem; margin-top: 0.25rem; }
.order-pending-box {
    background: #0f1419;
    border: 1px solid #2f3336;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
}
.order-countdown {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd400;
    margin-bottom: 0.35rem;
}
.order-countdown-expired { color: #f4212e; }
.order-pending-row td { background: #12161a; border-bottom: 1px solid #2f3336; }
.badge-cancelled { background: #2f3336; color: #71767b; }
.btn-danger-block {
    border-color: #f4212e;
    color: #f4212e;
    width: 100%;
    margin-top: 0.5rem;
}
.btn-danger-block:hover {
    background: #3d0a0a;
    color: #f4212e;
    text-decoration: none;
}
.price { font-size: 1.4rem; font-weight: 700; color: #1d9bf0; margin: 0.5rem 0; }

.credentials-box {
    background: #0f1419;
    border: 2px dashed #00ba7c;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.1rem;
}
.credentials-box p { margin: 0.5rem 0; }

.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #2f3336;
    border-radius: 8px;
    cursor: pointer;
}
.payment-option:hover { border-color: #1d9bf0; }
.payment-option input { width: auto; }

.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #2f3336;
}
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.badge-paid { background: #003d1a; color: #00ba7c; }
.badge-pending { background: #3d3000; color: #ffd400; }
.badge-expired, .badge-cancelled { background: #3d0a0a; color: #f4212e; }

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.recv-block { margin: 1rem 0; }
.recv-channel { font-weight: 600; color: #1d9bf0; margin-bottom: 0.35rem; }
.recv-name { margin-bottom: 0.25rem; }
.recv-account {
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.1rem;
    color: #00ba7c;
    word-break: break-all;
}
.qr-box { display: none; text-align: center; margin: 1rem 0; }
.qr-box img { background: #fff; padding: 8px; border-radius: 8px; }
.qr-amount-line { font-size: 1.25rem; font-weight: 700; color: #00ba7c; margin-bottom: 0.5rem; }
.pay-label { display: block; color: #71767b; font-size: 0.85rem; margin-bottom: 0.35rem; }
.pay-file {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #2f3336;
    background: #0f1419;
    color: #e7e9ea;
    margin-bottom: 0.75rem;
}
.pay-divider { border: none; border-top: 1px solid #2f3336; margin: 1.25rem 0; }
.pay-msg {
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    display: none;
}
.pay-msg-ok { display: block; background: #003d1a; color: #00ba7c; }
.pay-msg-err { display: block; background: #3d0a0a; color: #f4212e; }
.thank-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.thank-overlay.show { opacity: 1; visibility: visible; }
.thank-box {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    min-width: 260px;
}
.thank-title { font-size: 1.75rem; font-weight: 700; color: #00ba7c; margin-bottom: 0.35rem; }
.thank-sub { color: #71767b; font-size: 0.95rem; }

.hint { color: #71767b; font-size: 0.9rem; margin-top: 0.5rem; }

.category-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #71767b;
}
.category-sort select {
    background: #16181c;
    color: #e7e9ea;
    border: 1px solid #2f3336;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
}

.search-panel {
    margin: 0 0 1.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: linear-gradient(
        135deg,
        rgba(22, 24, 28, 0.95) 0%,
        rgba(30, 27, 46, 0.88) 100%
    );
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(120, 86, 255, 0.08) inset,
        0 0 32px rgba(120, 86, 255, 0.06);
}
.search-panel-admin {
    padding: 1rem 1.15rem;
}
.search-panel-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}
.search-input-wrap {
    flex: 1 1 16rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0 0.85rem 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(15, 20, 25, 0.85);
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-input-wrap:focus-within {
    border-color: rgba(196, 181, 253, 0.65);
    background: rgba(15, 20, 25, 0.98);
    box-shadow:
        0 0 0 3px rgba(120, 86, 255, 0.18),
        0 0 20px rgba(120, 86, 255, 0.12);
}
.search-input-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.75;
    background-color: #a78bfa;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search-input-wrap:focus-within .search-input-icon {
    opacity: 1;
    background-color: #c4b5fd;
}
.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #e7e9ea;
    font-size: 0.98rem;
    padding: 0.55rem 0;
    outline: none;
}
.search-input::placeholder {
    color: #71767b;
}
.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 1rem;
    width: 1rem;
    margin-left: 0.25rem;
    cursor: pointer;
    opacity: 0.55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2371767b'%3E%3Cpath d='M18.3 5.71a1 1 0 00-1.41 0L12 10.59 7.11 5.7A1 1 0 105.7 7.11L10.59 12 5.7 16.89a1 1 0 101.41 1.41L12 13.41l4.89 4.89a1 1 0 001.41-1.41L13.41 12l4.89-4.89a1 1 0 000-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search-panel-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 9.5rem;
}
.search-panel-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #71767b;
}
.search-panel-select {
    min-height: 2.75rem;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(15, 20, 25, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371767b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    color: #e7e9ea;
    font-size: 0.92rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-panel-select:focus {
    outline: none;
    border-color: rgba(196, 181, 253, 0.65);
    box-shadow: 0 0 0 3px rgba(120, 86, 255, 0.18);
}
.search-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.btn-search {
    min-height: 2.75rem;
    padding: 0.55rem 1.35rem;
    border: none;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7856ff 0%, #5b8def 55%, #38bdf8 100%);
    box-shadow: 0 4px 16px rgba(120, 86, 255, 0.35);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-search:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(120, 86, 255, 0.45);
    transform: translateY(-1px);
}
.search-panel-clear {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}
@media (max-width: 639px) {
    .search-panel-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .search-panel-actions {
        width: 100%;
    }
    .search-panel-actions .btn-search,
    .search-panel-actions .search-panel-clear {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}

/* legacy aliases — kept for any old markup */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin: 0 0 1.25rem;
}
.admin-catalog-toolbar {
    margin-bottom: 0;
    padding: 1rem 1.25rem;
}
.catalog-toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 10rem;
}
.catalog-toolbar-field-grow {
    flex: 1 1 14rem;
    min-width: 12rem;
}
.catalog-toolbar-field label {
    font-size: 0.85rem;
    color: #71767b;
}
.catalog-toolbar-field input,
.catalog-toolbar-field select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #2f3336;
    background: #0f1419;
    color: #e7e9ea;
    font-size: 0.95rem;
}
.catalog-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.product-description {
    white-space: pre-line;
    line-height: 1.5;
    margin: 0.75rem 0 0;
}

/* ── Admin awake/sleep status ── */
.admin-status-card {
    border-width: 2px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.admin-status-awake {
    border-color: #1a6b3c;
    box-shadow: 0 0 24px rgba(0, 186, 124, 0.12);
}
.admin-status-sleep {
    border-color: #4a3d7a;
    box-shadow: 0 0 24px rgba(120, 86, 255, 0.15);
}
.admin-status-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.admin-status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-status-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.admin-status-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.admin-status-desc { margin: 0; font-size: 0.95rem; color: #b0b3b8; }
.admin-status-label.awake { color: #00ba7c; }
.admin-status-label.sleep { color: #a78bfa; }
.admin-status-hint { margin-top: 1rem; margin-bottom: 0; }

.status-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 999px;
    transition: transform 0.15s;
}
.status-toggle:hover { transform: scale(1.04); }
.status-toggle:active { transform: scale(0.97); }
.status-toggle-track {
    position: relative;
    width: 56px;
    height: 30px;
    border-radius: 999px;
    transition: background 0.3s, box-shadow 0.3s;
}
.status-toggle.is-on .status-toggle-track {
    background: linear-gradient(135deg, #00ba7c, #00a86b);
    box-shadow: 0 0 12px rgba(0, 186, 124, 0.45);
}
.status-toggle.is-off .status-toggle-track {
    background: linear-gradient(135deg, #5b4b8a, #3d3266);
    box-shadow: 0 0 12px rgba(120, 86, 255, 0.35);
}
.status-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.status-toggle.is-on .status-toggle-knob { transform: translateX(26px); }
.status-toggle-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    min-width: 2rem;
}
.status-toggle.is-on .status-toggle-text { color: #00ba7c; }
.status-toggle.is-off .status-toggle-text { color: #a78bfa; }

/* ── Shop contact button (Facebook + status) ── */
.contact-status-btn {
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border: 1px solid transparent;
}
.contact-status-btn:hover { transform: translateY(-1px); }
.contact-awake {
    background: rgba(0, 186, 124, 0.12);
    border-color: rgba(0, 186, 124, 0.35);
    color: #00ba7c;
    box-shadow: 0 0 16px rgba(0, 186, 124, 0.15);
}
.contact-awake:hover {
    background: rgba(0, 186, 124, 0.2);
    box-shadow: 0 0 20px rgba(0, 186, 124, 0.25);
    color: #00d68f;
}
.contact-sleep {
    background: rgba(120, 86, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.35);
    color: #c4b5fd;
    box-shadow: 0 0 16px rgba(120, 86, 255, 0.15);
}
.contact-sleep:hover {
    background: rgba(120, 86, 255, 0.22);
    box-shadow: 0 0 20px rgba(120, 86, 255, 0.28);
    color: #ddd6fe;
}
.contact-status-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.3s;
}
.contact-awake .contact-status-toggle {
    background: linear-gradient(135deg, #00ba7c, #008f5a);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 8px rgba(0, 186, 124, 0.4);
}
.contact-sleep .contact-status-toggle {
    background: linear-gradient(135deg, #6b5b95, #4a3d7a);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 8px rgba(120, 86, 255, 0.35);
}
.contact-status-knob {
    position: absolute;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.contact-awake .contact-status-knob { left: 18px; }
.contact-sleep .contact-status-knob { left: 2px; }
.contact-status-body {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0.05rem;
}
.contact-status-state {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}
.contact-status-channel {
    font-size: 0.8rem;
    font-weight: 600;
}
.contact-awake .contact-status-channel { color: #e7e9ea; }
.contact-sleep .contact-status-channel { color: #e7e9ea; }

@media (max-width: 640px) {
    .header-nav { gap: 0.4rem; }
    .nav-pill { font-size: 0.8rem; padding: 0.3rem 0.7rem; min-height: 2rem; }
    .contact-status-btn { padding: 0.3rem 0.65rem 0.3rem 0.35rem; }
    .nav-user { display: none; }
}
