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

:root {
    --bg-primary: #0b0f1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(31, 41, 55, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --radius-2xl: 20px;
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.1);
    --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-max-width: 430px;
}

@media (min-width: 769px) {
    :root {
        --app-max-width: 1290px;
    }

    body {
        padding: 40px 0;
    }

    #app {
        overflow: hidden;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    max-width: var(--app-max-width);
    margin: 0 auto;
    position: relative;
    background: var(--bg-primary);
    box-shadow: none;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--app-max-width);
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand {
    font-size: 1.6rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    user-select: none;
}

.navbar-brand span {
    -webkit-text-fill-color: var(--accent-light);
}

.navbar-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.navbar-links a,
.navbar-links button {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.navbar-links a:hover,
.navbar-links button:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ===================== HERO ===================== */
.hero {
    padding: 120px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    pointer-events: none;
    animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--accent-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 24px 20px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

/* ===================== PRODUCT GRID ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.product-card:active {
    transform: translateY(0);
}

.product-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-icon {
    width: 100%;
    height: 100px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.product-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
    flex: 1;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.product-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: color 0.2s;
}

.product-card:hover .product-card-action {
    color: var(--accent);
}

.price-tag {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-light);
}

.price-tag-usd {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

.btn-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ===================== CHECKOUT ===================== */
.checkout-container {
    max-width: 520px;
    margin: 80px auto 40px;
    padding: 0 16px;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 28px 24px;
    backdrop-filter: blur(12px);
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.checkout-product-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checkout-product-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.checkout-product-info .price-tag {
    font-size: 0.85rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 0 20px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
    flex-shrink: 0;
}

.step.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.step.done {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 60px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method {
    background: var(--bg-glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--accent-glow);
}

.payment-method.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.payment-method-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.payment-method-title {
    font-size: 0.82rem;
    font-weight: 600;
}

.payment-info-box {
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 20px;
}

.payment-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 8px;
}

.payment-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.payment-info-value {
    font-size: 0.88rem;
    font-weight: 600;
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.copy-btn {
    background: rgba(139, 92, 246, 0.15);
    border: none;
    color: var(--accent-light);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* ===================== FORMS ===================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.88rem;
    transition: all 0.2s;
    direction: rtl;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control.ltr {
    direction: rtl;
    text-align: right;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.file-upload-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-upload-preview {
    margin-top: 12px;
}

.file-upload-preview img {
    max-width: 180px;
    max-height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===================== SUCCESS ===================== */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success-bg);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    animation: successPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-container h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--success);
}

.success-container p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===================== ADMIN LAYOUT ===================== */
.admin-layout {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 60px;
}

.admin-sidebar {
    display: none;
}

.admin-content {
    padding: 72px 16px 32px;
    max-width: 100%;
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font);
    text-align: right;
    border-right: 3px solid transparent;
}

.admin-sidebar-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.admin-sidebar-item.active {
    background: var(--accent-glow);
    color: var(--accent-light);
    border-right-color: var(--accent);
    font-weight: 600;
}

.admin-content {
    padding: 72px 16px 32px;
    max-width: 100%;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===================== DATA TABLE ===================== */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    text-align: right;
    font-size: 0.82rem;
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass);
}

.data-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-glass-hover);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-confirmed {
    background: var(--success-bg);
    color: var(--success);
}

.badge-rejected {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===================== MODAL ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 28px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 22px;
}

/* ===================== LOGIN ===================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 44px 36px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 28px;
}

.login-error {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 10px;
    font-size: 0.78rem;
    color: var(--danger);
    margin-bottom: 14px;
    display: none;
}

/* ===================== SETTINGS ===================== */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 52px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.85rem;
}

/* ===================== TOAST ===================== */
.toast-container {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: var(--app-max-width);
    width: 100%;
    padding: 0 16px;
    align-items: center;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 22px;
    font-size: 0.82rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    white-space: nowrap;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.toast-success::before {
    content: '✓';
    font-weight: 700;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.toast-error::before {
    content: '✕';
    font-weight: 700;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===================== ORDER DETAIL ===================== */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.order-detail-item {
    padding: 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.order-detail-item .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.order-detail-item .value {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
}

.order-receipt-img {
    max-width: 100%;
    max-height: 280px;
    border-radius: var(--radius-lg);
    margin-top: 14px;
    object-fit: contain;
    border: 1px solid var(--border);
}

/* ===================== LOADING ===================== */
.spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-btn {
    pointer-events: none;
    opacity: 0.6;
}

/* ===================== RESPONSIVE ===================== */
.admin-mobile-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    overflow-x: auto;
    background: rgba(11, 15, 26, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 60px;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    max-width: var(--app-max-width);
    left: 50%;
    transform: translateX(-50%);
}

.admin-mobile-tabs::-webkit-scrollbar {
    display: none;
}

.admin-mobile-tab {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-mobile-tab.active {
    background: var(--accent-glow);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent-light);
}

@media (max-width: 375px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .checkout-card {
        padding: 22px 18px;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* ===================== SELECTION & FOCUS ===================== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
