/* --- General & Variables --- */
:root {
    --primary-color: #6366f1; /* Indigo 500 */
    --primary-hover: #4f46e5; /* Indigo 600 */
    --secondary-color: #374151; /* Cool Gray 700 */
    --secondary-hover: #1f2937; /* Cool Gray 800 */
    --bg-color: #030712; /* Gray 950 */
    --surface-color: #111827; /* Gray 900 */
    --surface-lighter: #1f2937; /* Gray 800 */
    --text-color: #f9fafb; /* Gray 50 */
    --text-muted-color: #9ca3af; /* Gray 400 */
    --border-color: #374151; /* Gray 700 */
    --font-family: 'Inter', sans-serif;
    --glow-color-1: rgba(99, 102, 241, 0.3);
    --glow-color-2: rgba(139, 92, 246, 0.2);
    --positive-color: #22c55e; /* Green 500 */
    --negative-color: #ef4444; /* Red 500 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-glow {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, var(--glow-color-1), transparent 40%),
                radial-gradient(circle at 80% 70%, var(--glow-color-2), transparent 50%);
    animation: move-glow 30s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes move-glow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(10vw, -10vh) scale(1.2);
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.2;
}

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

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted-color);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced Navigation */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    position: relative;
}

.user-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.user-dropdown-btn:hover {
    background-color: var(--surface-color);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--surface-lighter);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    color: var(--negative-color);
}

/* === AUTHENTICATION MODAL STYLES === */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted-color);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--text-color);
    background-color: var(--surface-lighter);
}

.auth-modal-body {
    padding: 1rem 2rem 2rem;
}

.auth-tabs {
    display: flex;
    background-color: var(--surface-lighter);
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-muted-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.auth-tab.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.auth-tab:hover:not(.active) {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Form styling for auth modal */
.auth-modal .form-group {
    margin-bottom: 1.5rem;
}

.auth-modal .form-group:last-of-type {
    margin-bottom: 2rem;
}

.auth-modal input[type="email"],
.auth-modal input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.auth-modal input[type="email"]:focus,
.auth-modal input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: var(--surface-color);
}

.auth-modal input::placeholder {
    color: var(--text-muted-color);
}

.auth-modal .btn {
    font-size: 1rem;
    padding: 14px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* === NOTIFICATION STYLES === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    animation: slideInFromRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid var(--positive-color);
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1), 
        var(--surface-color));
}

.notification-error {
    border-left: 4px solid var(--negative-color);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1), 
        var(--surface-color));
}

.notification-info {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        var(--surface-color));
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted-color);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* --- 10K Parquet sample band --- */
.sample-10k-section {
    padding: 4rem 0 5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
}

.sample-10k-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 2.5rem;
    align-items: start;
}

.sample-10k-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.sample-10k-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.sample-10k-lead {
    color: var(--text-muted-color);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.sample-10k-list {
    margin: 0 0 1.5rem 1.1rem;
    color: var(--text-muted-color);
    line-height: 1.7;
}

.sample-10k-list li {
    margin-bottom: 0.35rem;
}

.sample-10k-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sample-10k-hint {
    font-size: 0.85rem;
    color: var(--negative-color);
    min-height: 1.25em;
}

.card-surface {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}

.card-surface h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

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

.text-muted.small {
    font-size: 0.85rem;
    line-height: 1.5;
}

.schema-chip-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schema-chip-list li {
    background: var(--surface-lighter);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.sample-10k-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.25rem 0;
}

@media (max-width: 900px) {
    .sample-10k-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Hero Section */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted-color);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* --- Sections & Cards --- */
section {
    padding: 6rem 0;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(145deg, var(--surface-lighter), var(--surface-color));
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.card-icon svg {
    width: 28px;
    height: 28px;
}

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

.dataset-card {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dataset-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: var(--primary-color);
}

/* Enhanced Dataset Cards */
.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.dataset-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 1rem;
}

.dataset-description {
    color: var(--text-muted-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.dataset-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dataset-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
}

.dataset-info {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

/* --- New Completeness/Fill Rate Bar --- */
.completeness-metric {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted-color);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}
.completeness-metric span:first-child {
    grid-column: 1 / 2;
}
.completeness-metric span:last-child {
    grid-column: 2 / 3;
    font-weight: 600;
    color: var(--text-color);
}
.fill-rate-bar {
    grid-column: 1 / 3;
    width: 100%;
    height: 8px;
    background-color: var(--surface-lighter);
    border-radius: 4px;
    overflow: hidden;
}
.fill-rate-progress {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #a855f7);
    border-radius: 4px;
}

.formats {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

.dataset-card .btn {
    margin-top: auto;
}

/* Data Preview Section */
.data-preview {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.preview-container {
    max-width: 900px;
    margin: 0 auto;
}

.data-sample {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.sample-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sample-header h4 {
    margin: 0;
    color: var(--text-color);
}

.sample-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    background-color: var(--surface-lighter);
    padding: 4px 12px;
    border-radius: 16px;
}

.csv-preview {
    overflow-x: auto;
}

.sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.sample-table th,
.sample-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.sample-table th {
    background-color: var(--surface-lighter);
    font-weight: 600;
    color: var(--text-muted-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.sample-table td {
    color: var(--text-color);
}

.sample-actions {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--surface-lighter);
}

.sample-note {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

/* Methodology Section */
.methodology-section {
    background-color: var(--surface-color);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.methodology-step {
    text-align: left;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.methodology-step h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Updated Trust Section */
.trust-section {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.trust-title {
    color: var(--text-muted-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.company-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.company-logos svg {
    height: 35px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.company-logos svg:hover {
    opacity: 1;
}

.signup-cta {
    background-color: transparent;
}

/* === ENHANCED FORM STYLES === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted-color);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* --- DATASET CATALOG PAGE --- */
.catalog-header { padding: 6rem 0; text-align: center; }
.search-container { display: flex; max-width: 600px; margin: 2rem auto 0; gap: 0.5rem; }
.search-container input { flex-grow: 1; padding: 14px 20px; border-radius: 10px; border: 1px solid var(--border-color); background-color: var(--surface-color); color: var(--text-color); font-size: 1rem; }
.search-container input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }
.catalog-body { padding-top: 0; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.filters-sidebar { background-color: var(--surface-color); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); align-self: start; }
.filters-sidebar h3 { margin-bottom: 1.5rem; font-size: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { margin-bottom: 0.75rem; color: var(--text-muted-color); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-group label { display: block; margin-bottom: 0.5rem; cursor: pointer; }
.filter-group input { margin-right: 0.5rem; }
.datasets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Replace the existing pricing CSS in style.css with this improved version */

.pricing-section {
    background-color: var(--bg-color);
    padding: 6rem 0;
}

.pricing-grid-expanded {
    display: grid;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-items: center;
    justify-content: center;
    
    /* Desktop: 5 cards in a single row */
    grid-template-columns: repeat(5, minmax(240px, 280px));
}

.pricing-card {
    background: linear-gradient(145deg, var(--surface-lighter), var(--surface-color));
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card.mega {
    border: 2px solid var(--positive-color);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.price-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--positive-color);
    font-weight: bold;
}

.value-note {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card.mega .value-note {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--positive-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-notes {
    max-width: 1000px;
    margin: 3rem auto 0;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.note-item {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-item strong {
    color: var(--primary-color);
}

/* --- Footer --- */
.footer { background-color: var(--surface-color); border-top: 1px solid var(--border-color); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col .nav-logo { margin-bottom: 1rem; display: inline-block; }
.footer-motto { color: var(--text-muted-color); font-size: 0.9rem; }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: var(--text-color); transition: color 0.3s ease; }
.footer-col ul a:hover { color: var(--primary-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted-color); font-size: 0.9rem; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: var(--text-muted-color); transition: color 0.3s ease; }
.social-links a:hover { color: var(--text-color); }

/* --- ADMIN DASHBOARD STYLES --- */
.admin-body { background-color: #0d1117; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background-color: var(--bg-color); border-right: 1px solid var(--border-color); padding: 1.5rem; flex-shrink: 0; }
.sidebar-header { margin-bottom: 2rem; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 0.5rem; }
.sidebar-nav li a { display: flex; align-items: center; gap: 0.75rem; padding: 12px 16px; color: var(--text-muted-color); font-weight: 500; border-radius: 8px; transition: background-color 0.2s, color 0.2s; }
.sidebar-nav li a:hover { background-color: var(--surface-color); color: var(--text-color); }
.sidebar-nav li a.active { background-color: var(--primary-color); color: white; }

.admin-main { flex-grow: 1; padding: 2rem 3rem; }
.admin-section { padding: 0; }
.admin-section .section-title { text-align: left; margin-bottom: 2rem; font-size: 2.2rem; }

.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.metric-card { background: linear-gradient(145deg, var(--surface-color), var(--surface-lighter)); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.metric-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.metric-card h4 { color: var(--text-muted-color); font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.metric-value { font-size: 2.2rem; font-weight: 700; }
.metric-change { font-size: 0.9rem; font-weight: 500; }
.metric-change.positive { color: var(--positive-color); }
.metric-change.negative { color: var(--negative-color); }

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chart-container-large, .chart-container-small {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chart-container-large h3, .chart-container-small h3 { margin-bottom: 1.5rem; }
.chart-container-small canvas { max-height: 250px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.table-container { background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { background-color: var(--surface-lighter); font-weight: 600; color: var(--text-muted-color); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background-color 0.2s ease; }
.data-table tbody tr:hover { background-color: var(--surface-lighter); }

.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.status-badge.active { background-color: rgba(34, 197, 94, 0.1); color: var(--positive-color); }
.status-badge.inactive { background-color: rgba(156, 163, 175, 0.1); color: #9ca3af; }
.status-badge.refunded { background-color: rgba(239, 68, 68, 0.1); color: var(--negative-color); }
.action-link { margin-right: 1rem; font-weight: 500; }
.action-link:hover { text-decoration: underline; }

.report-list .report-item { background-color: var(--surface-color); padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.report-item p { color: var(--text-muted-color); margin: 0; max-width: 60%; }

.settings-form .form-group { margin-bottom: 2rem; }
.settings-form label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.settings-form input[type="text"] { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--surface-color); color: var(--text-color); font-size: 1rem; }
.settings-form .form-hint { font-size: 0.9rem; color: var(--text-muted-color); margin-top: 0.5rem; }

.admin-user-info {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.admin-email {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.admin-role {
    font-size: 0.8rem;
    color: var(--positive-color);
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.admin-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.stat-item {
    color: var(--text-muted-color);
}

.admin-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background-color: var(--surface-lighter);
    border-radius: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--positive-color);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-info {
    flex-grow: 1;
}

.report-info h4 {
    margin-bottom: 0.5rem;
}

.report-info p {
    margin: 0;
    color: var(--text-muted-color);
}

/* === LOADING STATES === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === MOBILE RESPONSIVENESS === */

/* Large Desktop: All 5 cards in one row */
@media (min-width: 1400px) {
    .pricing-grid-expanded {
        grid-template-columns: repeat(5, minmax(260px, 300px));
        justify-content: center;
    }
}

/* Standard Desktop: 3 + 2 layout */
@media (max-width: 1399px) and (min-width: 1025px) {
    .pricing-grid-expanded {
        grid-template-columns: repeat(3, minmax(280px, 320px));
        max-width: 1100px;
    }
    
    /* Position cards 4 and 5 centered on second row */
    .pricing-card:nth-child(4) {
        grid-column: 1 / 2;
    }
    
    .pricing-card:nth-child(5) {
        grid-column: 3 / 4;
    }
    
    /* Create a second row that spans columns 1-3 and center the cards */
    .pricing-card:nth-child(4),
    .pricing-card:nth-child(5) {
        justify-self: center;
    }
}

/* Tablet: 2 cards per row, with 5th centered */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid-expanded {
        grid-template-columns: repeat(2, minmax(300px, 400px));
        max-width: 900px;
    }
    
    .pricing-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        margin-bottom: 2rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .auth-modal-content {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .auth-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .auth-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .auth-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* Mobile: Single column */
    .pricing-section {
        padding: 4rem 0;
    }
    
    .pricing-grid-expanded {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        max-width: none;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .pricing-card h3 {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .pricing-features {
        min-height: auto;
    }
    
    .value-note,
    .price-subtitle {
        min-height: auto;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .pricing-grid-expanded {
        max-width: 320px;
    }
    
    .pricing-card {
        padding: 1.2rem;
    }
    
    .pricing-card h3 {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
}