/* ============================
   PAGES.CSS — Shared styles for sub-pages
   Uses the same design system as landing.css
   ============================ */

/* ---------- SHARED PAGE HEADER (mini nav) ---------- */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 14px 0;
    background: rgba(6, 6, 8, .92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.page-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-nav .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.page-nav .logo-icon {
    font-size: 1.2rem;
}

.page-nav .logo-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
}

.page-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-nav-links a {
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    border-radius: 8px;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.page-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.page-nav .cart-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .55);
    transition: all .3s;
}

.page-nav .cart-badge:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .12);
}

.page-nav .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F59E0B;
    color: #07070A;
    font-size: .6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- VARIABLES (mirror Obsidian Forge landing) ---------- */
:root {
    --bg: #07070A;
    --bg-card: #111116;
    --border: rgba(255, 255, 255, .05);
    --border-hover: rgba(255, 255, 255, .1);
    --text: #F5F5F7;
    --text-2: rgba(245, 245, 247, .55);
    --text-3: rgba(245, 245, 247, .3);
    --cyan: #F59E0B;
    --orange: #F97316;
    --purple: #FBBF24;
    --green: #34D399;
    --red: #EF4444;
    --gold: #FBBF24;
    --font: 'Space Grotesk', 'Tajawal', sans-serif;
    --font-ar: 'Tajawal', 'Space Grotesk', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
    font-family: var(--font);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--cyan);
    color: var(--bg);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 3px;
}

/* Hide old navbar from style.css */
.navbar {
    display: none !important;
}

/* ---------- GRADIENT TEXT ---------- */
.gradient-text,
.hero-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ar);
    cursor: pointer;
    border: none;
}

html[lang="en"] .btn {
    font-family: var(--font);
}

.btn-primary,
.page-btn-primary {
    padding: 14px 28px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    border-radius: var(--r-sm);
    font-size: .92rem;
    transition: all .3s var(--ease);
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.page-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, .15);
}

.btn-secondary,
.page-btn-secondary {
    padding: 14px 28px;
    border: 1px solid var(--border);
    color: var(--text-2);
    border-radius: var(--r-sm);
    font-size: .92rem;
    background: transparent;
    transition: all .3s var(--ease);
    cursor: pointer;
}

.btn-secondary:hover,
.page-btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: rgba(255, 255, 255, .03);
}

.btn-danger {
    padding: 12px 24px;
    border: 1px solid rgba(244, 67, 54, .3);
    color: var(--red);
    border-radius: var(--r-sm);
    font-size: .88rem;
    background: transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    font-family: var(--font-ar);
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ---------- TOAST ---------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 28px;
    border-radius: var(--r-md);
    font-size: .88rem;
    z-index: 2000;
    transition: transform .4s var(--ease), opacity .4s;
    opacity: 0;
    backdrop-filter: blur(12px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(0, 229, 255, .3);
}

.toast.error {
    border-color: rgba(244, 67, 54, .3);
}

/* ---------- AUTH PAGE ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header .logo-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-2);
    font-size: .95rem;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, .03);
    padding: 4px;
    border-radius: var(--r-sm);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s var(--ease);
}

.auth-tab.active {
    background: var(--text);
    color: var(--bg);
}

.auth-tab:not(.active):hover {
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-2);
    font-size: .9rem;
}

.form-group input {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-ar);
    font-size: 1rem;
    transition: all .2s var(--ease);
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(255, 255, 255, .06);
}

.form-group input::placeholder {
    color: var(--text-3);
}

.form-group input:read-only {
    opacity: .5;
    cursor: not-allowed;
}

.form-error {
    color: var(--red);
    font-size: .85rem;
    min-height: 20px;
    text-align: center;
}

.form-hint {
    font-size: .8rem;
    color: var(--text-3);
    margin-top: 4px;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-3);
    font-size: .85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-2);
    font-size: .9rem;
    transition: color .2s;
}

.back-link:hover {
    color: var(--cyan);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-left: 45px;
}

.password-toggle button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 5px;
}

.password-toggle button:hover {
    color: var(--cyan);
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin .8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- CART PAGE ---------- */
.cart-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
}

.cart-container {
    max-width: 900px;
    margin: 0 auto;
}

.cart-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: .4;
}

.cart-empty p {
    color: var(--text-2);
    margin-bottom: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.cart-item {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all .3s var(--ease);
}

.cart-item:hover {
    border-color: var(--border-hover);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--cyan);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--mono);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .04);
    border-radius: var(--r-sm);
    padding: 4px;
}

.quantity-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s var(--ease);
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, .08);
}

.quantity-value {
    width: 36px;
    text-align: center;
    font-weight: 600;
    font-family: var(--mono);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 9px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .2s var(--ease);
}

.remove-btn:hover {
    background: rgba(244, 67, 54, .1);
    border-color: rgba(244, 67, 54, .3);
    color: var(--red);
}

.cart-summary {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 28px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-row.total .amount {
    color: var(--cyan);
    font-family: var(--mono);
}

.checkout-btn {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    font-size: 1.05rem;
}

.clear-cart-btn {
    width: 100%;
    margin-top: 10px;
}

/* ---------- CHECKOUT PAGE ---------- */
.checkout-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
}

.checkout-container {
    max-width: 700px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.checkout-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 40px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.order-summary {
    background: rgba(255, 255, 255, .02);
    border-radius: var(--r-md);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-2);
    font-size: .92rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 1.15rem;
    font-weight: 700;
}

.summary-total .amount {
    color: var(--cyan);
    font-family: var(--mono);
}

/* Success Screen */
.success-screen {
    display: none;
    text-align: center;
}

.success-screen.active {
    display: block;
}

.success-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn .5s ease-out, pulse 2s ease-in-out infinite .5s;
    box-shadow: 0 10px 40px rgba(0, 229, 255, .25);
}

.success-icon svg {
    width: 55px;
    height: 55px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

.success-icon svg path {
    stroke-dasharray: 100;
    animation: checkmark .6s ease-out .3s forwards;
    stroke-dashoffset: 100;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes checkmark {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.success-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.success-subtitle {
    color: var(--text-2);
    margin-bottom: 28px;
}

.order-details-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 24px;
}

.order-id-display {
    background: rgba(0, 229, 255, .05);
    border: 2px dashed rgba(0, 229, 255, .2);
    border-radius: var(--r-md);
    padding: 20px;
    margin-bottom: 18px;
}

.order-id-label {
    font-size: .88rem;
    color: var(--text-2);
    margin-bottom: 6px;
}

.order-id-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    font-family: var(--mono);
    letter-spacing: 2px;
}

.packages-ordered {
    text-align: right;
    margin-bottom: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .02);
    border-radius: var(--r-sm);
}

.packages-ordered h4 {
    margin-bottom: 10px;
    color: var(--text-2);
    font-size: .88rem;
}

.packages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.package-tag {
    background: linear-gradient(135deg, rgba(0, 229, 255, .15), rgba(249, 115, 22, .15));
    border: 1px solid rgba(0, 229, 255, .2);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .83rem;
    font-weight: 500;
}

/* Discord section */
.discord-instructions {
    background: rgba(88, 101, 242, .08);
    border: 1px solid rgba(88, 101, 242, .2);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 18px;
}

.discord-instructions h3 {
    color: #5865F2;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.discord-instructions h3 svg {
    animation: float 3s ease-in-out infinite;
}

.steps-list {
    text-align: right;
    list-style: none;
    padding: 0;
}

.steps-list li {
    padding: 8px 0;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 26px;
    height: 26px;
    background: #5865F2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.copy-message-section {
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 18px;
    margin-bottom: 22px;
}

.copy-message-label {
    font-size: .88rem;
    color: var(--text-2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-box {
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    font-size: .92rem;
    line-height: 1.8;
    color: var(--text);
    text-align: right;
    margin-bottom: 14px;
}

.copy-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--green), #059669);
    border: none;
    border-radius: var(--r-sm);
    color: white;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, .3);
}

.copy-btn.copied {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.discord-btn {
    width: 100%;
    padding: 16px;
    background: #5865F2;
    border: none;
    border-radius: var(--r-md);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, .35);
}

.discord-btn svg {
    width: 22px;
    height: 22px;
}

/* ---------- PROFILE PAGE ---------- */
.profile-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, .2), rgba(249, 115, 22, .2));
    border: 2px solid rgba(0, 229, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 18px;
}

.profile-name {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.profile-email {
    color: var(--text-2);
    font-size: .92rem;
}

.profile-sections {
    display: grid;
    gap: 20px;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 28px;
}

.profile-card h3 {
    font-size: 1.1rem;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.btn-save {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, .02);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.order-id {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: .88rem;
}

.order-amount {
    font-weight: 700;
    font-family: var(--mono);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(255, 152, 0, .12);
    color: var(--orange);
}

.order-status.completed {
    background: rgba(76, 175, 80, .12);
    color: var(--green);
}

.empty-orders {
    text-align: center;
    padding: 30px;
    color: var(--text-3);
}

.danger-zone {
    border-color: rgba(244, 67, 54, .15);
}

.danger-zone h3 {
    color: var(--red);
}

.success-message {
    background: rgba(76, 175, 80, .08);
    border: 1px solid rgba(76, 175, 80, .2);
    color: var(--green);
    padding: 12px 16px;
    border-radius: var(--r-sm);
    margin-bottom: 18px;
    display: none;
}

.success-message.show {
    display: block;
}

/* ---------- 404 PAGE ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, .06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(249, 115, 22, .06) 0%, transparent 50%);
    pointer-events: none;
}

.error-container {
    max-width: 600px;
    text-align: center;
    z-index: 1;
    animation: fadeInUp .8s ease;
}

.error-code {
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 18px;
}

.error-title {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    margin-bottom: 14px;
}

.error-description {
    font-size: 1rem;
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 170px;
}

.error-illustration {
    margin-bottom: 28px;
    animation: float 3s ease-in-out infinite;
}

.error-illustration svg {
    width: 180px;
    height: 180px;
    opacity: .7;
}

/* ---------- PARTICLE CANVAS ---------- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- USER MENU ---------- */
.user-menu {
    position: relative;
}

.user-name {
    padding: 7px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .83rem;
    color: var(--text);
    cursor: pointer;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 6px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all .2s var(--ease);
    z-index: 1001;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 14px;
    text-align: right;
    color: var(--text-2);
    font-size: .83rem;
    border-radius: 6px;
    transition: all .2s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-ar);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

/* ---------- RESPONSIVE ---------- */
@media(max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: center;
    }

    .order-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .auth-card,
    .checkout-card,
    .order-details-card,
    .profile-card {
        padding: 28px 20px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media(max-width: 480px) {

    .cart-page,
    .checkout-page,
    .profile-page,
    .auth-page {
        padding: 90px 15px 40px;
    }

    .cart-title,
    .checkout-title {
        font-size: 1.8rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .error-code {
        font-size: 6rem;
    }
}