@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --accent: #ff4d4d;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --store-toolbar-button-size: 3.25rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #ffffff;
    overflow-x: hidden;
}

.neon-glow {
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5), 0 0 20px rgba(255, 77, 77, 0.3);
}

.brand-lockup {
    min-width: 0;
}

.brand-logo {
    flex-shrink: 0;
}

.brand-title {
    font-size: clamp(2.5rem, 10vw, 5.625rem);
}

.btn-donate {
    background: linear-gradient(135deg, #ff4d4d 0%, #b30000 100%);
    transition: all 0.3s ease;
}

.tab-active {
    border-bottom: 3px solid var(--accent);
    color: var(--accent);
}

.glass {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

iframe {
    border-radius: 12px;
    background: #000;
}

.store-input,
.store-select,
.store-textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.store-select {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    background-image:
        linear-gradient(45deg, transparent 50%, #d2a17d 50%),
        linear-gradient(135deg, #d2a17d 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.18rem),
        calc(100% - 0.8rem) calc(50% - 0.18rem);
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

.store-select option,
.store-select optgroup {
    background: #17100e;
    color: #ffffff;
}

.store-input:focus,
.store-select:focus,
.store-textarea:focus {
    outline: none;
    border-color: rgba(255, 77, 77, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.store-textarea {
    min-height: 7rem;
    resize: vertical;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff4d4d 0%, #b30000 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-button:hover {
    transform: translateY(-1px);
}

.store-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.store-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.store-button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(255, 77, 77, 0.15);
    color: #ff9a9a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
}

.store-modal {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.store-hero {
    background:
        radial-gradient(circle at top left, rgba(255, 153, 94, 0.18), transparent 42%),
        radial-gradient(circle at top right, rgba(255, 77, 77, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(41, 23, 17, 0.96) 0%, rgba(18, 12, 10, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.store-trust-card {
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    padding: 1.4rem;
}

.store-trust-card__eyebrow {
    color: #8f7263;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.store-trust-card__title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    margin-top: 0.7rem;
}

.store-trust-card__body {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.7rem;
}

.store-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 2rem;
}

.store-policy-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    color: #ffffff;
    display: inline-flex;
    gap: 0.7rem;
    font-weight: 700;
    padding: 0.95rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.store-policy-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.store-toolbar {
    flex-shrink: 0;
}

.store-icon-button,
.store-avatar-button,
.store-close-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--store-toolbar-button-size);
    height: var(--store-toolbar-button-size);
    flex: 0 0 var(--store-toolbar-button-size);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.store-icon-button:hover,
.store-avatar-button:hover,
.store-close-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.store-icon-button i,
.store-close-button i {
    font-size: 1.1rem;
}

.store-icon-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    background: #f1b074;
    color: #1f130d;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3rem;
    text-align: center;
}

.store-avatar-button {
    overflow: hidden;
    padding: 0;
}

.store-avatar-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 9999px;
    transform: scale(1.06);
    transform-origin: center;
}

.store-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    background: linear-gradient(135deg, #7b3f2d 0%, #20130d 100%);
    color: #f7e2d4;
    text-transform: uppercase;
}

.store-account-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    right: 0;
    width: min(18rem, calc(100vw - 2rem));
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(23, 16, 14, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    z-index: 30;
}

.store-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    color: #ffffff;
    font-weight: 700;
    background: transparent;
    border: 0;
    text-align: left;
    transition: background 0.2s ease;
}

.store-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.store-menu-item i {
    width: 1rem;
    color: #d2a17d;
}

.store-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
}

.store-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(30rem, 100vw);
    height: 100vh;
    z-index: 40;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(38, 24, 19, 0.98) 0%, rgba(18, 12, 10, 0.99) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
}

.store-side-panel__header,
.store-side-panel__footer {
    padding: 1.5rem;
}

.store-side-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-side-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.store-side-panel__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.08);
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-status-badge[data-status="paid"] {
    background: rgba(72, 187, 120, 0.15);
    color: #8ff0b1;
}

.order-status-badge[data-status="pending_checkout"] {
    background: rgba(255, 184, 77, 0.16);
    color: #ffd38a;
}

.order-status-badge[data-status="printing"] {
    background: rgba(240, 171, 42, 0.16);
    color: #fcd34d;
}

.order-status-badge[data-status="refunded"],
.order-status-badge[data-status="reversed"],
.order-status-badge[data-status="cancelled"] {
    background: rgba(255, 77, 77, 0.16);
    color: #ffadad;
}

.order-status-badge[data-status="shipped"] {
    background: rgba(76, 140, 255, 0.16);
    color: #a9c4ff;
}

.order-status-badge[data-status="delivered"],
.order-status-badge[data-status="completed"] {
    background: rgba(72, 187, 120, 0.16);
    color: #8ff0b1;
}

.admin-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d1d5db;
    font-weight: 800;
    padding: 0.85rem 1.1rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-tab-button:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.admin-tab-button.is-active {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.22) 0%, rgba(179, 0, 0, 0.22) 100%);
    border-color: rgba(255, 77, 77, 0.35);
    color: #ffffff;
}

.admin-kpi-pill {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.admin-header {
    position: relative;
    z-index: 200;
    isolation: isolate;
    overflow: visible;
}

.admin-account-shell {
    z-index: 220;
}

.admin-account-menu {
    z-index: 240;
}

@media (max-width: 767px) {
    .store-toolbar {
        width: 100%;
    }

    .store-side-panel {
        width: 100vw;
    }
}
