/* =========================================
   1. Design Tokens & Reset - ENHANCED v2
   ========================================= */
:root {
    /* === Legacy Compatibility (for existing templates) === */
    --ink-900: #0f1716;
    --ink-700: #2f3a39;
    --ink-500: #55615f;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-200: #a7f3d0;
    --sun-600: #d97706;
    --sun-500: #f59e0b;
    --primary-color: var(--emerald-500);
    --primary-dark: var(--emerald-700);
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: var(--sun-500);
    --secondary-color: #6b7280;
    --dark-color: var(--ink-900);
    --light-color: #f9fafb;

    /* === New Extended Palette === */
    --ink-800: #1a2221;
    --ink-600: #3d4a48;
    --ink-400: #6b7876;
    --ink-300: #8a9593;
    --ink-200: #b9c5c3;
    --ink-100: #e5eae9;
    --ink-50: #f6f7f7;

    /* === Primary Colors - Enhanced Emerald Palette === */
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;

    /* === Accent Colors === */
    --sun-700: #b45309;
    --sun-600: #d97706;
    --sun-500: #f59e0b;
    --sun-400: #fbbf24;
    --sun-300: #fcd34d;
    --sun-200: #fde68a;
    --sun-100: #fef3c7;

    /* === Semantic Colors === */
    --danger-color: #ef4444;
    --danger-light: #fef2f2;
    --danger-dark: #dc2626;
    --success-color: #10b981;
    --success-light: #ecfdf5;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --warning-light: #fffbeb;
    --warning-dark: #d97706;
    --info-color: #3b82f6;
    --info-light: #eff6ff;
    --info-dark: #2563eb;

    /* === Primary Theme Colors === */
    --primary-color: var(--emerald-500);
    --primary-dark: var(--emerald-700);
    --primary-light: var(--emerald-300);
    --primary-50: var(--emerald-50);
    --secondary-color: #6b7280;
    --dark-color: var(--ink-900);
    --light-color: #f9fafb;
    --border-color: rgba(15, 23, 22, 0.1);
    --white: #ffffff;

    /* === Gradients === */
    --gradient-primary: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-700) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-600) 100%);
    --gradient-hero: linear-gradient(135deg, var(--emerald-500) 0%, #3b82f6 100%);
    --gradient-gold: linear-gradient(135deg, var(--sun-400) 0%, var(--sun-600) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);

    /* === Surfaces === */
    --paper: #f9fafb;
    --surface: #ffffff;
    --surface-muted: #f3f4f6;
    --surface-hover: #f9fafb;
    --surface-active: #f3f4f6;

    /* === Border Radius - More Modern === */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 999px;

    /* === Shadows - Enhanced Depth === */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);
    --shadow-glow-lg: 0 0 40px rgba(16, 185, 129, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* === Spacing === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* === Typography === */
    --font-body: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    --font-display: 'Cairo', 'Changa', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* === Layout === */
    --nav-height: 70px;
    --container-max: 1280px;
    --sidebar-width: 280px;

    /* === Glass Effect === */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(15, 23, 22, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);

    /* === Transitions === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === Reset & Base Styles === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background:
        radial-gradient(ellipse 1400px 700px at 5% -15%, rgba(16, 185, 129, 0.12), transparent 60%),
        radial-gradient(ellipse 1000px 600px at 95% 5%, rgba(59, 130, 246, 0.08), transparent 55%),
        radial-gradient(ellipse 800px 500px at 50% 100%, rgba(245, 158, 11, 0.06), transparent 50%),
        linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    color: var(--ink-900);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
    animation: floatOrb 25s ease-in-out infinite;
}

body::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    animation-delay: 0s;
}

body::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    animation-delay: 12s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.4);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* === Typography - Enhanced === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--ink-600);
    line-height: 1.8;
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content {
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

/* Selection Style */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--ink-900);
}

/* =========================================
   2. Layout & Grid
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-muted {
    background: rgba(15, 23, 22, 0.02);
    border-top: 1px solid rgba(15, 23, 22, 0.06);
    border-bottom: 1px solid rgba(15, 23, 22, 0.06);
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: right;
}

.section-heading-inline .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(27, 191, 122, 0.12);
    border: 1px solid rgba(27, 191, 122, 0.25);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 0.6rem;
}

.section-subtitle {
    margin-top: 0.6rem;
    color: var(--ink-500);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* =========================================
   3. Components - ENHANCED
   ========================================= */

/* === Buttons - Modern Design === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

/* Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--surface-muted);
    color: var(--ink-700);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--ink-100);
    border-color: var(--ink-300);
}

.btn-light {
    background: var(--white);
    color: var(--ink-700);
    border-color: var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-light:hover {
    background: var(--surface-muted);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--emerald-700);
    background: rgba(16, 185, 129, 0.05);
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: rgba(15, 23, 22, 0.1);
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: var(--white);
    border-color: rgba(15, 23, 22, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-warning {
    background: var(--gradient-gold);
    color: #1a1a00;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--emerald-700);
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald-500);
}

.btn-outline-secondary {
    border-color: rgba(107, 114, 128, 0.4);
    color: var(--ink-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: rgba(107, 114, 128, 0.1);
    border-color: var(--ink-400);
}

.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-link {
    background: none;
    color: var(--emerald-600);
    padding: 0;
    border: none;
}

.btn-link:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

/* Button Sizes */
.btn-xs {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-group-sm .btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Icon Buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
}

.btn-icon-lg {
    width: 52px;
    height: 52px;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Pulse Animation for CTA */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
}

/* === Badges - Enhanced === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.badge-soft {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-700);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-primary {
    background: var(--emerald-500);
    color: var(--white);
}

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

.badge-warning {
    background: var(--sun-400);
    color: #1a1a00;
}

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

.badge-info {
    background: var(--info-color);
    color: var(--white);
}

.badge-new {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.badge-hot {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: var(--white);
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* === Alerts - Enhanced === */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-800);
}

.alert-danger {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.flash-messages {
    display: grid;
    gap: 0.85rem;
}

.flash-message {
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash-message.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-message__icon {
    margin-top: 0.1rem;
}

.flash-message__body {
    flex: 1;
    min-width: 0;
}

.flash-message__dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    padding: 0.2rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.flash-message__dismiss:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.toast-stack {
    position: fixed;
    inset-inline: 1rem;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    min-width: min(480px, calc(100vw - 2rem));
    max-width: min(560px, calc(100vw - 2rem));
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    color: var(--ink-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: auto;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.toast.is-dismissing {
    transform: translateY(14px);
    opacity: 0;
}

.toast__content {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    flex: 1;
    min-width: 0;
}

.toast__icon {
    margin-top: 0.1rem;
}

.toast__text {
    flex: 1;
    line-height: 1.55;
}

.toast__dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0.15rem;
}

.toast__dismiss:hover {
    opacity: 1;
}

.toast--success {
    border-color: rgba(16, 185, 129, 0.18);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.96));
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.18);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(255, 255, 255, 0.96));
}

.toast--warning {
    border-color: rgba(245, 158, 11, 0.18);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.96));
}

.toast--info {
    border-color: rgba(59, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.96));
}

.alert-inline-copy {
    flex: 1;
}

.alert-inline-action {
    margin-inline-start: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.alert-inline-action:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

.topup-copy-value {
    border: 0;
    background: transparent;
    width: 100%;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

.topup-copy-value:hover,
.topup-copy-value:focus-visible {
    color: var(--emerald-700);
    outline: none;
}

/* === Cards - Modern Design === */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    border-radius: inherit;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

.card:hover::before {
    opacity: 0.03;
}

.card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(135deg, var(--surface-muted) 0%, var(--ink-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-400);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.card-img img {
    transition: transform var(--transition-slow);
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-img-top {
    width: 100%;
    height: auto;
    display: block;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--emerald-700);
}

.card-price {
    color: var(--emerald-600);
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-display);
}

.card-price-old {
    color: var(--ink-400);
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.card-price-discount {
    color: var(--danger-color);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--danger-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
}

/* === Filter Sidebar - Enhanced === */
.filter-sidebar {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ink-100);
}

.filter-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-900);
}

.filter-reset {
    font-size: 0.85rem;
    color: var(--ink-500);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.filter-reset:hover {
    color: var(--danger-color);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    color: var(--ink-700);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.filter-title:hover {
    color: var(--emerald-600);
}

.filter-title i {
    transition: transform var(--transition-fast);
}

.filter-title.active i {
    transform: rotate(180deg);
}

/* === Forms - Enhanced === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--ink-100);
    border-radius: var(--radius-md);
    font-family: inherit;
    background: var(--surface);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--ink-200);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-control::placeholder {
    color: var(--ink-400);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-text {
    color: var(--ink-500);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Floating Label */
.form-floating {
    position: relative;
}

.form-floating label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    transition: all var(--transition-fast);
    pointer-events: none;
    color: var(--ink-400);
    background: var(--surface);
    padding: 0 0.25rem;
}

.form-floating input:focus+label,
.form-floating input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.75rem;
    color: var(--emerald-600);
}

/* Validation States */
.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group>.form-control {
    flex: 1;
    border-radius: 0;
}

.input-group>.form-control:first-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.input-group>.form-control:last-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.input-group-text {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid var(--ink-100);
    background: var(--surface-muted);
    color: var(--ink-500);
    font-weight: 500;
}

.input-group-lg>.form-control,
.input-group-lg>.input-group-text {
    padding: 1rem 1.25rem;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.site-header {
    background: var(--glass-bg);
    border-bottom: 1px solid rgba(15, 23, 22, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-top {
    background: linear-gradient(120deg, #0f7a52, #169a68);
    color: var(--white);
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.header-kicker {
    font-weight: 600;
}

.header-note {
    font-weight: 600;
    opacity: 0.85;
}

.header-main {
    padding: 0.9rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 2px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.14), rgba(5, 150, 105, 0.24));
    box-shadow: 0 14px 30px rgba(10, 18, 17, 0.16);
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: #111827;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.16);
    transform-origin: top center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.04em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--ink-500);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 22, 0.06);
}

.nav-links a {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ink-700);
}

.nav-links a.is-active {
    background: var(--surface);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.nav-links a:hover {
    background: var(--surface);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.mobile-only {
    display: none !important;
}

.mobile-header-cluster {
    display: none;
}

.mobile-header-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 44px;
    padding: 0 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 22, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-700);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.mobile-header-shortcut--accent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(52, 211, 153, 0.2));
    color: var(--emerald-800);
    border-color: rgba(5, 150, 105, 0.16);
}

.mobile-header-shortcut i {
    font-size: 0.9rem;
}

.mobile-header-menu {
    position: relative;
}

.mobile-header-menu summary {
    list-style: none;
    cursor: pointer;
}

.mobile-header-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-header-menu-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: min(88vw, 340px);
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 22, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-xl);
    display: grid;
    gap: 0.9rem;
    z-index: 1025;
}

.mobile-header-menu:not([open]) .mobile-header-menu-panel {
    display: none;
}

.mobile-header-menu-head {
    display: grid;
    gap: 0.2rem;
}

.mobile-header-menu-kicker {
    color: var(--emerald-700);
    font-size: 0.75rem;
    font-weight: 800;
}

.mobile-header-menu-head strong {
    color: var(--ink-900);
    font-size: 1rem;
    line-height: 1.45;
}

.mobile-header-menu-links {
    display: grid;
    gap: 0.55rem;
}

.mobile-header-menu-links a,
.mobile-header-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.75rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 22, 0.08);
    background: var(--surface-muted);
    color: var(--ink-800);
    font-weight: 700;
}

.mobile-header-balance {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.08));
    color: var(--ink-900);
}

.mobile-header-balance strong {
    color: var(--emerald-800);
    font-family: var(--font-display);
    font-size: 1rem;
}

.mobile-header-currency-form,
.mobile-header-logout-form {
    margin: 0;
}

.mobile-header-currency-select {
    min-height: 44px;
    border-radius: 14px;
}

.mobile-header-auth-links {
    display: flex;
    gap: 0.65rem;
}

.mobile-header-auth-links .btn {
    flex: 1;
}

.mobile-header-logout {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-dark);
    font-weight: 800;
    cursor: pointer;
}

.header-currency-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.exchange-rate-status {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 180px;
    padding: 0.4rem 0.65rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    box-shadow: var(--shadow-xs);
}

.exchange-rate-status__headline {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.exchange-rate-status__detail {
    font-size: 0.66rem;
    color: var(--ink-500);
    line-height: 1.3;
}

.exchange-rate-status--success {
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.18);
    color: var(--success-dark);
}

.exchange-rate-status--warning {
    background: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.22);
    color: var(--warning-dark);
}

.exchange-rate-status--danger {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.18);
    color: var(--danger-dark);
}

.exchange-rate-status--muted {
    background: rgba(15, 23, 22, 0.04);
    border-color: rgba(15, 23, 22, 0.08);
    color: var(--ink-600);
}

.dropdown,
.account-menu {
    position: relative;
}

.account-menu {
    margin: 0;
}

.account-menu summary {
    list-style: none;
    cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu,
.account-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
    z-index: 50;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.account-menu[open] .account-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.55rem 0.95rem;
    color: var(--ink-700);
}

.dropdown-item:hover {
    background: var(--surface-muted);
}

.dropdown-divider {
    border-top: 1px solid var(--border-color);
    margin: 0.4rem 0;
}

.account-menu-panel {
    padding: 0.35rem 0;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.7rem;
    margin-right: 0.35rem;
}

/* =========================================
   5. Hero & Sections - ENHANCED
   ========================================= */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Hero Background Animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: heroFloat 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--emerald-700);
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    animation: fadeInUp 0.6s ease;
}

.hero-eyebrow i {
    color: var(--emerald-500);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--ink-500);
    line-height: 1.8;
    max-width: 540px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.highlight-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.3);
}

.highlight-card span {
    font-size: 0.85rem;
    color: var(--ink-500);
    display: block;
}

.highlight-card strong {
    display: block;
    font-weight: 700;
    color: var(--ink-900);
    font-size: 0.95rem;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hero-card-label {
    font-size: 0.85rem;
    color: var(--ink-500);
}

.hero-card-title {
    font-size: 1.5rem;
    margin-top: 0.3rem;
    font-weight: 700;
}

.hero-meter {
    height: 10px;
    background: var(--ink-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hero-meter span {
    display: block;
    height: 100%;
    width: 68%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: meterFill 1.5s ease 0.5s both;
}

@keyframes meterFill {
    from {
        width: 0;
    }

    to {
        width: 68%;
    }
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-500);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.meta-value {
    font-weight: 700;
}

.hero-card-list {
    display: grid;
    gap: 0.6rem;
    color: var(--ink-700);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-card-list i {
    color: var(--primary-dark);
    margin-left: 0.4rem;
}

.hero-floating-pill {
    position: absolute;
    right: -30px;
    bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ink-700);
    animation: float 4s ease-in-out infinite;
}

.hero-floating-pill i {
    color: var(--primary-dark);
}

/* === Category Grid - Enhanced === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--emerald-600);
    font-size: 1.75rem;
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.category-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-800);
    transition: color var(--transition-fast);
}

.category-card:hover .category-title {
    color: var(--emerald-700);
}

/* === Products Grid - Enhanced === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

/* === Product Card - Modern Design === */
.product-card {
    position: relative;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Product Image Wrapper */
.product-card .card-img {
    position: relative;
    overflow: hidden;
}

.product-card .card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .card-img::after {
    opacity: 1;
}

/* Product Overlay Actions */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn-icon {
    background: var(--white);
    color: var(--ink-700);
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-overlay .btn-icon {
    transform: translateY(0);
}

.product-overlay .btn-icon:hover {
    background: var(--emerald-500);
    color: var(--white);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.product-rating .stars {
    color: var(--sun-400);
    font-size: 0.85rem;
}

.product-rating .rating-count {
    color: var(--ink-500);
    font-size: 0.8rem;
}

.product-layout {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
}

/* Product Toolbar - Enhanced */
.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: space-between;
}

.product-search {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    max-width: 400px;
}

.product-search .form-control {
    border-radius: var(--radius-full);
    padding-right: 1.25rem;
}

.product-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-toolbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
}

.product-toolbar-count {
    color: var(--ink-500);
    font-weight: 500;
    background: var(--surface-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

/* Product Placeholder - Enhanced with Animation */
.product-placeholder {
    flex-direction: column;
    gap: 0.5rem;
    color: var(--ink-400);
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.08) 0%,
            rgba(59, 130, 246, 0.05) 50%,
            rgba(245, 158, 11, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.product-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 70%);
    animation: placeholder-shimmer 3s ease-in-out infinite;
}

@keyframes placeholder-shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.product-placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: var(--emerald-500);
    font-size: 2rem;
    position: relative;
    z-index: 1;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.product-placeholder-text {
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1;
}

/* Empty State - Enhanced */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ink-500);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--ink-200);
}

.empty-state i {
    font-size: 3rem;
    color: var(--ink-300);
    margin-bottom: 1rem;
    display: block;
}

/* === Feature Grid - Enhanced === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 0.03;
}

.feature-icon {
    width: 60px;
    height: 50px;
    border-radius: 16px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 191, 122, 0.15);
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.cta-section {
    background: linear-gradient(135deg, #0f7a52, #148d60);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 2rem;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-content h2 {
    color: var(--white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   6. Page Styles
   ========================================= */
.auth-page {
    padding: 3rem 0;
}

.auth-page .card {
    border-radius: var(--radius-lg);
}

.order-detail-page {
    padding: 2.5rem 0;
}

.order-detail-live-note {
    margin-top: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.12);
    color: var(--ink-600);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.order-detail-live-note[data-state='success'] {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.24);
}

.order-detail-live-note[data-state='warning'] {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.26);
}

.order-detail-live-note[data-state='muted'] {
    background: rgba(148, 163, 184, 0.12);
    color: var(--ink-600);
    border-color: rgba(148, 163, 184, 0.2);
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    margin: 1rem 0;
    backdrop-filter: blur(8px);
}

.order-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.order-status-badge.status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.3);
}

.order-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.3);
}

.order-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

.order-info {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink-700);
    font-weight: 600;
}

.order-items {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.order-item {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.8fr 0.9fr;
    gap: 0.8rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
}

.item-name {
    font-weight: 700;
}

.item-status {
    font-weight: 700;
}

.item-status.status-pending {
    color: #8a5a10;
}

.item-status.status-delivered {
    color: var(--success-color);
}

.item-status.status-failed {
    color: var(--danger-color);
}

.cart-page .card {
    border-radius: var(--radius-lg);
}

.cart-table {
    min-width: 720px;
}

/* =========================================
   7. Footer - Enhanced
   ========================================= */
.site-footer {
    background: var(--gradient-dark);
    color: var(--ink-300);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    align-items: flex-start;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--ink-300);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--emerald-400);
    transform: translateX(-4px);
}

.footer-brand {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.footer-brand-mark {
    display: inline-flex;
    width: 54px;
    height: 54px;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(16, 185, 129, 0.24));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.footer-logo {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-md) - 2px);
    background: #0f172a;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.15);
    transform-origin: top center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    font-size: 1.75rem;
    flex-wrap: wrap;
}

.payment-icons i {
    color: var(--ink-300);
    transition: all var(--transition-fast);
    cursor: default;
}

.payment-icons i:hover {
    transform: scale(1.1);
}

.payment-icons .fa-cc-visa:hover {
    color: #1a1f71;
}

.payment-icons .fa-cc-mastercard:hover {
    color: #eb001b;
}

.payment-icons .fa-cc-paypal:hover {
    color: #003087;
}

.payment-icons .fa-apple-pay:hover {
    color: #ffffff;
}

.payment-icons .fa-google-pay:hover {
    color: #4285f4;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--emerald-500);
    transform: translateY(-3px);
}

/* =========================================
   7.5 Informational Pages
   ========================================= */
.info-page-hero {
    padding: 3.5rem 0 1.5rem;
}

.info-page-shell {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 22, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem;
    backdrop-filter: blur(10px);
}

.info-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.75rem 0 1rem;
}

.info-page-intro {
    max-width: 760px;
    color: var(--ink-600);
    font-size: 1.05rem;
}

.info-page-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.info-page-card,
.contact-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 22, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.info-page-card h2,
.contact-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.info-page-card p,
.contact-card p {
    color: var(--ink-600);
    margin-bottom: 1rem;
}

.info-page-list {
    display: grid;
    gap: 0.75rem;
}

.info-page-list li {
    position: relative;
    padding-right: 1.25rem;
    color: var(--ink-700);
}

.info-page-list li::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-500);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.info-page-cta,
.contact-steps {
    margin-top: 2rem;
}

.info-page-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: var(--gradient-dark);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-xl);
}

.info-page-cta p {
    color: var(--ink-200);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.contact-card-value {
    font-weight: 700;
    color: var(--ink-900);
    word-break: break-word;
}

.contact-card-pending {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--warning-dark);
    background: var(--warning-light);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.85rem;
    font-weight: 600;
}

/* =========================================
   8. Mobile Bottom Navigation - Enhanced
   ========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-500);
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    transition: transform var(--transition-fast);
}

.nav-item span {
    transition: color var(--transition-fast);
}

.nav-item.active {
    color: var(--emerald-600);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
}

.nav-item--primary {
    max-width: 96px;
    margin-top: -14px;
    margin-inline: 0.15rem;
    height: calc(100% - 14px);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.22);
}

.nav-item--primary i,
.nav-item--primary span {
    color: inherit;
}

.nav-item--primary i {
    font-size: 1.35rem;
}

.nav-item--primary span {
    font-weight: 700;
}

.nav-item--primary.active {
    color: var(--white);
}

.nav-item--primary.active::before {
    display: none;
}

.nav-item:active i {
    transform: scale(0.9);
}

/* Nav Item Badge */
.nav-item .nav-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    min-width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* =========================================
   9. Utilities
   ========================================= */
.text-center {
    text-align: center;
}

.text-start {
    text-align: right;
}

.text-end {
    text-align: left;
}

.text-muted {
    color: var(--ink-500) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--sun-600) !important;
}

.text-info {
    color: #1c4f8b !important;
}

.text-white {
    color: var(--white) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-dark {
    color: var(--ink-900) !important;
}

.bg-light {
    background: var(--surface-muted) !important;
}

.bg-white {
    background: var(--white) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
    color: var(--white);
}

.bg-secondary {
    background: #50605e !important;
    color: var(--white);
}

.bg-success {
    background: var(--success-color) !important;
    color: var(--white);
}

.bg-warning {
    background: var(--sun-500) !important;
    color: #241900;
}

.bg-danger {
    background: var(--danger-color) !important;
    color: var(--white);
}

.bg-info {
    background: #1c4f8b !important;
    color: var(--white);
}

.bg-success-subtle {
    background: rgba(31, 154, 108, 0.12) !important;
}

.bg-warning-subtle {
    background: rgba(244, 182, 63, 0.15) !important;
}

.bg-danger-subtle {
    background: rgba(226, 93, 93, 0.15) !important;
}

.bg-info-subtle {
    background: rgba(28, 79, 139, 0.12) !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

.text-decoration-underline {
    text-decoration: underline;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-break {
    word-break: break-word;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.small {
    font-size: 0.85rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--ink-500);
}

.display-4 {
    font-size: 2.5rem;
}

.h1 {
    font-size: 2.2rem;
}

.h2 {
    font-size: 1.8rem;
}

.h3 {
    font-size: 1.5rem;
}

.h4 {
    font-size: 1.3rem;
}

.h5 {
    font-size: 1.1rem;
}

.h6 {
    font-size: 1rem;
}

.fs-2 {
    font-size: 2rem !important;
}

.fs-3 {
    font-size: 1.6rem !important;
}

.fs-4 {
    font-size: 1.3rem !important;
}

.fs-5 {
    font-size: 1.1rem !important;
}

.fs-6 {
    font-size: 0.95rem !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-none {
    display: none !important;
}

.float-end {
    float: left !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.mt-1 {
    margin-top: var(--spacing-md) !important;
}

.mt-2 {
    margin-top: 1.5rem !important;
}

.mt-3 {
    margin-top: 2rem !important;
}

.mt-4 {
    margin-top: 2.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: var(--spacing-md) !important;
}

.mb-2 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 2.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.my-3 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.my-4 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
}

.ms-1 {
    margin-right: 0.5rem !important;
}

.ms-2 {
    margin-right: 0.75rem !important;
}

.ms-3 {
    margin-right: 1rem !important;
}

.me-1 {
    margin-left: 0.5rem !important;
}

.me-2 {
    margin-left: 0.75rem !important;
}

.me-3 {
    margin-left: 1rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 0.8rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 2.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-2 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-3 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pb-2 {
    padding-bottom: 1rem !important;
}

.ps-0 {
    padding-right: 0 !important;
}

.ps-4 {
    padding-right: 1.5rem !important;
}

.pe-4 {
    padding-left: 1.5rem !important;
}

.rounded {
    border-radius: var(--radius-sm) !important;
}

.rounded-3 {
    border-radius: var(--radius-md) !important;
}

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 999px !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.border {
    border: 1px solid var(--border-color) !important;
}

.border-0 {
    border: none !important;
}

.border-2 {
    border-width: 2px !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.border-start {
    border-right: 1px solid var(--border-color) !important;
}

.border-start-0 {
    border-right: none !important;
}

.border-end-0 {
    border-left: none !important;
}

.border-light {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-primary {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.border-success {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.border-warning {
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.border-danger {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.border-info {
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.top-50 {
    top: 50% !important;
}

.start-0 {
    right: 0 !important;
}

.end-0 {
    left: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.translate-middle-y {
    transform: translateY(-50%) !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.user-select-all {
    user-select: all;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* =========================================
   10. Grid Helpers (Bootstrap-like)
   ========================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row>[class*='col-'] {
    padding-left: 12px;
    padding-right: 12px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 576px) {
    .col-sm-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-8 {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-md-5 {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }

    .col-md-8 {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .p-md-5 {
        padding: 2.5rem !important;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-lg-5 {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
    }

    .col-lg-7 {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }

    .col-lg-8 {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

@media (min-width: 992px) {
    .order-lg-1 {
        order: 1;
    }

    .order-lg-2 {
        order: 2;
    }
}

.g-3 {
    gap: 1rem;
}

.g-4 {
    gap: 1.5rem;
}

/* =========================================
   11. Tables & Pagination
   ========================================= */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 640px;
}

.align-middle {
    vertical-align: middle !important;
}

.table-light {
    background: var(--surface-muted);
}

.table-hover tbody tr:hover {
    background: rgba(21, 141, 96, 0.06);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

.table-responsive {
    overflow-x: auto;
}

.pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.page-item {
    display: inline-flex;
}

.page-link {
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--ink-700);
}

.page-link:hover {
    background: var(--surface-muted);
}

/* =========================================
   12. Breadcrumbs & Misc
   ========================================= */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumb-item {
    color: var(--ink-500);
}

.breadcrumb-item a {
    color: var(--primary-dark);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '/';
    margin: 0 0.4rem;
    color: var(--ink-500);
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.25);
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

/* =========================================
   13. Animations - ENHANCED
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
            var(--surface-muted) 25%,
            var(--ink-100) 50%,
            var(--surface-muted) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 1.5rem;
    width: 80%;
    margin-bottom: 0.75rem;
}

.skeleton-image {
    aspect-ratio: 4/3;
    width: 100%;
}

.skeleton-button {
    height: 3rem;
    width: 100%;
    margin-top: 1rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   14. Responsive
   ========================================= */
@media (max-width: 992px) {
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-grid,
    .products-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--nav-height) + 18px);
    }

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .header-main {
        padding: 0.65rem 0;
    }

    .logo {
        flex: 1;
        min-width: 0;
        gap: 0.65rem;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .logo-image {
        border-radius: 12px;
    }

    .logo-text {
        align-items: flex-start;
        text-align: right;
        min-width: 0;
    }

    .logo-title {
        font-size: 1.12rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-tagline {
        display: none;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-header-cluster {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 3.5rem 0 2.5rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-floating-pill {
        position: static;
        margin-top: 1rem;
        align-self: flex-start;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 74px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: var(--glass-border);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.06);
        padding-inline: 0.35rem;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        color: var(--secondary-color);
        font-size: 0.66rem;
        flex: 1;
        height: 100%;
        transition: all 0.2s;
    }

    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .nav-item.active {
        color: var(--primary-color);
        font-weight: bold;
    }

    .nav-item--primary {
        max-width: 86px;
        margin-top: -16px;
        height: calc(100% - 16px);
        border-radius: 20px;
        color: var(--white);
    }

    .nav-item__label {
        line-height: 1.05;
    }

    .header-top {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .order-item {
        grid-template-columns: 1fr;
        text-align: right;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-responsive table {
        min-width: 520px;
    }
}

@media (max-width: 576px) {

    /* === Mobile-First Product Grid (2 columns) === */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* === Enhanced Product Cards for Mobile === */
    .product-card {
        border-radius: var(--radius-md);
    }

    .product-card .card-img {
        height: 140px;
    }

    .product-card .card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .product-card .card-title {
        font-size: 0.85rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card .card-price {
        font-size: 1rem;
    }

    .product-card .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .product-meta .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    /* === Better Product Placeholder for Mobile === */
    .product-placeholder {
        height: 140px;
        background: linear-gradient(135deg,
                rgba(16, 185, 129, 0.08) 0%,
                rgba(59, 130, 246, 0.05) 50%,
                rgba(245, 158, 11, 0.05) 100%);
        position: relative;
        overflow: hidden;
    }

    .product-placeholder::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg,
                transparent 30%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 70%);
        animation: shimmer-mobile 3s infinite;
    }

    .product-placeholder-icon {
        font-size: 2rem;
        color: var(--emerald-400);
        z-index: 1;
    }

    .product-placeholder-text {
        font-size: 0.7rem;
        z-index: 1;
    }

    @keyframes shimmer-mobile {
        0% {
            transform: translateX(-100%) rotate(45deg);
        }

        100% {
            transform: translateX(100%) rotate(45deg);
        }
    }

    /* === Category Cards Mobile === */
    .category-card {
        padding: 1rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .category-icon img {
        width: 32px;
        height: 32px;
    }

    .category-title {
        font-size: 0.85rem;
    }

    /* === Hero Section Mobile === */
    .hero-section {
        padding: 2rem 0 1.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-eyebrow {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .hero-card-title {
        font-size: 1.1rem;
    }

    .highlight-card {
        padding: 0.75rem;
    }

    .highlight-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .highlight-card strong {
        font-size: 0.85rem;
    }

    .highlight-card span {
        font-size: 0.75rem;
    }

    /* === CTA Section Mobile === */
    .cta-section {
        padding: 2rem 0;
    }

    .cta-content {
        text-align: center;
    }

    .cta-content h2 {
        font-size: 1.25rem;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* === Section Headings Mobile === */
    .section-heading {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-eyebrow {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
    }

    /* === Feature Cards Mobile === */
    .feature-card {
        padding: 1.25rem;
        text-align: right;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        margin: 0;
    }

    .feature-icon {
        margin: 0;
        flex-shrink: 0;
    }

    /* === Toolbar Mobile === */
    .product-toolbar {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .product-search {
        max-width: 100%;
        width: 100%;
    }

    .product-toolbar-meta {
        width: 100%;
        justify-content: space-between;
    }

    .product-toolbar-title {
        font-size: 1.1rem;
    }

    .product-toolbar-count {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    /* === Filter Sidebar Mobile === */
    .product-layout {
        grid-template-columns: 1fr !important;
    }

    .filter-sidebar {
        margin-bottom: 1rem;
        padding: 1rem;
        position: static;
    }

    /* === Footer Mobile === */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .payment-icons {
        justify-content: center;
    }

    /* === Bottom Navigation Enhancements === */
    .mobile-bottom-nav {
        height: calc(var(--nav-height) - 8px);
        padding: 0.5rem 0;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }

    .nav-item {
        font-size: 0.65rem;
        gap: 2px;
    }

    .nav-item--primary {
        max-width: 84px;
        margin-top: -10px;
        height: calc(100% - 10px);
        border-radius: 20px;
    }

    .nav-item i {
        font-size: 1.15rem;
    }

    /* === Touch Target Improvements === */
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
    }

    /* === Better Spacing === */
    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    /* === Subcategories Grid Mobile === */
    .subcategories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }

    .subcategory-item {
        padding: 0.75rem 0.5rem !important;
    }

    .subcategory-icon {
        font-size: 1.25rem !important;
    }

    .subcategory-icon img {
        width: 36px !important;
        height: 36px !important;
    }

    .subcategory-name {
        font-size: 0.75rem !important;
    }

    .info-page-shell,
    .info-page-cta {
        padding: 1.5rem;
    }

    .info-page-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-page-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================
   Custom RTL & Navigation Fixes
   ========================================= */

/* Breadcrumb RTL Fixes */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: inline-block;
    font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
    padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 0.5rem;
    color: var(--ink-400);
}

/* Prevent number overlap with text */
.breadcrumb-item a,
.breadcrumb-item.active {
    display: inline-block;
    white-space: nowrap;
}

/* Product Detail Image Optimization */
.product-detail-image-card img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    margin: auto;
    display: block;
    object-fit: contain;
}

/* =========================================
   Topup Flow Journey
   ========================================= */
.topup-flow-page {
    margin-bottom: var(--spacing-3xl);
}

.topup-flow-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    display: grid;
    gap: 1rem;
}

.topup-flow-card,
.topup-intent-banner,
.topup-inline-summary,
.topup-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 22, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.topup-flow-card {
    padding: 1.25rem;
}

.topup-flow-eyebrow,
.topup-intent-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--emerald-700);
    margin-bottom: 0.45rem;
}

.topup-flow-title,
.topup-intent-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 0.35rem;
}

.topup-flow-description,
.topup-intent-meta {
    color: var(--ink-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.topup-money-secondary {
    color: var(--ink-500);
    font-size: 0.86em;
    font-weight: 600;
}

.topup-flow-steps {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.topup-flow-step {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.topup-flow-step-index {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    background: var(--ink-100);
    color: var(--ink-600);
}

.topup-flow-step-title {
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 0.15rem;
}

.topup-flow-step-description {
    font-size: 0.9rem;
    color: var(--ink-500);
}

.topup-flow-step--completed .topup-flow-step-index {
    background: var(--emerald-100);
    color: var(--emerald-800);
}

.topup-flow-step--current .topup-flow-step-index {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.topup-flow-step--current .topup-flow-step-title {
    color: var(--emerald-800);
}

.topup-flow-step--upcoming .topup-flow-step-index {
    background: var(--ink-50);
    color: var(--ink-400);
}

.topup-flow-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink-700);
    margin-bottom: 0.75rem;
}

.topup-flow-summary {
    display: grid;
    gap: 0.75rem;
}

.topup-flow-summary-item {
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-md);
    background: var(--ink-50);
}

.topup-flow-summary-item dt {
    font-size: 0.8rem;
    color: var(--ink-500);
    margin-bottom: 0.15rem;
}

.topup-flow-summary-item dd {
    margin-bottom: 0;
    font-weight: 800;
    color: var(--ink-900);
}

.topup-flow-summary-item--primary {
    background: var(--emerald-50);
}

.topup-flow-summary-item--warning {
    background: var(--warning-light);
}

.topup-intent-banner,
.topup-inline-summary,
.topup-section {
    padding: 1.2rem;
}

.topup-intent-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-color: rgba(59, 130, 246, 0.12);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.topup-intent-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    flex-shrink: 0;
}

.resume-purchase-banner {
    align-items: center;
}

.resume-purchase-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
}

.resume-purchase-banner__product {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-700);
    font-size: 0.82rem;
    font-weight: 700;
}

.resume-purchase-banner__buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.resume-purchase-banner__dismiss-form {
    margin: 0;
}

.resume-purchase-banner__dismiss {
    padding: 0;
    color: var(--ink-600);
    text-decoration: none;
}

.resume-purchase-banner__dismiss:hover,
.resume-purchase-banner__dismiss:focus {
    color: var(--ink-900);
    text-decoration: underline;
}

.resume-purchase-banner__note {
    margin-top: 0.55rem;
    color: var(--ink-600);
    font-size: 0.88rem;
    font-weight: 600;
}

.resume-purchase-banner--success {
    border-color: rgba(16, 185, 129, 0.22);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.98));
}

.resume-purchase-banner--info {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.resume-purchase-banner--warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.topup-inline-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.topup-inline-summary-item {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--ink-50);
    border: 1px solid rgba(15, 23, 22, 0.06);
}

.topup-inline-summary-item span {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-500);
    margin-bottom: 0.2rem;
}

.topup-section-head {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.topup-section-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    color: white;
    background: var(--gradient-primary);
}

.topup-action-bar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.payment-option .btn-check:checked + .btn {
    border-color: var(--bs-primary) !important;
    background-color: #f8fbff;
    border-width: 2px;
}

.payment-option .btn-check:checked + .btn .check-icon {
    opacity: 1 !important;
}

.payment-option .btn:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.topup-amount-prefix {
    font-weight: 800;
    min-width: 5.5rem;
    justify-content: center;
}

.topup-amount-help {
    display: grid;
    gap: 0.55rem;
}

.topup-amount-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink-700);
    font-size: 0.92rem;
}

.topup-amount-secondary__label {
    color: var(--ink-500);
    font-weight: 600;
}

.topup-amount-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.topup-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.topup-quick-amount {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 8rem;
    text-align: right;
}

.topup-quick-amount__label {
    font-weight: 800;
}

.topup-quick-amount__secondary {
    color: var(--ink-500);
    font-size: 0.78rem;
}

.topup-quick-amount__caption {
    color: var(--ink-600);
    font-size: 0.74rem;
    font-weight: 700;
}

.topup-quick-amount--recommended {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(239, 246, 255, 0.8);
}

.topup-quick-amount--current {
    border-style: dashed;
}

.topup-quick-amount.is-active {
    border-color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.08);
    color: var(--emerald-800);
}

@media (max-width: 991.98px) {
    .topup-flow-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .topup-intent-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .topup-intent-actions {
        align-items: stretch;
    }

    .topup-amount-limits {
        flex-direction: column;
        gap: 0.15rem;
    }

    .resume-purchase-banner__actions {
        align-items: stretch;
    }

    .resume-purchase-banner__buttons {
        align-items: stretch;
    }

    .topup-quick-amounts {
        width: 100%;
    }

    .topup-quick-amount {
        flex: 1 1 calc(50% - 0.6rem);
        min-width: 0;
    }

    .topup-inline-summary {
        grid-template-columns: 1fr;
    }
}
