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

:root {
    --bg-dark: #090a12;
    --bg-card: rgba(20, 22, 39, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --level-free: #3b82f6;
    --level-standard: #8b5cf6;
    --level-premium: #d97706;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
    }
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.1);
}

/* Header & Nav */
header {
    background: rgba(9, 10, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 17, 28, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-free {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-standard {
    background-color: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-premium {
    background-color: rgba(217, 119, 6, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert ul {
    list-style: none;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

.custom-table th {
    background: rgba(15, 17, 28, 0.5);
    padding: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Grid & Layout Helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.about-stats {
    display: flex;
    gap: 3.5rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.about-stat-item {
    flex: 1;
    min-width: 150px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }
}

/* Landing Page Specific */
.hero {
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(15, 17, 28, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.5rem;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary) 100%);
    color: #fff;
    padding: 0.25rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 1.5rem 0;
}

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

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Auth Cards */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

/* Dashboard Specific styling */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    border-left: 3px solid var(--primary);
}

.stat-card {
    background: rgba(15, 17, 28, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Tabs for Admin Dashboard */
.tab-container {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab-btn.active {
    color: #fff;
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(9, 10, 18, 0.9);
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing Row Layout */
.pricing-row-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto 0 auto;
}

.pricing-row-item {
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    border-radius: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-row-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.pricing-row-item.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.pricing-row-item.popular:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
}

.pricing-row-info {
    flex: 1.2;
    min-width: 240px;
}

.pricing-row-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pricing-row-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.pricing-row-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.5rem;
}

.pricing-row-price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-row-features {
    flex: 2;
    min-width: 320px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.pricing-row-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-row-feature-item i {
    flex-shrink: 0;
    font-size: 0.85rem;
}

.pricing-row-action {
    flex: 0.8;
    min-width: 180px;
    text-align: right;
}

/* Responsive Pricing Rows */
@media (max-width: 992px) {
    .pricing-row-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    .pricing-row-features {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    .pricing-row-action {
        text-align: center;
    }
    .pricing-row-title-container {
        justify-content: center;
    }
}

