:root {
    /* Dark Theme Color System */
    --primary-color: #06d6a0;
    --primary-dark: #048968;
    --primary-light: #40e0bd;
    --secondary-color: #7c3aed;
    --secondary-dark: #5b21b6;
    --secondary-light: #a855f7;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    
    /* Status Colors */
    --success-color: #06d6a0;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Dark Background System */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-input-focus: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --text-accent: var(--primary-color);
    
    /* Border System */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(6, 214, 160, 0.3);
    
    /* Modern Shadow System */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(6, 214, 160, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-border: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    --gradient-bg: radial-gradient(ellipse at top, rgba(6, 214, 160, 0.1) 0%, transparent 50%), radial-gradient(ellipse at bottom, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Background with floating elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 214, 160, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 30%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, 1%) rotate(1deg); }
    66% { transform: translate(1%, -1%) rotate(-1deg); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 0.9rem;
    position: relative;
    z-index: 1;
}

/* Modern Card System */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--gradient-border);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    opacity: 0.6;
}

/* Logo Container with modern styling */
.logo-container {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
}

.logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 9px 18px rgba(6, 214, 160, 0.3));
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 30px rgba(6, 214, 160, 0.5));
}

/* Section Headers with modern typography */
.section-header {
    margin-bottom: 1.75rem;
    position: relative;
}

.section-title {
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.44rem;
    display: flex;
    align-items: center;
    gap: 0.66rem;
}

.section-title i {
    font-size: 1.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Modern Form Elements */
.form-group {
    margin-bottom: 1.54rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.44rem;
    margin-bottom: 0.66rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.79rem;
}

.form-input {
    width: 100%;
    padding: 0.88rem 1.1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.form-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1), var(--shadow-glow);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-hint {
    margin-top: 0.44rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.22rem;
}

/* Ultra-modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.44rem;
    padding: 0.88rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 46px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-2px);
}

/* Calculation Display with glow effect */
.calculation-display {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 1.32rem;
    margin-top: 0.88rem;
    position: relative;
    overflow: hidden;
}

.calculation-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.8;
}

/* 2-Column Grid Layout */
.calculation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

.calculation-left {
    display: flex;
    flex-direction: column;
}

.calculation-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.calculation-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.44rem;
    font-weight: 500;
}

.calculation-value {
    font-size: 1.54rem;
    font-weight: 800;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(6, 214, 160, 0.3);
    margin-bottom: 0.44rem;
}

/* Bonus Display Styles - Updated for 2-column layout */
.bonus-display {
    margin-top: 0.66rem;
    padding-top: 0.66rem;
    border-top: 1px solid var(--border-secondary);
    animation: bonusGlow 0.5s ease-in-out;
}

.bonus-text {
    font-size: 0.79rem;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

@keyframes bonusGlow {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* First Deposit Gift Styles - Updated for 2-column layout */
.first-deposit-gift {
    margin-top: 0;
    padding: 0.66rem;
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.25);
    border-radius: 10px;
    animation: giftSparkle 0.6s ease-out;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.first-deposit-gift::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(6, 214, 160, 0.3), rgba(124, 58, 237, 0.3));
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite;
}

.gift-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.44rem;
}

.gift-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(6, 214, 160, 0.3);
    line-height: 1.3;
}

.gift-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.22rem;
}

.gift-item {
    font-size: 0.63rem;
    color: var(--text-primary);
    font-weight: 400;
    padding: 0.13rem 0;
    transition: all 0.3s ease;
    opacity: 0.9;
    line-height: 1.3;
}

.gift-item:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(2px);
}

@keyframes giftSparkle {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
}

/* Order Section with modern layout */
.order-section {
    display: none;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-section.show {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR and Status Grid */
.qr-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.qr-container {
    text-align: center;
    padding: 1.32rem;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.qr-container img {
    width: 100%;
    height: auto;
    max-width: 246px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.status-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 1.32rem;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 229px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Spinner with modern animation */
.loading-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: modernSpin 1s linear infinite;
    margin: 0 auto 1.32rem;
    box-shadow: var(--shadow-glow);
}

@keyframes modernSpin {
    0% { 
        transform: rotate(0deg);
        box-shadow: var(--shadow-glow);
    }
    50% { 
        box-shadow: 0 0 30px rgba(6, 214, 160, 0.5);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: var(--shadow-glow);
    }
}

.success-icon {
    width: 53px;
    height: 53px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.32rem;
    color: white;
    font-size: 21px;
    animation: successPulse 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

@keyframes successPulse {
    0% { 
        transform: scale(0);
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px 10px rgba(6, 214, 160, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: var(--shadow-md), var(--shadow-glow);
    }
}

/* Order Info with glassmorphism */
.order-info {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 1.32rem;
    margin-bottom: 1.32rem;
    box-shadow: var(--shadow-sm);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.88rem;
    padding: 0.66rem 0;
    border-bottom: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-row:hover {
    padding-left: 0.44rem;
    background: rgba(6, 214, 160, 0.05);
    border-radius: 7px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.79rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Status badges with modern styling */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    padding: 0.66rem 0.88rem;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.status-success {
    background: rgba(6, 214, 160, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(6, 214, 160, 0.3);
    box-shadow: 0 0 10px rgba(6, 214, 160, 0.2);
}

.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .qr-status-grid {
        grid-template-columns: 1fr;
        gap: 1.32rem;
    }
    
    .status-container {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.88rem;
    }

    .card {
        padding: 1.32rem;
        margin-bottom: 1.32rem;
        border-radius: 14px;
    }

    .qr-status-grid {
        grid-template-columns: 1fr;
        gap: 0.88rem;
    }

    .status-container {
        min-height: auto;
        padding: 1.32rem;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .btn {
        padding: 0.77rem 1.32rem;
        font-size: 0.79rem;
        min-height: 42px;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.66rem;
    }

    .card {
        padding: 1.1rem;
        border-radius: 12px;
    }

    .form-input {
        padding: 0.77rem 0.88rem;
        border-radius: 9px;
    }

    .btn {
        padding: 0.66rem 1.1rem;
        font-size: 0.75rem;
        border-radius: 9px;
    }

    .qr-container img {
        max-width: 211px;
    }

    .logo {
        width: 62px;
        height: 62px;
    }

    .gift-items {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    
    .gift-item {
        font-size: 0.7rem;
    }
    
    .gift-title {
        font-size: 0.8rem;
    }
}

/* Mobile responsive for calculation grid */
@media (max-width: 768px) {
    .calculation-grid {
        grid-template-columns: 1fr;
        gap: 0.88rem;
    }
    
    .calculation-value {
        font-size: 1.32rem;
    }
    
    .gift-title {
        font-size: 0.66rem;
    }
    
    .gift-item {
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .calculation-grid {
        gap: 0.66rem;
    }
    
    .calculation-display {
        padding: 1.1rem;
    }
    
    .calculation-value {
        font-size: 1.23rem;
    }
    
    .gift-title {
        font-size: 0.63rem;
    }
    
    .gift-item {
        font-size: 0.6rem;
    }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    box-shadow: var(--shadow-glow);
}

/* Selection with gradient */
::selection {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.3), rgba(124, 58, 237, 0.3));
    color: var(--text-primary);
}

/* Focus states */
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: var(--shadow-glow);
}

.form-input:focus-visible {
    outline: none;
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
} 