@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #050505;
    /* Pure Black */
    --bg-secondary: #0a0a0a;
    /* Off Black */
    --bg-tertiary: #111111;
    --bg-card: #111111;
    /* Very Dark Grey */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    /* Neutral Grey */

    --accent-purple: #c026d3;
    /* Fuchsia */
    --accent-pink: #db2777;
    /* Pink */
    --accent-blue: #2563eb;
    /* Blue */
    --accent-cyan: #0891b2;
    /* Cyan */
    --accent-green: #059669;
    /* Emerald */
    --accent-orange: #d97706;
    /* Amber */

    /* New Gradients - Vibrant Synthwave */
    --gradient-primary: linear-gradient(135deg, #c026d3 0%, #db2777 100%);
    /* Fuchsia to Pink */
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    /* Violet to Blue */
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-wallet: linear-gradient(135deg, #c026d3 0%, #7c3aed 100%);
    /* Fuchsia to Violet */

    --shadow-glow: 0 0 40px rgba(192, 38, 211, 0.4);
    /* Pink Glow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent);
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent);
    bottom: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: 2px solid rgba(168, 85, 247, 0.3);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: 0.5s;
    z-index: -1;
}

.auth-tab.active::before {
    left: 0;
}

.auth-tab.active {
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    color: #6b6767;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgb(255 255 255 / 8%);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn {
    padding: 16px 30px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

.dashboard-header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-logout {
    background: var(--gradient-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
}

.gov-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-green);
    margin: 20px;
}

.stats-card {
    margin: 20px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.balance-card {
    margin: 20px;
    padding: 40px 30px;
    background: var(--gradient-wallet);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(250, 112, 154, 0.4);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.balance-amount {
    font-size: 52px;
    font-weight: 900;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    padding: 25px;
    /* margin: 20px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.operator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.operator-card {
    aspect-ratio: 1;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s;
}

.operator-card:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
}

.operator-card.selected {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6);
}

.btn-start-selling {
    background: var(--gradient-success);
    width: 100%;
    padding: 20px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.5);
}

.btn-start-selling.active {
    background: var(--gradient-secondary);
}

.referral-code {
    background: var(--gradient-primary);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

.referral-code-value {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 15px 0;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.btn-back {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.support-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.support-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.6);
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--gradient-primary);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
    z-index: 9999;
    animation: slideInRight 0.5s ease;
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.history-tab {
    flex: 1;
    padding: 15px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.history-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.list-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.list-item-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.list-item-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.info-list {
    padding: 10px 0;
}

.info-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
}

.status-approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
    .operator-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-header {
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    body::before,
    body::after {
        width: 300px;
        height: 300px;
    }

    .auth-card {
        padding: 35px 25px;
        margin: 10px;
    }

    .auth-logo {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }

    .auth-title {
        font-size: 26px;
    }

    .form-input {
        padding: 14px 18px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .btn {
        padding: 14px 25px;
    }

    .balance-card {
        margin: 2px;
        padding: 18px 20px;
    }

    .balance-amount {
        font-size: 36px;
    }

    .card {
        margin: 0px;
        padding: 15px;
    }

    .operator-grid {
        gap: 10px;
    }

    .btn-start-selling {
        padding: 16px;
        font-size: 16px;
    }

    .referral-code-value {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .toast {
        right: 10px;
        top: 10px;
        left: 10px;
        padding: 15px 20px;
        font-size: 14px;
    }

    .support-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .support-chat {
        bottom: 90px;
        right: 20px;
    }
}

/* Shine Effect Animation */
@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.shine-text {
    background: linear-gradient(to right,
            var(--accent-purple) 20%,
            #ffffff 40%,
            #ffffff 60%,
            var(--accent-purple) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    font-weight: 900;
}

.shine-icon {
    position: relative;
    overflow: hidden;
}

.shine-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-sweep 3s infinite;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}