@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Base Colors */
    --bg-main: #0A0A0A;
    --bg-card: #1A1A1A;
    --bg-input: #222222;
    --border-color: #333333;
    
    /* Primary (Orange) */
    --primary: #FF5E14;
    --secondary: #FF7B3A;
    --tertiary: #FF4500;
    
    /* Secondary (Blue) */
    --blue-primary: #00D4FF;
    --blue-secondary: #00A8CC;
    --blue-tertiary: #0088AA;
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #F0F0F0;
    --text-tertiary: #CCCCCC;
    --text-quaternary: #999999;
    --text-disabled: #666666;
    
    /* Status */
    --success: #4CAF50;
    --success-hover: #45A049;
    --error: #F44336;
    --error-hover: #D32F2F;
    --warning: #FFA500;
    --info: #2196F3;
    
    /* Premium */
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #FF5E14, #FF7B3A);
    --grad-premium: linear-gradient(135deg, #FFD700, #FFA500);
    --grad-bg: linear-gradient(135deg, #0A0A0A, #1A1A1A);
    --grad-blue: linear-gradient(135deg, #00D4FF, #00A8CC);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Screens */
.screen {
    display: none;
    height: 100vh;
}

.screen.active {
    display: flex;
}

/* Auth Styles */
.auth-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--grad-bg);
    position: relative;
    z-index: 1;
}

.auth-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.logo {
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.logo span {
    color: var(--primary);
}

#auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-quaternary);
    padding: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-form.active {
    display: flex;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-quaternary);
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 45px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 94, 20, 0.2);
}

.btn-primary {
    background: var(--grad-primary);
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.4);
}

/* Dashboard Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 10;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    font-size: 2.5rem;
    color: var(--blue-primary);
}

.user-details {
    display: flex;
    flex-direction: column;
}

#user-display-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.status-badge {
    font-size: 0.75rem;
    color: var(--text-quaternary);
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.menu-section h3 {
    font-size: 0.75rem;
    color: var(--text-quaternary);
    padding: 0 1.5rem 0.8rem;
    letter-spacing: 1px;
}

.menu-item {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-tertiary);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: rgba(255, 94, 20, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.gold-text {
    color: var(--gold);
}

/* Sidebar Footer & Upgrade Card */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.upgrade-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid #144655; /* Blueish border as in image */
    margin-bottom: 1rem;
    position: relative;
}

.upgrade-icon {
    background: var(--grad-blue);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.upgrade-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.upgrade-card p {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.btn-upgrade {
    width: 100%;
    background: var(--blue-primary);
    background: linear-gradient(90deg, #00D4FF, #00A8CC);
    border: none;
    padding: 0.7rem;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-upgrade:hover {
    filter: brightness(1.1);
}

.logout-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-tertiary);
    padding: 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.logout-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* Main Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1rem 0.7rem 40px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-quaternary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Content Cards */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.1);
}

.item-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-content {
    background: var(--bg-input);
    padding: 0.8rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--blue-primary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

.btn-copy:hover {
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-main);
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.pricing-container {
    text-align: center;
}

.pricing-subtitle {
    color: var(--text-tertiary);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    transition: 0.3s;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--blue-primary);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.pricing-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-quaternary);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-card li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success { color: var(--success); }
.error { color: var(--error); }

.btn-buy {
    width: 100%;
    background: var(--grad-primary);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover {
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.4);
}

.discord-notice {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.discord-notice i {
    font-size: 3rem;
    color: var(--blue-primary);
}

.discord-notice h5 {
    font-size: 1.1rem;
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
}

.discord-notice p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.btn-discord {
    background: #5865F2;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.btn-upgrade {
    animation: pulse 2s infinite;
}

/* Responsive Customization */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 1.5rem;
        height: 90vh;
        overflow-y: auto;
    }
}
