:root {
    --bg: #e0e3ec;              /* ← darker, softer background (was #f4f4f8) */
    --card-bg: #ffffff;
    --text: #333333;
    --muted: #555555;
    --heading: #222222;
    --border: #d0d2dc;          /* slightly stronger border */
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);  /* deeper shadow for more depth */

    --primary: #0070ba;
    --primary-hover: #005c99;
    --secondary: #444444;
    --secondary-hover: #222222;

    --success-bg: #eaf8ea;
    --success-text: #216b21;
    --success-border: #b9e2b9;

    --error-bg: #ffe5e5;
    --error-text: #b30000;
    --error-border: #ffb3b3;

    --warning-bg: #fff8d9;
    --warning-text: #7a5a00;
    --warning-border: #ead27a;
}
/* :root {
    --bg: #f4f4f8;
    --card-bg: #ffffff;
    --text: #333333;
    --muted: #555555;
    --heading: #222222;
    --border: #d9d9df;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.10);

    --primary: #0070ba;
    --primary-hover: #005c99;
    --secondary: #444444;
    --secondary-hover: #222222;

    --success-bg: #eaf8ea;
    --success-text: #216b21;
    --success-border: #b9e2b9;

    --error-bg: #ffe5e5;
    --error-text: #b30000;
    --error-border: #ffb3b3;

    --warning-bg: #fff8d9;
    --warning-text: #7a5a00;
    --warning-border: #ead27a;
}
 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* SHARED PAGE LAYOUT */

.site-shell {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}

.site-card {
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.site-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 30px;
    color: var(--heading);
}

.site-subtitle,
.site-card p,
.site-card li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.site-section {
    margin-top: 28px;
}

.site-section h2,
.site-section h3 {
    margin-bottom: 12px;
    color: #444444;
}

.center {
    text-align: center;
}

/* TOP NAV */

.top-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.top-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.top-nav a:hover {
    background: #f0f0f5;
    text-decoration: none;
}

/* FORMS */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text);
    font-weight: bold;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #ffffff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* BUTTONS */

.btn {
    display: inline-block;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 12px;
}

/* ALERTS */

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    font-size: 15px;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.warning-note {
    background: #fff3a6;
    border: 2px solid #d9b84d;
    color: #5f4700;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* META BOX */

.meta-box {
    background: #f8f8fb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text);
}

/* FOOTER */

.site-footer {
    margin-top: 40px;
    padding: 25px 10px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

.site-footer a {
    color: #555;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    margin: 0 10px;
}

/* DOWNLOADS */

.downloads-card h3 {
    margin-top: 25px;
    color: #333;
}

.download-divider {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* MEMBER DASHBOARD */

.dashboard {
    max-width: 900px;
    margin: 40px auto;
    display: grid;
    gap: 24px;
}

.card {
    background: #ffffff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin-top: 0;
    color: #333;
}

.card h3 {
    margin-top: 20px;
    color: #444;
}

.card p {
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .site-shell {
        margin: 20px auto;
        padding: 0 12px;
    }

    .site-card {
        padding: 22px 18px;
    }

    .site-title {
        font-size: 26px;
    }

    .btn {
        width: 100%;
    }

    .top-nav {
        flex-direction: column;
    }
}
/* 
=======================
   MEMBERS DASHBOARD
=======================
*/
    .dashboard-stack {
        display: grid;
        gap: 20px;
    }

    .dashboard-card {
        background: #fff;
        border: 1px solid #d9d9df;
        border-radius: 10px;
        padding: 22px;
    }

    .dashboard-card h2 {
        margin-top: 0;
        margin-bottom: 12px;
        color: #333;
    }

    .dashboard-card p,
    .dashboard-card li {
        color: #555;
        line-height: 1.6;
    }

    .dashboard-card ul {
        margin: 12px 0 0 20px;
        padding: 0;
    }

    .dashboard-hero {
        text-align: center;
    }

    .dashboard-hero .welcome {
        margin-bottom: 10px;
        font-size: 18px;
        color: #555;
    }

    .dashboard-quicklinks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 18px;
    }

    .dashboard-linkbox {
        display: block;
        border: 1px solid #d9d9df;
        border-radius: 8px;
        padding: 16px;
        background: #f9f9fc;
        color: #333;
        text-decoration: none;
    }

    .dashboard-linkbox:hover {
        background: #f1f4fb;
        text-decoration: none;
    }

    .dashboard-linkbox strong {
        display: block;
        margin-bottom: 6px;
    }

    .account-meta {
        display: grid;
        gap: 10px;
    }

    .account-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 10px 14px;
        border: 1px solid #e2e2e8;
        border-radius: 8px;
        background: #fafafa;
        font-size: 15px;
    }

    .account-label {
        font-weight: 600;
        color: #444;
        white-space: nowrap;
    }

    .account-value {
        color: #333;
        text-align: right;
    }

    .account-icon {
        margin-right: 6px;
        opacity: 0.65;
    }

    .dashboard-actions {
        margin-top: 24px;
        text-align: center;
    }

    .bulletin-placeholder {
        background: #eef5ff;
        border: 1px solid #c8daf7;
        border-radius: 8px;
        padding: 14px;
    }

    .members-top-links {
        text-align: center;
        margin-bottom: 20px;
    }

    .members-top-links span {
        margin: 0 8px;
        color: #666;
        cursor: default;
    }

    @media (max-width: 860px) {
        .dashboard-quicklinks,
        .account-meta-row {
            grid-template-columns: 1fr;
        }

        .account-meta-row {
            display: block;
        }

        .account-value {
            text-align: left;
            margin-top: 6px;
        }
    }

/* ACCOUNT INFO IMPROVEMENTS */

.membership-row {
    align-items: flex-start;
}

.membership-details {
    text-align: right;
}

.membership-date {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

/* STATUS BADGES */

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background: #e8f7ec;
    color: #1f7a35;
}

.status-warning {
    background: #fff4d6;
    color: #8a6500;
}

.status-expired {
    background: #ffe5e5;
    color: #b30000;
}

/* DOWNLOAD PANELS */
.download-panels {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.download-panel {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    background: #fafafa;
}

.download-panel h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--heading);
}

.download-panel p,
.download-panel li {
    color: var(--muted);
    line-height: 1.6;
}

.download-panel ul {
    margin: 12px 0 0 20px;
    padding: 0;
}
/* 
==================
   UPDATE PAGE
==================
*/
.update-card {
    max-width: 900px;
    margin: 0 auto;
}

.update-section {
    margin-top: 28px;
    padding-top: 8px;
}

.update-section h2 {
    margin-bottom: 14px;
}

.update-images {
    text-align: center;
    margin: 16px 0;
}

.update-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
    border: 1px solid #d9d9df;
    border-radius: 6px;
    background: #fff;
}

.step-list li {
    margin-bottom: 18px;
    line-height: 1.7;
}

.highlight-note {
    background: #fff8d9;
    border: 1px solid #ead27a;
    color: #7a5a00;
    padding: 12px;
    border-radius: 6px;
    margin: 14px 0;
}

.update-actions {
    margin: 18px 0;
    text-align: center;
}

.update-actions .btn {
    min-width: 280px;
}

.mini-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #666;
}
.membership-row {
    align-items: flex-start;
}

.membership-details {
    text-align: right;
}

.membership-date {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background: #e8f7ec;
    color: #1f7a35;
}

.status-warning {
    background: #fff4d6;
    color: #8a6500;
}

.status-expired {
    background: #ffe5e5;
    color: #b30000;
}
.renew-option-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    min-width: 220px;
}

.renew-option-title {
    text-align: center;
    margin-bottom: 10px;
}

.renew-option-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.renew-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--warning-border);
    background: var(--warning-bg);
    border-radius: 8px;
}

.renew-text {
    font-size: 14px;
    color: #5f4700;
    margin-bottom: 10px;
    text-align: center;
}

.renew-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.renew-links .btn {
    font-size: 14px;
    padding: 10px 14px;
}

@media (max-width: 860px) {
    .membership-details {
        text-align: left;
    }

    .renew-links {
        justify-content: flex-start;
    }
}
/* 
=======================
   FORUM STYLES
=======================
*/

/* Forum List */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-item {
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    background: #f9f9f9; /* Or use var(--card-bg) if preferred */
}

.forum-stats {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Thread Table */
.thread-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.thread-table th,
.thread-table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
    color: var(--text);
}

.thread-table th {
    background: #eee; /* Or lighten var(--bg) */
    font-weight: bold;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    background: var(--card-bg);
}

.post-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.post-content {
    line-height: 1.5;
    color: var(--text);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
    transition: background 0.2s ease;
}

.pagination a:hover {
    background: #f0f0f5; /* Similar to .top-nav a:hover */
    text-decoration: none;
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

/* Forms (extend existing form styles for consistency) */
form input[type="text"],
form textarea {
    width: 100%;
    padding: 12px; /* Match existing .form-input */
    font-size: 16px;
    border: 1px solid #cccccc; /* Or var(--border) */
    border-radius: 6px;
    background: #ffffff;
    margin-bottom: 16px; /* Match .form-group */
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive Adjustments */
@media (max-width: 860px) {
    .forum-list,
    .post-list {
        gap: 1rem;
    }

    .thread-table {
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .forum-item,
    .post-item {
        padding: 0.75rem;
    }

    .pagination a {
        padding: 0.4rem 0.8rem;
        font-size: 14px;
    }
}
