:root {
    --primary-blue: #1565c0;
    --primary-blue-dark: #0d47a1;
    --primary-blue-soft: #eaf3ff;
    --navy: #102a43;
    --text-main: #1f2d3d;
    --text-soft: #5f6c7b;
    --border: #d9e2ec;
    --surface: #ffffff;
    --surface-soft: #f7fbff;
    --background: #eef4f9;
    --success: #0f9d58;
    --shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f4f8fc 0%, #eef4f9 100%);
    margin: 0;
    padding: 0;
    color: var(--text-main);
}

/* ================= APP LAYOUT ================= */

/* ================= LOGIN PAGE ================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(circle at top left, #d7e8ff 0%, transparent 35%),
        radial-gradient(circle at bottom right, #cfe2ff 0%, transparent 30%),
        linear-gradient(180deg, #f5f9ff 0%, #edf4fb 100%);
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 30px;
    align-items: stretch;
}

.login-brand-panel {
    background: linear-gradient(145deg, #0d47a1 0%, #1565c0 55%, #1e88e5 100%);
    color: white;
    border-radius: 22px;
    padding: 48px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 24px;
}

.login-brand-panel h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: white;
}

.login-brand-panel p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
    align-self: center;
}

.login-card h2 {
    margin: 0 0 8px 0;
    color: var(--navy);
    font-size: 30px;
}

.login-subtitle {
    color: var(--text-soft);
    margin-bottom: 26px;
}

.login-card label {
    display: block;
    margin-top: 14px;
    margin-bottom: 8px;
    color: var(--navy);
}

.login-note {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 14px;
}

.full-width-btn {
    width: 100%;
    margin-top: 22px;
}


.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

/* ================= SIDEBAR ================= */

.sidebar {
    background: linear-gradient(180deg, #0f2742 0%, #12365d 100%);
    color: white;
    padding: 26px 20px;
    box-shadow: 4px 0 18px rgba(16, 42, 67, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #42a5f5 0%, #1565c0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.sidebar-brand h2 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.sidebar-brand p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    text-decoration: none;
    color: #e2e8f0;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;   /* 🔥 FIX */
    transform: translateX(2px);
}

.sidebar-nav a.active {
    background: #1e88e5;
    color: #ffffff;
    font-weight: 600;
}

/* ================= MAIN CONTENT ================= */

.main-content {
    padding: 28px;
}

/* ================= TOPBAR (FIXED VERSION) ================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.topbar-left {
    display: flex;
    flex-direction: column;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.welcome-text {
    font-weight: 600;
}

.topbar-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-blue);
}

.topbar-link:hover {
    color: var(--primary-blue-dark);
}

.welcome-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.free {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.paid {
    background: #e8f5e9;
    color: #0f9d58;
}

.status-badge.expired {
    background: #ffebee;
    color: #c62828;
}

/* ================= TITLES ================= */

.page-title {
    margin: 0;
    color: var(--navy);
    font-size: 34px;
}

.page-subtitle {
    margin: 8px 0 0 0;
    color: var(--text-soft);
    font-size: 15px;
}

.content-card {
    background: rgba(255, 255, 255, 0.93);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid #edf2f7;
}

/* ================= TYPOGRAPHY ================= */

h1, h2, h3 {
    color: var(--navy);
}

h2 {
    font-size: 22px;
    margin-top: 0;
}

h3 {
    font-size: 18px;
    margin-top: 0;
}

h4 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 16px;
}

/* ================= FORMS ================= */

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

button {
    background: linear-gradient(145deg, var(--primary-blue) 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    box-shadow: 0 6px 14px rgba(21, 101, 192, 0.18);
}

button:hover {
    background: linear-gradient(145deg, #0f5ec2 0%, var(--primary-blue-dark) 100%);
    transform: translateY(-1px);
}

/* ================= TABLES ================= */

.action-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.action-table tbody tr:hover {
    background-color: #f5f9ff;
}

.action-table th,
.action-table td {
    border: 1px solid #e3ebf3;
    padding: 12px;
}

.action-table th {
    background: var(--primary-blue-soft);
    color: var(--navy);
    text-align: left;
}

/* ================= PAGINATION ================= */

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pagination a {
    padding: 6px 12px;
    background-color: #2b6cb0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.pagination span {
    padding: 6px 12px;
}

/* ================= SPINNER ================= */

.processing-indicator {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: bold;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #d9d9d9;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= LINKS ================= */

a {
    color: var(--primary-blue);
}

a:hover {
    color: var(--primary-blue-dark);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 18px;
    }

    .sidebar {
        padding: 18px;
    }
}


.credit-badge {
    background-color: #e8f0fe;
    color: #1a73e8;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}


.billing-card {
    max-width: 500px;
    padding: 30px;
    margin: auto;
    background: white;
    border-radius: var(--radius);
}

.billing-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.small-input {
    width: 200px;
    padding: 8px;
}

.form-row {
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    gap: 10px;
}


.history-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    background: #f5f9ff;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
}

.policy-container {
    max-width: 800px;
    line-height: 1.6;
}

.footer {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer a {
    text-decoration: none;
    margin: 0 8px;
    color: inherit;
}

.buy-wrapper {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pricing-box {
    background: #f7f9fc;
    padding: 25px;
    border-radius: 8px;
}

.price-highlight {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    color: #1f3c88;
}

.pricing-desc {
    opacity: 0.8;
}

.purchase-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field {
    padding: 10px;
    font-size: 16px;
}

.total-box {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.primary-btn {
    padding: 12px;
    background: #1f3c88;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
}

.primary-btn:disabled {
    background: #aaa;
}

.policy-agreement {
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.policy-agreement a {
    text-decoration: none;
    color: #1f3c88;
}

.login-footer-links {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
    opacity: 0.7;
}

.login-footer-links a {
    text-decoration: none;
    margin: 0 6px;
    color: inherit;
}

/* =========================================
   Landing Page
========================================= */

.landing-container {
    padding: 40px;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #0B1F3A;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: #4A5568;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.primary-btn {
    background-color: #2563EB;
    color: white;
}

.secondary-btn {
    background-color: #E2E8F0;
    color: #1A202C;
}

.feature-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #0B1F3A;
}

/* =========================================
   NEW LANDING PAGE FIX
========================================= */

.landing-wrapper {
    min-height: 100vh;
    padding: 80px 40px;
    background: linear-gradient(180deg, #f4f8fc 0%, #eef4f9 100%);
}

.landing-hero {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.landing-title {
    font-size: 56px;
    line-height: 1.2;
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 24px;
}

.landing-subtitle {
    font-size: 22px;
    line-height: 1.7;
    color: #4A5568;
    max-width: 850px;
    margin: 0 auto 40px auto;
}

.landing-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.landing-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-card {
    width: 320px;
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.landing-card:hover {
    transform: translateY(-4px);
}

.landing-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #0B1F3A;
}

.landing-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #4A5568;
}

/* MOBILE */

@media (max-width: 768px) {

    .landing-wrapper {
        padding: 50px 20px;
    }

    .landing-title {
        font-size: 40px;
    }

    .landing-subtitle {
        font-size: 18px;
    }

    .landing-buttons {
        flex-direction: column;
        align-items: center;
    }

}

