body {

    margin: 0;

    padding: 0;

    width: 100%;

    overflow-x: hidden;

    font-family: 'Inter', sans-serif;

    background: #f5f5f5;
}

.container {

    max-width: 1400px;

    margin: 0 auto;

    padding: 10px;

    box-sizing: border-box;
}

/* 🔷 NAVBAR */
.top-navbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 20px;
    background:white !important;   /* 🔥 FORCE */
    color:#222 !important;
    border-bottom:1px solid #e0e0e0;
    box-sizing: border-box;
}

.logo {
    height: 55px;
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img {
    height:55px;
}

.top-nav-right {
    display:flex;
    gap:15px;
    align-items:center;
    color:#333;   /* 🔥 dark text */
    font-weight:500;
}

.top-nav-btn {
    background:white;
    color:#0d6efd;
    border:none;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
}

/* 🔻 FOOTER */
.footer {
    text-align:center;
    padding:15px;
    background:#222;
    color:#ccc;
    margin-top:20px;
}

.content {
    padding:10px;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .top-navbar {
        padding: 10px 12px;
    }

    .container {
        padding: 6px;
    }

    .content {
        padding: 0;
    }
}

/* =========================================
🌙 DARK MODE
========================================= */

body.dark-mode {
    background: #111 !important;
    color: #eee !important;
}

/* 🔷 NAVBAR */
body.dark-mode .top-navbar {
    background: #1b1b1b !important;
    border-bottom: 1px solid #333 !important;
}

/* 🔷 TEXT */
body.dark-mode .top-nav-right,
body.dark-mode .top-navbar,
body.dark-mode .content,
body.dark-mode .footer {
    color: #eee !important;
}

/* 🔷 BUTTONS */
body.dark-mode .top-nav-btn {
    background: #2a2a2a !important;
    color: #fff !important;
}

/* 🔷 FOOTER */
body.dark-mode .footer {
    background: #000 !important;
}

/* 🔷 THUMBNAILS */
body.dark-mode .thumb {
    background: #1f1f1f !important;
}

/* 🔷 CALENDAR */
body.dark-mode #calendarBox {
    background: #1f1f1f !important;
    color: #fff !important;
}

/* 🔷 MOBILE MENU */
body.dark-mode .mobile-menu {
    background: #1b1b1b !important;
}

/* 🔷 SHARE BAR */
body.dark-mode #cropShareBar {
    background: #1f1f1f !important;
}

/* 🔷 IMAGE AREA */
body.dark-mode #mainView {
    background: #000 !important;
}

/* 🔥 SMOOTH TRANSITION */
body,
.top-navbar,
.footer,
.thumb,
.mobile-menu,
#calendarBox,
#mainView {
    transition: all 0.3s ease;
}

.reader-user {

    margin-left: 15px;

    font-weight: bold;

    color: #222;
}

.reader-auth-btn {

    margin-left: 12px;

    padding: 6px 12px;

    background: #2563eb;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;
}

.reader-auth-btn:hover {

    background: #1d4ed8;
}

/* 📱 MOBILE NAVBAR FIX */

@media (max-width: 768px) {

    #liveClock {

        display: none;
    }

    .reader-user {

        font-size: 13px;

        margin-left: 8px;
    }

    .reader-auth-btn {

        padding: 5px 10px;

        font-size: 13px;

        margin-left: 6px;
    }
}

/* 👤 ACCOUNT PAGE */

.account-box {

    max-width: 650px;

    margin: 40px auto;

    background: white;

    padding: 30px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.15);
}

.account-box h2 {

    margin-bottom: 25px;

    text-align: center;
}

.account-section {

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #ddd;
}

.account-section h3 {

    margin-bottom: 18px;
}

.account-section p {

    margin-bottom: 14px;

    font-size: 16px;

    line-height: 1.5;
}

/* ✏️ PROFILE FORM */

.account-section input {

    width: 100%;

    padding: 12px;

    margin-bottom: 14px;

    border: 1px solid #ccc;

    border-radius: 10px;

    font-size: 15px;

    box-sizing: border-box;
}

.save-profile-btn {

    padding: 12px 20px;

    background: #2563eb;

    color: white;

    border: none;

    border-radius: 10px;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}

.save-profile-btn:hover {

    background: #1d4ed8;
}

/* 🔐 AUTH FORMS */

.auth-form input {

    width: 100%;

    padding: 14px;

    margin-bottom: 16px;

    border: 1px solid #ccc;

    border-radius: 10px;

    font-size: 15px;

    box-sizing: border-box;
}

.auth-form button {

    width: 100%;

    padding: 14px;

    background: #2563eb;

    color: white;

    border: none;

    border-radius: 10px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.auth-form button:hover {

    background: #1d4ed8;
}

/* 📜 SUBSCRIPTION HISTORY */

.subscription-history-item {

    padding: 16px;

    margin-bottom: 18px;

    border: 1px solid #ddd;

    border-radius: 12px;

    background: #fafafa;
}

/* 💳 SUBSCRIPTION PLANS */

.plans-container {

    max-width: 1000px;

    margin: 40px auto;

    text-align: center;
}

.plans-grid {

    display: flex;

    gap: 25px;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 30px;
}

.plan-card {

    width: 260px;

    background: white;

    padding: 30px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.12);
}

.plan-card h3 {

    margin-bottom: 20px;
}

.plan-price {

    font-size: 34px;

    font-weight: bold;

    margin: 20px 0;

    color: #2563eb;
}

.subscribe-btn {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.subscribe-btn:hover {

    background: #1d4ed8;
}

/* 📱 MOBILE NAVBAR */

@media (max-width: 768px) {

    .top-navbar {

        flex-direction: column;

        gap: 10px;

        padding: 10px;
    }

    .nav-right {

        flex-wrap: wrap;

        justify-content: center;

        gap: 10px;
    }

    .reader-auth-btn {

        font-size: 14px;

        padding: 6px 10px;
    }

    .reader-user {

        font-size: 14px;
    }

    #liveClock {

        font-size: 14px;
    }
}

.message-container {

    width: 90%;

    max-width: 500px;

    margin: 20px auto;
}

.message-box {

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 10px;

    font-weight: bold;

    text-align: center;
}

.message-box.success {

    background: #d4edda;

    color: #155724;
}

.message-box.error {

    background: #f8d7da;

    color: #721c24;
}

/* =========================
📄 SITE PAGES
========================= */

.site-page {

    max-width: 900px;

    margin: 40px auto;

    background: white;

    padding: 30px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.08);
}

.site-page h1 {

    margin-bottom: 25px;

    font-size: 34px;

    color: #222;
}

.site-page-content {

    line-height: 1.8;

    font-size: 17px;

    color: #444;
}

/* 🌙 DARK MODE */

body.dark-mode .site-page {

    background: #1b1b1b;

    color: #eee;
}

body.dark-mode .site-page h1 {

    color: #fff;
}

body.dark-mode .site-page-content {

    color: #ddd;
}

.footer-links {

    margin-bottom: 10px;
}

.footer-links a {

    color: #ccc;

    text-decoration: none;

    margin: 0 12px;

    font-size: 14px;
}

.footer-links a:hover {

    color: white;
}
