/* Premium CSS stylesheet for Laptop Company E-Commerce Earning Web App */

:root {
    --primary-color: #0EA5E9;       /* Laptop Company Electric Blue */
    --primary-hover: #0284C7;
    --primary-light: #E0F2FE;       /* Light blue background for badges */
    --accent-color: #6366F1;        /* Deep Indigo for highlights */
    --bg-color: #F8FAFC;            /* Clean light-gray background representing mobile app environment */
    --card-bg: #FFFFFF;
    --text-color: #1E293B;          /* Charcoal text */
    --text-muted: #64748B;          /* Slate text */
    --border-color: #E2E8F0;
    --error-color: #EF4444;
    --success-color: #10B981;
    --max-width: 480px;             /* Mobile view max width */
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    --shadow-premium: 0 10px 25px -5px rgba(14, 165, 233, 0.15), 0 8px 10px -6px rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0F172A; /* Slate-900 background for desktop wrap */
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Wrapper Container */
.app-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px; /* Spacer for fixed bottom navigation bar */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Header style for inside pages */
.app-header {
    background: var(--gradient-primary);
    color: #FFFFFF;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
    z-index: 10;
}

.app-header .back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 18px;
    margin-right: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.app-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.app-header h1 {
    font-size: 19px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin-right: 36px; /* Offset the back button space to center title */
    letter-spacing: 0.5px;
}

/* Main Content Area */
.app-content {
    flex: 1;
    padding: 16px;
}

/* Rounded Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:active {
    transform: scale(0.99);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

.input-field {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1.5px solid var(--border-color);
    background-color: #F8FAFC;
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
}

.input-field:focus {
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.input-field-right-icon {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-premium);
}

.btn-primary:hover {
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #BAE6FD;
}

/* Fixed Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: var(--max-width);
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    gap: 5px;
    flex: 1;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 22px;
}

/* Alert Notification Styles */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Modal Dialog Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.75); /* Darker backdrop */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #FFFFFF;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-color);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/* ==== Welcome Popup - exact design match ==== */
.lc-popup-card {
    border-radius: 28px;
    padding: 32px 26px 26px;
}
.lc-popup-title {
    font-size: 28px;
    margin-bottom: 26px;
}
.lc-row {
    gap: 14px;
    margin-bottom: 18px;
}
.lc-icon {
    font-size: 22px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.lc-commission-title {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 14px 0 12px;
}
.lc-commission-row {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 22px;
}
.lc-commission-row .lc-sep {
    color: #ccc;
    font-weight: 400;
    margin: 0 4px;
}
.lc-tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a, #059669) !important;
    border-radius: 999px;
}