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

:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --text-muted: #64748b;
}

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

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* NAVBAR */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-light);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 8rem 2rem 4rem 2rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,211,102,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--dark), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* PRICING SECTION */
.pricing {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--white);
}

.pricing-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

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

.pricing-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--light);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.price-card.popular {
    background: var(--dark);
    color: var(--white);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

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

.price-card.popular .price span {
    color: #cbd5e1;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features li i {
    color: var(--primary);
}

/* AUTH & DASHBOARD PREMIUM */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #e2e8f0 0%, #f1f5f9 100%);
    padding: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255,255,255,0.5);
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-light);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

/* PREMIUM DASHBOARD */
.dashboard-container {
    max-width: 1300px;
    margin: 7rem auto 3rem auto;
    padding: 0 2rem;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,211,102,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.welcome-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.stat-cards {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    min-width: 140px;
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.stat-card span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dash-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.dash-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 800;
}

.dash-card h3 i {
    color: var(--primary);
    background: rgba(37, 211, 102, 0.1);
    padding: 10px;
    border-radius: 12px;
    font-size: 1.2rem;
}

.api-key-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    color: var(--dark);
    padding: 1.5rem;
    border-radius: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.api-key-box:hover {
    border-color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    color: white;
}

.btn-blue { background: #3b82f6; }
.btn-blue:hover { background: #2563eb; transform: scale(1.05); }

.btn-red { background: #ef4444; }
.btn-red:hover { background: #dc2626; transform: scale(1.05); }

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.qr-wrapper {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qr-wrapper:hover {
    border-color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 10px;
}

.data-table th {
    text-align: left;
    padding: 0 1.5rem 0.5rem 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.data-table td {
    padding: 1.2rem 1.5rem;
    background: var(--light);
}

.data-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.data-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.data-table tr {
    transition: transform 0.2s;
}

.data-table tr:hover td {
    background: #f1f5f9;
    cursor: default;
}

.badge-success {
    background: rgba(37, 211, 102, 0.15);
    color: #15803d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .dash-grid { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; text-align: center; gap: 2rem; }
    .stat-cards { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .nav-links { display: none; }
    .api-key-box { flex-direction: column; gap: 15px; text-align: center; }
    .stat-card { width: 100%; }
    .dash-card { padding: 1.5rem; }
}
