:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #2AABEE;
    --accent-pink: #FF0050;
    --accent-purple: #8B5CF6;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #FF0050, #FF1A66);
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 0, 80, 0.5);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pack-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pack-card.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 242, 234, 0.2);
}

[data-theme="light"] .theme-toggle {
    color: var(--text-primary);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tiktok-white {
    color: #00F2EA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Optimize theme transitions */
*,
*::before,
*::after {
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
    -webkit-transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

body {
    font-family: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
}

/* Page transition animation */
.main {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    filter: blur(120px);
    -webkit-filter: blur(120px);
    overflow: hidden;
    pointer-events: none;
}

.background-gradient::before,
.background-gradient::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.background-gradient::before {
    background: radial-gradient(circle at 50% 50%, var(--accent-cyan) 0%, transparent 50%);
    animation: moveGradient1 20s ease-in-out infinite;
    -webkit-animation: moveGradient1 20s ease-in-out infinite;
}

.background-gradient::after {
    background: radial-gradient(circle at 50% 50%, var(--accent-pink) 0%, transparent 50%);
    animation: moveGradient2 25s ease-in-out infinite;
    -webkit-animation: moveGradient2 25s ease-in-out infinite;
}

@keyframes moveGradient1 {

    0%,
    100% {
        transform: translate(0%, 0%) scale(1);
        -webkit-transform: translate(0%, 0%) scale(1);
    }

    25% {
        transform: translate(30%, 20%) scale(1.1);
        -webkit-transform: translate(30%, 20%) scale(1.1);
    }

    50% {
        transform: translate(-20%, 30%) scale(0.9);
        -webkit-transform: translate(-20%, 30%) scale(0.9);
    }

    75% {
        transform: translate(20%, -20%) scale(1.05);
        -webkit-transform: translate(20%, -20%) scale(1.05);
    }
}

@-webkit-keyframes moveGradient1 {

    0%,
    100% {
        -webkit-transform: translate(0%, 0%) scale(1);
    }

    25% {
        -webkit-transform: translate(30%, 20%) scale(1.1);
    }

    50% {
        -webkit-transform: translate(-20%, 30%) scale(0.9);
    }

    75% {
        -webkit-transform: translate(20%, -20%) scale(1.05);
    }
}

@keyframes moveGradient2 {

    0%,
    100% {
        transform: translate(0%, 0%) scale(1);
        -webkit-transform: translate(0%, 0%) scale(1);
    }

    25% {
        transform: translate(-30%, 30%) scale(0.95);
        -webkit-transform: translate(-30%, 30%) scale(0.95);
    }

    50% {
        transform: translate(25%, -25%) scale(1.1);
        -webkit-transform: translate(25%, -25%) scale(1.1);
    }

    75% {
        transform: translate(-15%, 15%) scale(0.9);
        -webkit-transform: translate(-15%, 15%) scale(0.9);
    }
}

@-webkit-keyframes moveGradient2 {

    0%,
    100% {
        -webkit-transform: translate(0%, 0%) scale(1);
    }

    25% {
        -webkit-transform: translate(-30%, 30%) scale(0.95);
    }

    50% {
        -webkit-transform: translate(25%, -25%) scale(1.1);
    }

    75% {
        -webkit-transform: translate(-15%, 15%) scale(0.9);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
}

.logo-pill:hover {
    opacity: 0.8;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.support-btn svg {
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.nav-link svg {
    flex-shrink: 0;
}

.theme-toggle {
    background: transparent;
    border: none;
    outline: none;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    border-radius: 50%;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    border-radius: 50%;
}

.theme-toggle:focus {
    outline: none;
    border: none;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Glass Card */
.glass-card {
    background: var(--bg-primary);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px var(--shadow);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.tiktok-white {
    color: #00F2EA;
}

.tiktok-gradient {
    background: linear-gradient(135deg, #00F2EA 0%, #FF0050 50%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
}

.cyan-text {
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Section */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.title-underline {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
    border-radius: 2px;
}

/* Coin Packs */
.coin-packs {
    padding: 40px 0;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pack-card {
    text-align: center;
    position: relative;
    cursor: pointer;
    padding: 32px 24px;
    transition: all 0.3s ease;
    overflow: visible;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    background: var(--bg-primary);
    backdrop-filter: blur(30px);
}

.pack-card>* {
    position: relative;
    z-index: 2;
}

.pack-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 242, 234, 0.2);
}

.pack-card.active {
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 206, 209, 0.3), 0 8px 32px rgba(0, 242, 234, 0.4);
    transform: translateY(-4px);
}

.pack-card.popular {
    position: relative;
    border: none;
    background: transparent;
    padding: 32px 24px;
}

.pack-card.popular::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--accent-cyan) 0%,
            var(--accent-pink) 25%,
            var(--accent-cyan) 50%,
            var(--accent-pink) 75%,
            var(--accent-cyan) 100%);
    background-size: 300% 100%;
    animation: borderChase 5s linear infinite;
    -webkit-animation: borderChase 5s linear infinite;
    border-radius: 20px;
    z-index: 0;
    will-change: background-position;
}

.pack-card.popular::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-primary);
    backdrop-filter: blur(30px);
    border-radius: 18px;
    z-index: 1;
}

@keyframes borderChase {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 300% 0%;
    }
}

@-webkit-keyframes borderChase {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 300% 0%;
    }
}

.pack-card.popular:hover {
    box-shadow: 0 12px 48px rgba(0, 242, 234, 0.5);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
    z-index: 100;
}

.pack-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.pack-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pack-price {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #FF0050, #FF1A66);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 0, 80, 0.5);
}

.pack-card.active .btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #00a8e8);
}

.pack-card.active .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 242, 234, 0.5);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: var(--text-primary);
}

/* Order Modal */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.order-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.order-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.order-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1;
}

.order-modal.show .order-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.order-modal .section-title {
    margin-bottom: 24px;
    padding-right: 40px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.custom-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 242, 234, 0.1);
    border: 1px solid rgba(0, 242, 234, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: #00F2EA;
    animation: slideDown 0.3s ease;
}

.custom-error svg {
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-summary {
    margin-bottom: 32px;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.summary-row.total {
    font-size: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    margin-top: 12px;
}

/* Admin */
.admin-header {
    padding: 40px 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.orders-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.orders-table {
    overflow-x: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.orders-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
}

.orders-table td {
    font-size: 14px;
}

.orders-table tbody tr {
    transition: all 0.2s ease;
}

.orders-table tbody tr:hover {
    background: var(--glass-bg);
    transform: scale(1.005);
}

.users-table {
    overflow-x: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.users-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
}

.users-table td {
    font-size: 14px;
}

.users-table tbody tr {
    transition: all 0.2s ease;
}

.users-table tbody tr:hover {
    background: var(--glass-bg);
    transform: scale(1.005);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-active {
    background: rgba(0, 242, 234, 0.2);
    color: #00F2EA;
    border: 1px solid rgba(0, 242, 234, 0.3);
}

.status-banned {
    background: rgba(255, 0, 80, 0.2);
    color: #ff0050;
    border: 1px solid rgba(255, 0, 80, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff0050, #ff1a66);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff1a66, #ff3377);
    transform: scale(1.05);
}

.btn-success {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #00cc6a, #00aa55);
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 24px;
    font-size: 14px;
}

.status-select {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}

.status-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.filter-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.order-tiktok {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Login */
.login-section {
    padding: 80px 0;
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.telegram-icon {
    margin: 40px 0;
}

.login-steps {
    margin: 40px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 16px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin: 24px 0;
    overflow-x: auto;
}

/* Profile Styles */
.profile-section {
    padding: 40px 0;
    position: relative;
}

.profile-header {
    text-align: center;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
}

.referral-card {
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
}

.orders-history {
    padding: 32px;
    position: relative;
}

.profile-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 100%;
}

.profile-details {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.profile-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.referral-card {
    padding: 32px;
    margin-bottom: 32px;
}

.referral-info {
    margin-top: 24px;
}

.referral-code-block {
    margin-bottom: 24px;
}

.referral-code-block label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.code-display code {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-cyan);
    font-family: 'Courier New', monospace;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: white;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.referral-hint {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
    margin-top: 16px;
}

.orders-history {
    padding: 32px;
}

.order-item {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.order-number {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(0, 242, 234, 0.2);
    color: #00F2EA;
}

.status-paid {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.error-message {
    text-align: center;
    padding: 40px;
    color: var(--accent-pink);
}

/* Login Page Styles */
.login-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.login-card {
    max-width: 500px;
    width: 100%;
    padding: 48px;
    text-align: center;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.login-instructions {
    text-align: left;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.instruction-step {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: var(--text-primary);
    font-size: 15px;
}

.login-form {
    margin-bottom: 24px;
}

.login-footer {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-cyan);
}

.admin-tabs {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin: 24px 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, #FF0050, #FF1A66);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 0;
}

.btn-secondary {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.prices-section,
.faq-section,
.orders-section {
    margin-top: 24px;
}

/* Prices & FAQ Lists */
.prices-list,
.faq-list {
    padding: 24px;
    min-height: 200px;
}

.price-item,
.faq-item-admin {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.price-item:hover,
.faq-item-admin:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.price-item-info,
.faq-item-info {
    flex: 1;
    min-width: 0;
}

.price-item-info h4,
.faq-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-item-info p {
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-item-info small,
.price-item-info small {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 8px;
}

.price-item-actions,
.faq-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Global Rate Setting */
.global-rate-card {
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.1), rgba(255, 0, 80, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.global-rate-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.rate-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.rate-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.rate-input-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Settings Section */
.settings-card {
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 242, 234, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.settings-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.settings-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.settings-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.settings-input-group label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.05), rgba(255, 0, 80, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.stat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 12px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.period-stats {
    padding: 24px;
    margin-bottom: 24px;
}

.period-stats h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.period-item {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
}

.period-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.period-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.period-orders {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-stats {
    padding: 24px;
    margin-bottom: 24px;
}

.status-stats h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.status-grid {
    display: grid;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.status-name {
    font-weight: 500;
    color: var(--text-primary);
}

.status-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.status-revenue {
    font-weight: 600;
    color: var(--accent-cyan);
}

.top-products {
    padding: 24px;
}

.top-products h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.product-rank {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-pink);
    min-width: 40px;
    text-align: center;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-stats {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px 0;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Form Groups in Modal */
.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-content .form-group input,
.modal-content .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-content .form-group input:focus,
.modal-content .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.modal-content .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content .form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Legal Editor */
.legal-section {
    padding: 24px 0;
}

.legal-editor {
    padding: 24px;
    margin-bottom: 24px;
}

.legal-editor h3 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.legal-editor textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
    min-height: 200px;
    line-height: 1.6;
}

.legal-editor textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

/* Legal Page */
.legal-page {
    padding: 60px 0;
}

.legal-content {
    padding: 32px;
    margin-top: 32px;
    line-height: 1.8;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-line;
}

.legal-content h2 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    position: relative;
}

/* Payment Result Pages */
.payment-result {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card {
    max-width: 600px;
    text-align: center;
    padding: 48px !important;
}

.result-icon {
    margin: 0 auto 32px;
    width: 80px;
    height: 80px;
}

.result-icon.success svg {
    filter: drop-shadow(0 0 20px rgba(0, 242, 234, 0.5));
}

.result-icon.error svg {
    filter: drop-shadow(0 0 20px rgba(255, 0, 80, 0.5));
}

.result-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.result-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.order-info {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.result-message {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.result-message p {
    margin-bottom: 12px;
}

.result-message ul {
    margin: 12px 0;
    padding-left: 24px;
}

.result-message li {
    margin: 8px 0;
}

.result-message strong {
    color: var(--accent-cyan);
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.result-actions .btn {
    flex: 1;
    max-width: 250px;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    position: relative;
}

.tiktok-logo-decoration {
    position: absolute;
    bottom: 40px;
    right: 40px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.faq-item {
    padding: 24px !important;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 242, 234, 0.15);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Support Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1001;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    border-radius: 50%;
    color: white;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-text {
    font-size: 16px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0088cc, #00a8e8);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.modal-footer {
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Page */
.faq-page {
    padding: 60px 0;
}

.faq-page .hero-title {
    text-align: center;
    margin-bottom: 16px;
}

.faq-page .hero-subtitle {
    text-align: center;
    margin-bottom: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* Fix profile info layout on mobile */
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-details {
        width: 100%;
        max-width: 100%;
    }

    .profile-details h2,
    .profile-username {
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-header {
        padding: 24px 16px;
    }

    .referral-card,
    .orders-history {
        padding: 20px 16px;
    }

    .code-display {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .code-display code {
        font-size: 16px;
        word-break: break-all;
    }

    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .pack-card {
        padding: 16px 12px;
        margin: 0;
    }

    .pack-amount {
        font-size: 20px;
    }

    .pack-amount svg {
        width: 24px;
        height: 24px;
    }

    .pack-price {
        font-size: 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 8px 12px;
        gap: 8px;
    }

    .logo-pill {
        font-size: 13px;
        padding: 0;
        gap: 6px;
    }

    .logo-pill svg {
        width: 24px;
        height: 24px;
    }

    .logo-pill span {
        display: inline;
    }

    .header-left {
        gap: 8px;
    }

    .header-right {
        gap: 8px;
    }

    .support-btn span {
        display: none;
    }

    .support-btn {
        padding: 8px;
        min-width: auto;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: transparent !important;
        border: none !important;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .modal-content {
        padding: 32px 24px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal.show {
        align-items: flex-start;
        padding: 40px 0;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-icon {
        width: 64px;
        height: 64px;
    }

    .orders-table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .footer-links span {
        display: none;
    }

    .footer {
        font-size: 12px;
        padding: 24px 0;
    }

    .footer-links a {
        font-size: 12px;
    }

    .container {
        padding: 0 16px;
    }

    .order-modal {
        padding: 20px;
        align-items: center;
    }

    .order-modal-content {
        max-width: calc(100% - 32px);
        width: 100%;
        max-height: 90vh;
        border-radius: 24px;
        padding: 20px 16px 24px;
        transform: scale(0.95) translateY(20px);
        opacity: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .order-modal.show .order-modal-content {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .order-modal .section-title {
        font-size: 22px;
        padding-right: 50px;
        margin-bottom: 16px;
    }

    .form-section {
        margin-bottom: 20px;
    }

    .form-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .order-summary {
        margin-bottom: 20px;
        padding: 16px;
    }

    .glass-card {
        margin: 0;
    }

    .legal-page {
        padding: 40px 0;
    }

    .legal-page .hero-title {
        font-size: 28px;
        padding: 0 8px;
    }

    .legal-content {
        padding: 20px 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .legal-content h2 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .legal-content p {
        margin-bottom: 12px;
    }
}

/* --- Custom System Alerts (Framed Modal) --- */
.sys-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.sys-alert-modal.show {
    display: flex !important;
    animation: alertFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sys-alert-modal.hide {
    animation: alertFadeOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sys-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sys-alert-content {
    position: relative;
    background: rgba(25, 25, 30, 0.95);
    border: 1px solid rgba(0, 242, 234, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 234, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 36px;
    min-width: 360px;
    max-width: 500px;
    text-align: center;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    animation: alertPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.05s;
}

.sys-alert-modal.hide .sys-alert-content {
    animation: alertPopOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Add a beautiful glowing border line at the top */
.sys-alert-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F2EA, transparent);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 242, 234, 0.5);
}

/* --- Success type colors --- */
.sys-alert-modal[data-type="success"] .sys-alert-content {
    background: linear-gradient(180deg, rgba(15, 40, 40, 0.95) 0%, rgba(10, 30, 30, 0.95) 100%);
    border: 1px solid rgba(0, 242, 234, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 234, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sys-alert-modal[data-type="success"] .sys-alert-content::before {
    background: linear-gradient(90deg, transparent, #00F2EA, transparent);
    box-shadow: 0 2px 10px rgba(0, 242, 234, 0.5);
}

.sys-alert-modal[data-type="success"] .sys-alert-icon svg {
    filter: drop-shadow(0 0 12px rgba(0, 242, 234, 0.5));
}

.sys-alert-modal[data-type="success"] .sys-alert-btn.primary {
    background: linear-gradient(135deg, #00F2EA 0%, #00D4CC 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.sys-alert-modal[data-type="success"] .sys-alert-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 234, 0.45);
}

/* --- Error type colors --- */
.sys-alert-modal[data-type="error"] .sys-alert-content {
    background: linear-gradient(180deg, rgba(70, 15, 15, 0.95) 0%, rgba(40, 10, 10, 0.95) 100%);
    border: 1px solid rgba(220, 40, 40, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(220, 40, 40, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sys-alert-modal[data-type="error"] .sys-alert-content::before {
    background: linear-gradient(90deg, transparent, #ff3030, transparent);
    box-shadow: 0 2px 10px rgba(255, 48, 48, 0.5);
}

.sys-alert-modal[data-type="error"] .sys-alert-icon svg {
    filter: drop-shadow(0 0 12px rgba(255, 48, 48, 0.5));
}

.sys-alert-modal[data-type="error"] .sys-alert-btn.primary {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.sys-alert-modal[data-type="error"] .sys-alert-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.45);
}

.sys-alert-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.sys-alert-icon svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 12px rgba(0, 242, 234, 0.5));
}

.sys-alert-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.sys-alert-message {
    color: #a0a0b0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.sys-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sys-alert-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    flex-grow: 1;
    max-width: 180px;
}

.sys-alert-btn.primary {
    background: linear-gradient(135deg, #00F2EA 0%, #00D4CC 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.sys-alert-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 234, 0.4);
}

.sys-alert-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sys-alert-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.sys-alert-btn.danger {
    background: linear-gradient(135deg, #FF4B4B 0%, #E63946 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3);
}

.sys-alert-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
}

/* Mobile responsive styles for sys-alert */
@media (max-width: 768px) {
    .sys-alert-content {
        min-width: auto;
        max-width: 140px;
        padding: 8px;
        border-radius: 7px;
    }
    
    .sys-alert-icon {
        margin-bottom: 3px;
    }
    
    .sys-alert-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .sys-alert-title {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .sys-alert-message {
        font-size: 7px;
        line-height: 1.1;
        margin-bottom: 5px;
    }
    
    .sys-alert-btn {
        padding: 4px 8px;
        font-size: 7px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .sys-alert-content {
        max-width: 120px;
        padding: 6px;
    }
    
    .sys-alert-icon {
        margin-bottom: 2px;
    }
    
    .sys-alert-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .sys-alert-title {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .sys-alert-message {
        font-size: 6px;
        margin-bottom: 4px;
    }
    
    .sys-alert-btn {
        padding: 3px 6px;
        font-size: 6px;
    }
}

@keyframes alertFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes alertFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes alertPopIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes alertPopOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

/* Remove old toast styles (overriding if necessary) */
.toast-container {
    display: none !important;
}

/* Check Payment Button */
.btn-check-payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.15) 0%, rgba(0, 212, 204, 0.15) 100%);
    color: var(--accent-cyan, #00F2EA);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 242, 234, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-check-payment:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.25) 0%, rgba(0, 212, 204, 0.25) 100%);
    box-shadow: 0 4px 12px rgba(0, 242, 234, 0.3);
    transform: translateY(-2px);
}

.btn-check-payment:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 242, 234, 0.2);
}

.btn-check-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-check-payment svg {
    flex-shrink: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Payment Method Cards */
.payment-method-card {
    position: relative;
}

.payment-method-card:hover:not([style*="opacity: 0.5"]) {
    border-color: var(--accent-cyan) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 234, 0.2);
}

.payment-method-card input[type="radio"]:checked + div + div + .payment-check {
    border-color: var(--accent-cyan);
}

.payment-method-card input[type="radio"]:checked + div + div + .payment-check > div {
    transform: scale(1);
}

.payment-method-card input[type="radio"]:checked ~ * {
    /* Visual feedback for selected card */
}

.payment-method-card:has(input[type="radio"]:checked) {
    border-color: var(--accent-cyan) !important;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.05) 0%, rgba(0, 212, 204, 0.05) 100%) !important;
}

/* ============================================
   REFERRAL SYSTEM STYLES
   ============================================ */

/* Referral Section */
.referral-section {
    padding: 24px 0;
}

/* Referral Settings Card */
.referral-settings {
    padding: 32px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.referral-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.referral-settings h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-settings h3::before {
    content: '⚙️';
    font-size: 24px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-item input,
.setting-item select {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
}

.setting-item small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* Referral Statistics */
.referral-stats {
    padding: 32px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.05), rgba(42, 171, 238, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.referral-stats h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-stats h3::before {
    content: '📊';
    font-size: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-box {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.2);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box > div:first-child {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-box > div:last-child {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Top Referrers */
.top-referrers {
    padding: 32px;
    margin-bottom: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.top-referrers h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-referrers h3::before {
    content: '🏆';
    font-size: 24px;
}

.referrers-table {
    overflow-x: auto;
    margin-top: 20px;
}

.referrers-table table {
    width: 100%;
    border-collapse: collapse;
}

.referrers-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--glass-border);
}

.referrers-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-primary);
}

.referrers-table tr {
    transition: all 0.3s ease;
}

.referrers-table tr:hover {
    background: rgba(42, 171, 238, 0.05);
}

.referrers-table tr:last-child td {
    border-bottom: none;
}

/* Suspicious Activity */
.suspicious-activity {
    padding: 32px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.05), rgba(0, 212, 204, 0.05));
    border: 1px solid rgba(0, 242, 234, 0.3);
    border-radius: 20px;
    position: relative;
}

.suspicious-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00F2EA, #00D4CC, #00F2EA);
    background-size: 200% 100%;
    animation: warningPulse 2s ease infinite;
}

@keyframes warningPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.suspicious-activity h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-filters {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.activity-filters select {
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-filters select:focus {
    outline: none;
    border-color: #00F2EA;
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.suspicious-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suspicious-item {
    padding: 16px;
    background: var(--bg-primary);
    border-left: 4px solid #00F2EA;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    transition: all 0.3s ease;
}

.suspicious-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 242, 234, 0.2);
}

.suspicious-item.high {
    border-left-color: #ff4444;
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.1), transparent);
}

.suspicious-item.medium {
    border-left-color: #00F2EA;
    background: linear-gradient(90deg, rgba(0, 242, 234, 0.1), transparent);
}

.suspicious-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.suspicious-item p {
    margin: 4px 0 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge.high {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.severity-badge.medium {
    background: rgba(0, 242, 234, 0.2);
    color: #00F2EA;
}

/* Referral Transactions */
.referral-transactions {
    padding: 32px;
    margin-bottom: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.referral-transactions h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-transactions h3::before {
    content: '💰';
    font-size: 24px;
}

.transactions-filters {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.transactions-filters input[type="date"] {
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transactions-filters input[type="date"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
}

.transactions-table {
    overflow-x: auto;
    margin-top: 20px;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--glass-border);
}

.transactions-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-primary);
}

.transactions-table tr {
    transition: all 0.3s ease;
}

.transactions-table tr:hover {
    background: rgba(42, 171, 238, 0.05);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.transaction-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.transaction-status.completed {
    background: rgba(0, 242, 234, 0.2);
    color: #00F2EA;
}

.transaction-status.pending {
    background: rgba(0, 242, 234, 0.2);
    color: #00F2EA;
}

/* Responsive Referral Styles */
@media (max-width: 768px) {
    .referral-settings,
    .referral-stats,
    .top-referrers,
    .suspicious-activity,
    .referral-transactions {
        padding: 20px 16px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-box > div:last-child {
        font-size: 24px;
    }

    .referrers-table,
    .transactions-table {
        font-size: 12px;
    }

    .referrers-table th,
    .referrers-table td,
    .transactions-table th,
    .transactions-table td {
        padding: 12px 8px;
    }

    .activity-filters,
    .transactions-filters {
        flex-direction: column;
    }

    .activity-filters select,
    .transactions-filters input,
    .transactions-filters button {
        width: 100%;
    }
}