/* ============================================================
   GIFT-SHOP STYLE �?Premium Gift Card Exchange Platform
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5541D9;
    --primary-light: #A29BFE;
    --secondary: #00CEC9;
    --accent: #FD79A8;
    --accent-orange: #FDCB6E;
    --dark: #2D3436;
    --darker: #1a1a2e;
    --light: #F8F9FA;
    --gray: #636E72;
    --gray-light: #DFE6E9;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E17055;
    --bg-gradient: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 50%, #00CEC9 100%);
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
    --shadow-md: 0 4px 20px rgba(108, 92, 231, 0.12);
    --shadow-lg: 0 8px 40px rgba(108, 92, 231, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --font-cn: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #F0F2FF 0%, #FFF5F5 100%);
    color: var(--dark);
    line-height: 1.6;
}
/* Language-adaptive fonts �?Chinese uses system CJK fonts */
body.lang-zh {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Inter', 'Segoe UI', sans-serif;
}
body.lang-zh input, body.lang-zh button, body.lang-zh select, body.lang-zh textarea,
body.lang-zh small, body.lang-zh span, body.lang-zh a, body.lang-zh label, body.lang-zh h1,
body.lang-zh h2, body.lang-zh h3, body.lang-zh h4, body.lang-zh h5, body.lang-zh h6,
body.lang-zh .card, body.lang-zh .btn, body.lang-zh .badge, body.lang-zh .nav-link,
body.lang-zh .form-label, body.lang-zh .form-control, body.lang-zh .list-group-item,
body.lang-zh .dropdown-item, body.lang-zh .table, body.lang-zh td, body.lang-zh th,
body.lang-zh li, body.lang-zh ul, body.lang-zh p, body.lang-zh div {
    font-family: inherit;
}
body.lang-ja {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}
body.lang-ja input, body.lang-ja button, body.lang-ja select, body.lang-ja textarea,
body.lang-ja small, body.lang-ja span, body.lang-ja a, body.lang-ja label, body.lang-ja h1,
body.lang-ja h2, body.lang-ja h3, body.lang-ja h4, body.lang-ja h5, body.lang-ja h6,
body.lang-ja .card, body.lang-ja .btn, body.lang-ja .badge, body.lang-ja .nav-link,
body.lang-ja .form-label, body.lang-ja .form-control, body.lang-ja .list-group-item,
body.lang-ja .dropdown-item, body.lang-ja .table, body.lang-ja td, body.lang-ja th,
body.lang-ja li, body.lang-ja ul, body.lang-ja p, body.lang-ja div {
    font-family: inherit;
}
body.lang-ko {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body.lang-ko input, body.lang-ko button, body.lang-ko select, body.lang-ko textarea,
body.lang-ko small, body.lang-ko span, body.lang-ko a, body.lang-ko label, body.lang-ko h1,
body.lang-ko h2, body.lang-ko h3, body.lang-ko h4, body.lang-ko h5, body.lang-ko h6,
body.lang-ko .card, body.lang-ko .btn, body.lang-ko .badge, body.lang-ko .nav-link,
body.lang-ko .form-label, body.lang-ko .form-control, body.lang-ko .list-group-item,
body.lang-ko .dropdown-item, body.lang-ko .table, body.lang-ko td, body.lang-ko th,
body.lang-ko li, body.lang-ko ul, body.lang-ko p, body.lang-ko div {
    font-family: inherit;
}
body.lang-ru {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans', 'Segoe UI', Tahoma, sans-serif;
}
body.lang-hi {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif;
}

a {
    color: var(--primary);
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ---- Navbar ---- */
.navbar {
    background: linear-gradient(135deg, var(--darker) 0%, #16213e 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    padding: 0.8rem 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-brand i {
    -webkit-text-fill-color: initial;
    color: var(--secondary);
}
.navbar .nav-link {
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}
.navbar .nav-link:hover {
    background: rgba(255,255,255,0.08);
}
.navbar .nav-link.text-warning {
    background: rgba(253, 121, 168, 0.15);
    border-radius: 20px;
}
.navbar .nav-link.text-warning:hover {
    background: rgba(253, 121, 168, 0.25);
}
.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}
.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.15s;
}
.navbar .dropdown-item:hover {
    background: var(--bg-gradient);
    color: white;
}
.navbar .dropdown-item.active {
    background: var(--primary);
    color: white;
}

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 50%, #00CEC9 100%);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-section .btn-light {
    background: white;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}
.hero-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.hero-section .trust-badge-text {
    font-family: inherit;
    font-weight: 500;
}

/* ---- Gift Cards Grid ---- */
.gift-card {
    border: none !important;
    border-radius: var(--radius) !important;
    background: white;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}
.gift-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg) !important;
}
.gift-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #F0F2FF 0%, #FFF5F5 100%);
    transition: all 0.3s;
}
.gift-card:hover .card-icon {
    background: var(--bg-gradient);
    transform: scale(1.1);
}
.gift-card:hover .card-icon i {
    color: white !important;
}
.gift-card .card-icon i {
    transition: all 0.3s;
}
.gift-card .card-details {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}
.gift-card .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 24px;
    background: var(--bg-gradient);
    border: none;
    transition: all 0.3s;
}
.gift-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* ---- Scrolling Messages ---- */
.scroll-container {
    overflow: hidden;
    border-left: 4px solid var(--primary) !important;
}
.scroll-content {
    display: inline-block;
    font-family: inherit;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Section Titles ---- */
h2 i {
    color: var(--primary);
}

/* ---- Cards (General) ---- */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    background: white;
    border-bottom: 2px solid var(--light);
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--bg-gradient);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-success {
    background: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
    border: none;
}
.btn-danger {
    background: linear-gradient(135deg, #E17055 0%, #FD79A8 100%);
    border: none;
}
.btn-warning {
    background: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%);
    border: none;
    color: white;
}

/* ---- Flash Messages ---- */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.alert-success {
    background: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
    color: white;
}
.alert-danger {
    background: linear-gradient(135deg, #E17055 0%, #FD79A8 100%);
    color: white;
}
.alert-warning {
    background: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%);
    color: white;
}

/* ---- Forms ---- */
.form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-light);
    padding: 10px 16px;
    transition: all 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.form-control-lg {
    border-radius: 14px;
    padding: 12px 20px;
}
.input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

/* ---- Tables ---- */
.table {
    margin-bottom: 0;
}
.table th {
    white-space: nowrap;
    background: var(--light);
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-light) !important;
}
.table td {
    vertical-align: middle;
    border-color: var(--gray-light);
}
.table-hover tbody tr:hover {
    background: rgba(108, 92, 231, 0.03);
}

/* ---- Chat Bubble ---- */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}
.chat-bubble:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: var(--bg-gradient);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.chat-header .btn-close {
    filter: brightness(0) invert(1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #F8F9FA;
}
.chat-messages .admin-msg {
    background: var(--primary-light);
    color: white;
    border-radius: 16px 16px 16px 4px;
    padding: 10px 16px;
    max-width: 80%;
    display: inline-block;
}
.chat-messages .user-msg {
    background: var(--bg-gradient);
    color: white;
    border-radius: 16px 16px 4px 16px;
    padding: 10px 16px;
    max-width: 80%;
    display: inline-block;
}

.chat-input {
    padding: 12px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 8px;
    background: white;
}
.chat-input .form-control {
    border-radius: 50px;
}
.chat-input .btn {
    border-radius: 50% !important;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Stats & Dashboard ---- */
.stat-card {
    border: none;
    border-radius: var(--radius);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ---- Badge Pills ---- */
.badge {
    border-radius: 50px;
    padding: 6px 12px;
    font-weight: 500;
}
.bg-pending { background: #FDCB6E; color: #2D3436; }
.bg-approved { background: #00B894; color: white; }
.bg-rejected { background: #E17055; color: white; }

/* ---- Footer ---- */
.footer {
    background: linear-gradient(135deg, var(--darker) 0%, #16213e 100%) !important;
    border-top: 3px solid var(--primary-light);
}
.footer small {
    opacity: 0.7;
}

/* ---- Admin Specific Overrides ---- */
.admin-sidebar {
    background: linear-gradient(180deg, var(--darker) 0%, #16213e 100%) !important;
}
.admin-sidebar .nav-link {
    border-radius: 10px;
    margin: 2px 8px;
}
.admin-sidebar .nav-link.active {
    background: var(--bg-gradient) !important;
    color: white !important;
}
.admin-content {
    background: #F8F9FA;
}

/* ---- Hero Particle Animation ---- */
.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}
.p1 { width: 80px; height: 80px; background: #a29bfe; top: 10%; left: 10%; animation-delay: 0s; }
.p2 { width: 50px; height: 50px; background: #FD79A8; top: 60%; left: 20%; animation-delay: 1.5s; }
.p3 { width: 100px; height: 100px; background: #00CEC9; top: 20%; right: 15%; animation-delay: 3s; }
.p4 { width: 40px; height: 40px; background: #FDCB6E; bottom: 20%; right: 30%; animation-delay: 4.5s; }
.p5 { width: 60px; height: 60px; background: #6C5CE7; top: 40%; left: 50%; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* ---- Hero Illustration ---- */
.hero-illustration {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-icon-main {
    font-size: 6rem;
    color: rgba(255,255,255,0.85);
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: pulse-icon 3s ease-in-out infinite;
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero-floating-icons i {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
    animation: float-icon 4s ease-in-out infinite;
}
.f1 { top: 10%; left: 10%; animation-delay: 0s; }
.f2 { top: 15%; right: 15%; animation-delay: 1s; }
.f3 { bottom: 15%; left: 15%; animation-delay: 2s; }
.f4 { bottom: 10%; right: 10%; animation-delay: 3s; }
.f5 { top: 40%; right: 5%; animation-delay: 1.5s; }
@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-15px) rotate(10deg); opacity: 1; }
}

/* ---- Hero Button ---- */
.btn-hero {
    background: linear-gradient(135deg, #FDCB6E, #E17055);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.8rem 1.8rem;
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
    transition: all 0.3s;
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(225, 112, 85, 0.5);
    color: white;
}

/* ---- Stats Mini Cards ---- */
.stats-mini-card {
    transition: all 0.3s;
    border: 1px solid rgba(108, 92, 231, 0.08) !important;
}
.stats-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.12) !important;
}

/* ---- Promo Carousel ---- */
.promo-carousel .carousel-indicators {
    bottom: 5px;
    margin-bottom: 5px;
}
.promo-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
}
.promo-carousel .carousel-indicators button.active {
    background: white;
}
.promo-slide {
    position: relative;
}
.promo-slide::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* ---- PC Typography (�?68px) �?全局字体体系优化 ---- */
@media (min-width: 768px) {
    body {
        font-family: var(--font-en);
        font-size: 15px;
        line-height: 1.6;
    }
    body.lang-zh {
        font-family: var(--font-cn);
    }
    body.lang-ja {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    }
    body.lang-ko {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    }

    /* 正文字号微调 */
    body p, body li, body .text-body, body .card-text {
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }
    body small, body .small, body .text-muted {
        font-size: 0.8rem;
    }

    /* 标题层级 */
    h1, .h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
    h2, .h2 { font-size: 1.35rem; font-weight: 700; }
    h3, .h3 { font-size: 1.15rem; font-weight: 600; }
    h4, .h4 { font-size: 1.05rem; font-weight: 600; }
    h5, .h5 { font-size: 0.95rem; font-weight: 600; }
    h6, .h6 { font-size: 0.88rem; font-weight: 600; }

    /* 导航栏字�?*/
    .navbar .nav-link {
        font-size: 0.88rem;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    /* 按钮字体 */
    .btn {
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 0.01em;
    }
    .btn-sm {
        font-size: 0.78rem;
    }
    .btn-lg {
        font-size: 1rem;
    }

    /* 表单控件 */
    .form-control, .form-select {
        font-size: 0.88rem;
    }
    .form-label {
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* 表格 */
    .table {
        font-size: 0.85rem;
    }

    /* Badge */
    .badge {
        font-size: 0.72rem;
        font-weight: 500;
    }

    /* 桌面�?Hero 区域标题 */
    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }
    .hero-section .lead {
        font-size: 1.05rem;
    }

    /* 特色模块标题 */
    .features-section h3 {
        font-size: 1.5rem;
        letter-spacing: -0.01em;
    }

    /* 礼品卡网�?*/
    .gift-card .fw-bold {
        font-size: 0.92rem;
    }
    .gift-card .card-rate {
        font-size: 0.85rem;
    }
    .gift-card .card-body .small {
        font-size: 0.72rem;
    }
}

/* Promo carousel - Desktop split layout (�?68px) */
@media (min-width: 768px) {
    .promo-slide {
        min-height: 180px !important;
        padding: 0.5rem !important;
    }
    .promo-slide .promo-layout {
        display: flex;
        align-items: center;
        min-height: 130px;
    }
    .promo-slide .promo-visual {
        flex: 0 0 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0.8rem;
        margin: 0.3rem;
        border-radius: 12px;
        background: rgba(255,255,255,0.10);
        backdrop-filter: blur(4px);
    }
    .promo-slide .promo-visual .promo-icon-wrap {
        font-size: 3rem;
        color: rgba(255,255,255,0.85);
        filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
        transition: transform 0.3s;
    }
    .promo-slide .promo-visual:hover .promo-icon-wrap {
        transform: scale(1.08) rotate(-3deg);
    }
    .promo-slide .promo-visual .promo-deco {
        position: absolute;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
        bottom: -20px;
        right: -20px;
        pointer-events: none;
    }
    .promo-slide .promo-visual .promo-deco-2 {
        position: absolute;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 2px dashed rgba(255,255,255,0.15);
        top: 10px;
        left: 10px;
        pointer-events: none;
    }
    .promo-slide .promo-content {
        flex: 1;
        padding: 0.5rem 0.8rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .promo-slide .promo-content h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        letter-spacing: -0.01em;
    }
    .promo-slide .promo-content p {
        font-size: 0.75rem;
        font-weight: 400;
        margin-bottom: 0;
        line-height: 1.4;
        white-space: pre-line;
        opacity: 0.85;
    }
    .promo-slide .promo-content .promo-btn {
        display: inline-block;
        padding: 0.4rem 1.5rem;
        border-radius: 50px;
        background: rgba(255,255,255,0.2);
        border: 1.5px solid rgba(255,255,255,0.4);
        color: white;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s;
    }
    .promo-slide .promo-content .promo-btn:hover {
        background: white;
        color: #333;
    }
    .promo-carousel .carousel-indicators {
        bottom: 5px;
    }
}
@media (min-width: 1200px) {
    .promo-slide { min-height: 170px !important; }
    .promo-slide .promo-layout { min-height: 110px; }
    .promo-slide .promo-visual { flex: 0 0 150px; }
    .promo-slide .promo-visual .promo-icon-wrap { font-size: 2.2rem; }
    .promo-slide .promo-content h4 { font-size: 0.95rem; font-weight: 600; }
    .promo-slide .promo-content p { font-size: 0.72rem; font-weight: 400; }
    .promo-slide .promo-visual { margin: 0.2rem; padding: 0.4rem; }
    .promo-slide .promo-content { padding: 0.4rem 0.5rem; }
}

/* ---- Category Filter ---- */
/* ---- Category Filter ---- */
.category-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-filter {
    background: white;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.category-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.category-filter.active {
    background: var(--bg-gradient) !important;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

/* ---- Logo Placeholder ---- */
.card-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-placeholder {
    transition: all 0.3s;
}
.gift-card:hover .logo-placeholder {
    transform: scale(1.15);
}

/* ---- Scroll Animation (CSS native) ---- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.scroll-track {
    height: 32px;
    display: flex;
    align-items: center;
}

/* ---- Features Section (enhanced) ---- */
.feature-card {
    border-radius: var(--radius);
    transition: all 0.3s;
}
.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ---- Tracking text ---- */
.tracking-wider {
    letter-spacing: 2px;
}

/* ---- Card Select (Exchange page) ---- */
.card-select {
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.card-select:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.12);
}
.card-select.selected {
    border-color: var(--primary) !important;
    background: rgba(108, 92, 231, 0.03);
}
.card-select .selected-check {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
}
.card-select.selected .selected-check {
    display: block;
}
.card-select .card-select-logo {
    transition: all 0.3s;
}

/* PC card option pills (product detail page) */
.pc-card-option {
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #eee;
    background: white;
    transition: all 0.2s;
    line-height: 1.3;
}
.pc-card-option:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(108,92,231,0.12);
    transform: translateY(-1px);
}
.pc-card-option.selected {
    border-color: var(--primary);
    background: rgba(108,92,231,0.06);
    box-shadow: 0 2px 12px rgba(108,92,231,0.15);
}
.pc-card-option small {
    font-size: 0.65rem;
    margin-top: 2px;
}
.pc-card-option .fw-bold {
    font-size: 0.95rem;
}

/* PC product image area */
#pcProductLogo {
    transition: all 0.3s;
}

/* Sticky sidebar */
@media (min-width: 992px) {
    .sticky-top-pc {
        position: sticky;
        top: 80px;
    }
}

/* Product detail left section fade transition */
#pcProductName, #pcProductRate, #pcSelectedName {
    transition: all 0.2s;
}
.card-select.selected .card-select-logo .logo-sm {
    transform: scale(1.1);
}

/* ---- Payout Box ---- */
.payout-box {
    border-radius: var(--radius-sm);
}

/* ---- Preview Card ---- */
.selected-card-preview {
    border: 1px solid rgba(108, 92, 231, 0.1);
}

/* ---- Wishlist / Features Icons ---- */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}
.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.feature-card i {
    transition: all 0.3s;
}
.feature-card:hover i {
    transform: scale(1.2);
}

/* ---- Responsive �?Mobile-First ---- */

/* Small phones (�?20px) �?aggressive compact */
@media (max-width: 420px) {
    .navbar-brand { font-size: 0.92rem !important; }
    .navbar .nav-link { font-size: 0.82rem; padding: 0.35rem 0.5rem !important; }
    .navbar .badge.bg-success { font-size: 0.58rem; }
    .navbar .navbar-toggler { padding: 0.25rem 0.4rem; font-size: 0.8rem; }
    .navbar .navbar-toggler-icon { width: 1em; height: 1em; }

    /* Hero */
    .hero-section { padding: 0.8rem !important; min-height: auto !important; border-radius: 10px !important; }
    .hero-section h1 { font-size: 1.1rem !important; margin-bottom: 0.3rem !important; }
    .hero-section .lead { font-size: 0.72rem; margin-bottom: 0.6rem !important; }
    .hero-section .badge { font-size: 0.55rem; padding: 0.2rem 0.5rem !important; }
    .hero-section .d-flex.flex-wrap.gap-3 { gap: 0.4rem !important; }
    .hero-section .d-flex.gap-4 { gap: 0.5rem !important; flex-wrap: wrap; font-size: 0.65rem; }

    /* Stats */
    .stats-mini-card { padding: 0.35rem !important; border-radius: 8px !important; }
    .stats-mini-card .fs-4 { font-size: 0.85rem !important; }
    .stats-mini-card small { font-size: 0.6rem; }
    .row.g-2.mb-4 { margin-bottom: 0.3rem !important; }
    .row.g-2.mb-4 > [class*="col-"] { padding: 0.2rem; }

    /* Promo carousel */
    .promo-slide { min-height: 100px !important; padding: 0.6rem !important; }
    .promo-slide h5 { font-size: 0.72rem !important; margin-bottom: 0.2rem !important; }
    .promo-slide p { font-size: 0.6rem !important; margin-bottom: 0 !important; }
    .promo-slide i.fa-3x { font-size: 1.2rem !important; display: inline !important; }
    .promo-slide .fa-3x.d-block { margin-bottom: 0.15rem !important; }
    .carousel-indicators { margin-bottom: 0.15rem; }
    .carousel-indicators button { width: 6px; height: 6px; }
    .carousel-control-prev-icon, .carousel-control-next-icon { width: 1rem; height: 1rem; }

    /* Scroll messages */
    .scroll-container { padding: 0.3rem !important; margin-bottom: 0.4rem !important; }
    .scroll-container .badge { font-size: 0.5rem; padding: 0.15rem 0.4rem !important; }
    .scroll-container .scroll-content { font-size: 0.68rem; }

    /* Category filter */
    .category-filter { font-size: 0.65rem !important; padding: 0.15rem 0.45rem !important; }
    .category-scroll, .d-flex.flex-wrap.gap-2.mb-3 { gap: 0.25rem !important; margin-bottom: 0.4rem !important; }

    /* Gift card grid */
    .gift-card .card-title { font-size: 0.72rem; margin-bottom: 0.3rem !important; }
    .gift-card .card-body { padding: 0.5rem !important; }
    .card-logo { height: 35px; margin-bottom: 0.4rem !important; }
    .logo-placeholder { width: 36px !important; height: 36px !important; }
    .logo-placeholder i { font-size: 0.85rem !important; }
    .card-logo img { height: 28px !important; }
    .card-details { padding: 0.3rem !important; font-size: 0.6rem; }
    .card-details .d-flex { padding: 0.15rem 0 !important; }
    .gift-card .btn-sm { font-size: 0.68rem; padding: 0.3rem !important; }
    .gift-card .badge.fs-6 { font-size: 0.65rem !important; padding: 0.2rem 0.5rem !important; }
    .gift-card .position-absolute.end-0.badge { font-size: 0.45rem !important; padding: 0.1rem 0.3rem !important; }
    .row.g-4#giftcardGrid { margin: 0 -0.3rem; }
    .row.g-4#giftcardGrid > [class*="col-"] { padding: 0.3rem; }

    /* Section headings */
    h2.mb-4.d-flex { font-size: 0.92rem; margin-bottom: 0.4rem !important; }
    h2.mb-4.d-flex small { font-size: 0.65rem; }

    /* Features */
    .feature-card { padding: 0.4rem !important; }
    .feature-card h6 { font-size: 0.65rem; }
    .feature-card small { font-size: 0.55rem; }
    .feature-icon { width: 32px !important; height: 32px !important; margin-bottom: 0.4rem !important; }
    .feature-icon i { font-size: 0.75rem !important; }
    .features-section { margin-top: 1.2rem !important; padding-top: 0.8rem !important; }
    .features-section h3 { font-size: 0.85rem; margin-bottom: 0.6rem !important; }

    /* Brands */
    .credit-brands i { font-size: 1rem !important; }
    .credit-brands .d-flex.gap-4 { gap: 0.5rem !important; }

    /* Chat */
    .chat-window { width: calc(100% - 12px); right: 6px; height: 300px; bottom: 58px; }
    .chat-bubble { bottom: 12px; right: 12px; width: 40px; height: 40px; font-size: 16px; }

    /* Exchange form */
    .exchange-form .card-select-logo { width: 26px !important; height: 26px !important; }
    .exchange-form .card-select h6 { font-size: 0.6rem !important; }
    .payout-box .fs-5 { font-size: 0.78rem !important; }
    .payout-box .fs-4 { font-size: 0.82rem !important; }
    .payout-box { padding: 0.4rem !important; }
    .payout-box .col-4 small { font-size: 0.55rem; }
    .selected-card-preview { padding: 0.4rem !important; gap: 0.4rem !important; }
    .selected-card-preview .fw-bold { font-size: 0.75rem; }
    .selected-card-preview small { font-size: 0.62rem; }
    .selected-card-preview .preview-logo { width: 32px !important; height: 32px !important; }
    .selected-card-preview .preview-logo i { font-size: 0.8rem; }
    .exchange-form .input-group .form-control-lg {
        font-size: 0.8rem; padding: 0.45rem 0.6rem !important;
    }
    .exchange-form .form-label { font-size: 0.72rem; }
    .exchange-form h5.mb-2 { font-size: 0.75rem; }
    .exchange-form ul.small { font-size: 0.65rem; margin-bottom: 0 !important; }
    .exchange-form ul.small li { margin-bottom: 0.15rem; }
    .d-flex.gap-3.mb-4.small { gap: 0.4rem !important; font-size: 0.6rem !important; flex-wrap: wrap; margin-bottom: 0.4rem !important; }
    .exchange-form .btn-lg.py-3.fs-6 { font-size: 0.8rem !important; padding: 0.5rem !important; min-height: 44px !important; }

    /* User pages */
    .card-body h2.mb-4 { font-size: 0.92rem; }
    h2.mb-4 { font-size: 0.92rem; }
    h2.mb-4 i { font-size: 0.9rem; }

    /* Balance page */
    .display-5 { font-size: 1.2rem !important; }
    .card-body .fa-3x { font-size: 1.2rem; margin-bottom: 0.4rem !important; }
    .card-body h5 { font-size: 0.7rem; }
    .card-body h2.display-5 { font-size: 1.2rem; }
    .card-body small { font-size: 0.6rem; }

    /* Withdraw page */
    .h3.text-primary { font-size: 1.1rem; }
    .input-group-text { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
    .card-header h5 { font-size: 0.85rem; }

    /* Team page */
    .display-6 { font-size: 1.1rem; }
    .card-body h3.display-6 { font-size: 1.1rem; }
    .card-body h3.text-primary.display-6 { font-size: 1.1rem; }

    /* User cards: compact padding */
    .card.shadow { margin-bottom: 0.3rem; }
    .card.shadow .card-body { padding: 0.5rem !important; }
    .card.shadow .card-body h4 { font-size: 0.9rem; }
    .card.shadow .card-body .badge { font-size: 0.65rem; padding: 0.15rem 0.4rem; }
    .card.shadow .card-body p.text-muted { font-size: 0.65rem; margin-bottom: 0.2rem; }
    .card.shadow .card-header { padding: 0.35rem 0.6rem !important; }
    .card.shadow .card-header h5 { font-size: 0.78rem; }
    .card-body form .mb-3 { margin-bottom: 0.35rem !important; }
    .card-body form .form-label { font-size: 0.68rem; margin-bottom: 0.15rem; }
    .card-body form .form-control,
    .card-body form .form-select { font-size: 0.75rem; padding: 0.3rem 0.5rem; min-height: 32px; }
    .card-body form .btn-primary { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .card-body form hr { margin: 0.4rem 0; }
    .card-body form h6.text-muted { font-size: 0.72rem; margin-bottom: 0.3rem !important; }
    .row.text-center.g-3 > .col-4 h3 { font-size: 0.8rem; }
    .row.text-center.g-3 > .col-4 small { font-size: 0.55rem; }
    .card-body .table-responsive table td { padding: 4px 6px; }

    /* Profile page */
    .col-4 h3 { font-size: 0.85rem; }
    .col-4 small { font-size: 0.6rem; }
    .text-start.small p { font-size: 0.7rem; margin-bottom: 0.25rem; }
    .fa-user-circle.fa-5x { font-size: 2.5rem; }
    .card-header h5.mb-0 { font-size: 0.85rem; }

    /* Notifications */
    .list-group-item h6 { font-size: 0.78rem; }
    .list-group-item p { font-size: 0.7rem; margin-bottom: 0.2rem !important; }

    /* Order page */
    .card-body p.text-muted { font-size: 0.78rem; }

    /* Login / Register */
    .row.justify-content-center.mt-5 { margin-top: 0.5rem !important; }
    .row.justify-content-center.mt-5 .card-body.p-4 { padding: 0.8rem !important; }
    .row.justify-content-center.mt-5 h3 { font-size: 1rem; }

    /* Footer */
    .footer small { font-size: 0.62rem; }
    .container.mt-3.mb-5 { margin-bottom: 0.6rem !important; margin-top: 0.4rem !important; }
    main.container.mt-3 { margin-top: 0.3rem !important; }

    /* Flash messages */
    .alert { font-size: 0.72rem; padding: 0.4rem 2rem 0.4rem 0.6rem; margin-bottom: 0.3rem; }

    /* General */
    .container { padding-left: 8px; padding-right: 8px; }
    .container-fluid { padding-left: 8px; padding-right: 8px; }

    /* Buttons */
    .btn-lg { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
    .btn-sm { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
    .btn-group.btn-group-sm .btn { padding: 0.2rem 0.4rem; font-size: 0.65rem; }
    
    /* Modal */
    .modal-header { padding: 0.6rem 0.8rem; }
    .modal-title { font-size: 0.9rem; }
    .modal-body { padding: 0.8rem; }
    .modal-footer { padding: 0.6rem 0.8rem; }
}

/* Tablets & small screens (�?68px) */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1rem; }
    .navbar .nav-link { padding: 0.5rem 0.8rem !important; }
    .navbar .dropdown-menu { border-radius: 0; box-shadow: none; border: none; background: rgba(255,255,255,0.05); }
    .navbar .dropdown-item { color: rgba(255,255,255,0.7) !important; }
    .navbar .dropdown-item:hover { background: rgba(255,255,255,0.1); color: white !important; }

    /* Hero */
    .hero-section { min-height: 160px; text-align: center; padding: 1.2rem 0.8rem !important; }
    .hero-section h1 { font-size: 1.2rem; }
    .hero-section .lead { font-size: 0.78rem; }
    .hero-section .badge { font-size: 0.6rem; }
    .hero-illustration { display: none !important; }
    .hero-section .d-flex.flex-wrap.gap-3 { gap: 0.4rem !important; }

    /* Stats */
    .stats-mini-card { padding: 0.45rem; }
    .stats-mini-card .fs-4 { font-size: 0.95rem; }
    .stats-mini-card small { font-size: 0.65rem; }

    /* Promo */
    .promo-slide { min-height: 160px; }
    .promo-slide h5 { font-size: 0.8rem; }
    .promo-slide p { font-size: 0.68rem; }
    .promo-slide i.fa-3x { font-size: 1.5rem; }
    .promo-slide .btn-sm { font-size: 0.65rem; padding: 0.2rem 0.5rem !important; }

    /* Gift Card Grid */
    .card-logo { height: 42px; }
    .logo-placeholder { width: 42px !important; height: 42px !important; }
    .logo-placeholder i { font-size: 1rem !important; }
    .card-logo img { height: 34px !important; }
    .gift-card .card-body { padding: 0.6rem !important; }
    .gift-card .card-title { font-size: 0.78rem; }
    .card-details { font-size: 0.65rem; padding: 0.35rem !important; }
    .gift-card .btn-sm { font-size: 0.72rem; padding: 0.35rem !important; }
    .row.g-4#giftcardGrid { margin: 0 -0.35rem; }
    .row.g-4#giftcardGrid > [class*="col-"] { padding: 0.35rem; }

    /* Category Filter */
    .category-filter { font-size: 0.72rem; padding: 0.25rem 0.6rem; }

    /* Features */
    .feature-card { padding: 0.7rem; }
    .feature-card h6 { font-size: 0.75rem; }
    .feature-card small { font-size: 0.6rem; }
    .feature-icon { width: 38px !important; height: 38px !important; }
    .feature-icon i { font-size: 0.85rem !important; }

    /* Brands */
    .credit-brands i { font-size: 1.15rem; }

    /* Exchange Page */
    .card-select .card-select-logo .logo-sm { width: 32px !important; height: 32px !important; }
    .card-select h6 { font-size: 0.68rem; }
    .card-select small { font-size: 0.62rem; }
    .selected-card-preview { font-size: 0.78rem; padding: 0.5rem !important; }
    .selected-card-preview .preview-logo { width: 34px !important; height: 34px !important; }
    .payout-box { padding: 0.5rem !important; }
    .payout-box .fs-5 { font-size: 0.85rem; }
    .payout-box .fs-4 { font-size: 0.95rem; }
    .exchange-form .input-group .form-control-lg { font-size: 0.82rem; }
    .exchange-form .btn-lg.py-3.fs-6 { font-size: 0.85rem !important; padding: 0.55rem !important; min-height: 48px !important; }
    .exchange-form .row.g-2 > .col-6 { padding: 0.25rem; }

    /* Chat */
    .chat-window { width: calc(100% - 16px); right: 8px; bottom: 72px; height: 360px; }
    .chat-bubble { bottom: 16px; right: 16px; width: 45px; height: 45px; font-size: 18px; }
    
    /* Chat page */
    .card-body #chatMessages { min-height: 250px !important; max-height: 400px; }
    .input-group .btn-lg { font-size: 0.85rem; padding: 0.5rem 0.8rem; }

    /* Tables */
    .table { font-size: 0.75rem; }
    .table th, .table td { padding: 6px 8px; }
    .table-responsive-stack thead { display: none; }
    .table-responsive-stack tr {
        display: block; border: 1px solid #eee; border-radius: 8px;
        margin-bottom: 0.45rem; background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .table-responsive-stack td {
        display: flex; justify-content: space-between; align-items: center;
        border: none; border-bottom: 1px solid #f5f5f5; padding: 7px 10px;
    }
    .table-responsive-stack td:last-child { border-bottom: none; }
    .table-responsive-stack td::before {
        content: attr(data-label); font-weight: 600; font-size: 0.7rem;
        color: #636E72; margin-right: 8px; flex-shrink: 0;
    }
    .table-responsive-stack td:empty::before { display: none; }

    /* Forms */
    .form-control-lg { font-size: 0.88rem !important; padding: 8px 10px !important; }
    .input-group .form-control-lg { font-size: 0.82rem; }
    label.form-label { font-size: 0.8rem; }

    /* Footer */
    .footer small { font-size: 0.68rem; }

    /* General Text */
    h2:not(.admin-content h2) { font-size: 1.05rem; }
    h3 { font-size: 1rem; }
    h5 { font-size: 0.85rem; }
    .container { padding-left: 10px; padding-right: 10px; }
    
    /* Balance page */
    .display-5 { font-size: 1.3rem !important; }
    .card-body .fa-3x { font-size: 1.3rem; margin-bottom: 0.4rem !important; }
    .card-body h5 { font-size: 0.75rem; }
    .card-body h2.display-5 { font-size: 1.3rem; }
    
    /* Withdraw */
    .h3.text-primary { font-size: 1.2rem; }
    .input-group-text { font-size: 0.85rem; }
    .card-header h5 { font-size: 0.9rem; }
    
    /* Team */
    .display-6 { font-size: 1.2rem; }
    
    /* Profile */
    .col-4 h3 { font-size: 0.95rem; }
    .col-4 small { font-size: 0.65rem; }
    .fa-user-circle.fa-5x { font-size: 3rem; }
    /* Profile page: compact card body on mobile */
    .card-body.text-center .text-start.small p { font-size: 0.72rem; margin-bottom: 0.2rem; }
    .card-body.text-center .text-start.small code { font-size: 0.65rem; }

    /* User cards: compact padding */
    .card.shadow { margin-bottom: 0.5rem; }
    .card.shadow .card-body { padding: 0.7rem !important; }
    .card.shadow .card-body h4 { font-size: 1rem; }
    .card.shadow .card-body .badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
    .card.shadow .card-body p.text-muted { font-size: 0.72rem; margin-bottom: 0.3rem; }
    .card.shadow .card-header { padding: 0.5rem 0.7rem !important; }
    .card.shadow .card-header h5 { font-size: 0.82rem; }

    /* Form compact */
    .card-body form .mb-3 { margin-bottom: 0.5rem !important; }
    .card-body form .form-label { font-size: 0.75rem; margin-bottom: 0.2rem; }
    .card-body form .form-control,
    .card-body form .form-select { font-size: 0.82rem; padding: 0.4rem 0.6rem; min-height: 36px; }
    .card-body form .btn-primary { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .card-body form hr { margin: 0.6rem 0; }
    .card-body form h6.text-muted { font-size: 0.78rem; margin-bottom: 0.4rem !important; }

    /* Stat numbers */
    .row.text-center.g-3 { gap: 0 !important; }
    .row.text-center.g-3 > .col-4 { padding: 0.1rem; }
    .row.text-center.g-3 > .col-4 h3 { font-size: 0.88rem; }
    .row.text-center.g-3 > .col-4 small { font-size: 0.6rem; }

    /* Withdraw */
    .h3.text-primary { font-size: 1.2rem; }
    .input-group-text { font-size: 0.85rem; }
    .card-header h5 { font-size: 0.9rem; }

    /* Orders page: compact card */
    .card-body .table-responsive table td { padding: 6px 8px; }
    .card-body .table-responsive table td small { font-size: 0.65rem; }
    .card-body .table-responsive table td .badge { font-size: 0.6rem; padding: 0.15rem 0.4rem; }
    
    /* Team page */
    .display-6 { font-size: 1.2rem; }
    .row.g-3.mb-4 > .col-4 > .card.shadow-sm.py-3 { padding: 0.3rem !important; }
    .row.g-3.mb-4 > .col-4 > .card.shadow-sm.py-3 h3 { font-size: 0.9rem; margin-bottom: 0.1rem; }
    .row.g-3.mb-4 > .col-4 > .card.shadow-sm.py-3 small { font-size: 0.6rem; }

    /* Balance cards */
    .row.g-4 > .col-md-4 > .card .card-body { padding: 0.6rem !important; }
    .row.g-4 > .col-md-4 > .card .card-body i.fa-3x { font-size: 1.2rem; margin-bottom: 0.3rem !important; }
    .row.g-4 > .col-md-4 > .card .card-body h5 { font-size: 0.7rem; }
    .row.g-4 > .col-md-4 > .card .card-body h2.display-5 { font-size: 1.1rem; }
    .row.g-4 > .col-md-4 > .card .card-body small { font-size: 0.6rem; }
    .row.g-4 > .col-md-4 > .card .card-body .d-flex.align-items-center.gap-1 { gap: 0.2rem !important; }

    /* Notifications */
    .card .list-group-item { padding: 0.5rem 0.6rem; }
    .card .list-group-item h6 { font-size: 0.78rem; margin-bottom: 0.1rem; }
    .card .list-group-item p { font-size: 0.68rem; margin-bottom: 0.15rem !important; }
    .card .list-group-item small { font-size: 0.6rem; }

    /* Login / Register */
    .row.justify-content-center.mt-5 { margin-top: 1rem !important; }

    /* Modal */
    .modal-header { padding: 0.8rem 1rem; }
    .modal-title { font-size: 0.95rem; }
    .modal-body { padding: 1rem; }
    .modal-footer { padding: 0.8rem 1rem; }
}

/* iPad / medium tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-card { padding: 1rem; }
    .hero-section h1 { font-size: 2rem; }
    .gift-card .card-body { padding: 1rem !important; }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section { min-height: 140px; }
    .hero-section h1 { font-size: 1rem; }
    .chat-window { height: 260px; }
    .stats-mini-card .fs-4 { font-size: 0.85rem; }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ---- Pagination ---- */
.page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    color: var(--primary);
    transition: all 0.2s;
}
.page-item.active .page-link {
    background: var(--bg-gradient);
    border: none;
}
.page-link:hover {
    background: var(--primary-light);
    color: white;
}

/* ---- Modal ---- */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 2px solid var(--light);
}

/* ---- Progress / Loading ---- */
.spinner-border.text-primary {
    color: var(--primary) !important;
}

/* ---- Feature Section ---- */
.features-section .col-md-4 {
    transition: all 0.3s;
}
.features-section .col-md-4:hover {
    transform: translateY(-4px);
}
