:root {
    --bg: #f3efe4;
    --card: #ffffff;
    --card-soft: #fbf8ef;
    --text: #142018;
    --muted: #65736a;
    --green: #0f5132;
    --green-dark: #0a3722;
    --green-soft: #e5f1ea;
    --gold: #c99a2e;
    --gold-soft: #fff4d6;
    --border: #ded7c8;
    --danger: #9f2d2d;
    --danger-dark: #7a2020;
    --shadow: 0 10px 28px rgba(20, 32, 24, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(201,154,46,.18), transparent 34rem),
        linear-gradient(180deg, #f8f4eb, var(--bg));
    color: var(--text);
}

.hero {
    background:
        linear-gradient(135deg, rgba(15,81,50,.98), rgba(10,55,34,.98)),
        radial-gradient(circle at top right, rgba(201,154,46,.35), transparent 20rem);
    color: white;
    border-bottom: 5px solid var(--gold);
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
}

.brand-kicker {
    color: var(--gold-soft);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: bold;
}

.hero h1 {
    margin: 4px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 2px;
    line-height: 1;
}

.hero p {
    margin: 0;
    color: #e6e0cf;
    font-size: 14px;
}

.hero-badge {
    min-width: 112px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.hero-badge span {
    display: block;
    color: #e6e0cf;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-badge strong {
    display: block;
    font-size: 26px;
    color: white;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.top-nav a {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
    padding: 9px 12px;
    border-radius: 999px;
}

.top-nav a:hover {
    background: var(--green-soft);
}

main {
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 20px;
}

.card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.card h2, .card h3 {
    margin-top: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,248,239,.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    color: var(--green);
    font-size: 38px;
    line-height: 1;
    margin: 8px 0;
}

.stat-label {
    color: var(--muted);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.action-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 16px;
}

.action-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.action-card:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.action-card strong {
    display: block;
    color: var(--green);
    font-size: 18px;
    margin-bottom: 5px;
}

.action-card span {
    color: var(--muted);
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 10px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 5px;
    font-size: 16px;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(201,154,46,.22);
    border-color: var(--gold);
}

button, .button {
    display: inline-block;
    margin: 8px 6px 0 0;
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 5px 14px rgba(15,81,50,.18);
}

button:hover, .button:hover {
    background: var(--green-dark);
}

.button.secondary {
    background: #5d665f;
}

.button.secondary:hover {
    background: #414944;
}

.button.danger,
button.danger,
.danger {
    background: var(--danger) !important;
    color: white !important;
}

.button.danger:hover,
button.danger:hover,
.danger:hover {
    background: var(--danger-dark) !important;
}

.small-btn {
    padding: 7px 11px;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    min-width: 720px;
}

th, td {
    border-bottom: 1px solid var(--border);
    padding: 11px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #faf8f0;
    color: #2a382f;
    font-size: 14px;
}

tr:hover td {
    background: rgba(229,241,234,.45);
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.score-grid input {
    text-align: center;
}

.small {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    max-width: 1180px;
    margin: 20px auto 40px;
    padding: 0 20px;
    color: var(--muted);
    text-align: center;
}

.roadmap-card ul {
    margin: 0;
    padding-left: 20px;
}

.roadmap-card li {
    margin: 6px 0;
}

.roadmap-card.complete {
    border-color: rgba(15,81,50,.35);
    background: linear-gradient(180deg, white, var(--green-soft));
}

.roadmap-card.active {
    border-color: rgba(201,154,46,.6);
    background: linear-gradient(180deg, white, var(--gold-soft));
}

@media (max-width: 820px) {
    .hero-inner,
    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 0 12px;
    }

    .card,
    .stat-card {
        border-radius: 14px;
        padding: 18px;
    }

    .top-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

/* ====================== HERO LOGO ====================== */
.logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
    transition: all 0.4s ease;
    border-radius: 12px;           /* Soft rounded corners */
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

/* Make sure the hero layout works well with the logo */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 821px) {
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 40px;
    }
    
    .logo-wrapper {
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .hero-logo {
        max-width: 320px;
    }
}

/* Optional: Slight adjustment to brand-kicker */
.brand-kicker {
    margin-top: 10px;
}


/* ====================== HERO & LOGO ====================== */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.hero-logo {
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
    transition: all 0.4s ease;
    border-radius: 16px;
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.4));
}

.hero-copy {
    max-width: 520px;
}

/* Desktop Layout */
@media (min-width: 821px) {
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 40px;
    }
    
    .hero-copy {
        text-align: left;
    }
}

/* Navigation Active State */
.top-nav .nav-link.active {
    background: var(--green);
    color: white !important;
    box-shadow: 0 4px 12px rgba(15,81,50,.3);
}

/* ====================== GENERAL IMPROVEMENTS ====================== */
main {
    max-width: 1180px;
    margin: 32px auto;
    padding: 0 20px;
}

.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
}

.user-bar {
    background: #f7f5ed;
    border-bottom: 1px solid #ddd3bd;
    padding: 10px 24px;
    text-align: right;
    font-size: 14px;
    color: #183c2c;
}

.user-bar a {
    color: #0f5132;
    font-weight: 700;
    text-decoration: none;
}

.user-bar a:hover {
    text-decoration: underline;
}

.button-group {
    margin-top: 18px;
}

.button-group h4 {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-group .button {
    margin: 4px 6px 4px 0;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin-top:20px;
}


@media (max-width: 820px) {
    .hero-badge {
        display: none;
    }
}

@media (max-width: 820px) {

    .top-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px;
        gap: 6px;
    }

    .top-nav a {
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 10px;
    }

}


/* ====================== APP STYLE HEADER ====================== */

.app-header {
    background:
        linear-gradient(135deg, rgba(15,81,50,.98), rgba(10,55,34,.98));
    color: white;
    border-bottom: 4px solid var(--gold);
}

.app-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
    min-width: 0;
}

.app-logo {
    width: 88px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.app-title-wrap {
    min-width: 0;
}

.app-title-wrap h1 {
    margin: 2px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.app-version {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--gold-soft);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .app-header-inner {
        padding: 10px 12px;
    }

    .app-logo {
        width: 64px;
        height: 44px;
        border-radius: 10px;
    }

    .brand-kicker {
        font-size: 10px;
        letter-spacing: .08em;
    }

    .app-title-wrap h1 {
        font-size: 28px;
    }

    .app-version {
        display: none;
    }
}


/* ====================== AUTH LINKS ====================== */

.auth-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-links a {
    background: #f7f5ed;
    border: 1px solid var(--border);
    color: var(--green);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: bold;
}

.auth-links a:hover {
    background: var(--green-soft);
}


.footer-support {
    margin-top: 8px;
}

.footer-support a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.footer-support a:hover {
    text-decoration: underline;
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(15, 81, 50, 0.98), rgba(7, 54, 32, 0.98));
    border-radius: 18px;
    padding: 46px 34px;
    margin: 28px auto 30px;
    color: #fff;
    border-bottom: 5px solid #d8a82f;
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.home-hero-content {
    max-width: 780px;
}

.beta-pill {
    display: inline-block;
    background: rgba(255,255,255,.14);
    color: #f5e8c5;
    border: 1px solid rgba(245,232,197,.45);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.home-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    max-width: 720px;
    line-height: 1.35;
    margin: 0 0 14px;
    color: #fff;
}

.hero-note {
    color: #f5e8c5;
    margin: 0 0 26px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button {
    font-size: 1rem;
    padding: 12px 20px;
}


button:disabled {
    background: #c7c2b5;
    color: #7a756a;
    border-color: #c7c2b5;
    cursor: not-allowed;
    box-shadow: none;
}


.legal-page {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.legal-page h1 {
    margin-bottom: 5px;
}

.legal-content h2 {
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
    line-height: 1.65;
}

.legal-content ul {
    margin-left: 22px;
}


.badge-success {
    background:#198754;
    color:#fff;
    padding:4px 8px;
    border-radius:12px;
    font-size:.85rem;
}

.badge-danger {
    background:#dc3545;
    color:#fff;
    padding:4px 8px;
    border-radius:12px;
    font-size:.85rem;
}

.badge-warning {
    background:#ffc107;
    color:#000;
    padding:4px 8px;
    border-radius:12px;
    font-size:.85rem;
}

.founder-warning {
    color: #ffb703;
    font-weight: bold;
}

.founder-critical {
    color: #ff4d4d;
    font-weight: bold;
}

.footer-links {
    margin-bottom: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links a {
    color: #0f5132;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    color: #8a8170;
    margin: 0 6px;
}

.mobile-escape-home {
    display: none;
}

@media (max-width: 700px) {
    .mobile-escape-home {
        display: flex;
        position: fixed;
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #0f5132;
        color: #fff;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        text-decoration: none;
        z-index: 99999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        border: 2px solid rgba(255,255,255,0.85);
    }
}
@media (max-width: 700px) {
    .top-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        overflow-x: visible;
        white-space: normal;
    }

    .top-nav a,
    .top-nav .nav-link {
        display: block;
        text-align: center;
        padding: 10px 8px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #d8cdb8;
        font-size: 14px;
        line-height: 1.2;
    }
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 700px) {
    .mobile-menu-toggle {
        display: block;
        width: calc(100% - 24px);
        margin: 10px auto;
        padding: 12px 16px;
        border-radius: 999px;
        border: 1px solid #d8cdb8;
        background: #0f5132;
        color: #fff;
        font-weight: bold;
        font-size: 16px;
    }

    .top-nav {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        overflow-x: visible;
        white-space: normal;
    }

    .top-nav.mobile-nav-open {
        display: grid;
    }

    .top-nav a,
    .top-nav .nav-link {
        display: block;
        text-align: center;
        padding: 10px 8px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #d8cdb8;
        font-size: 14px;
        line-height: 1.2;
    }
}
@media (max-width: 700px) {
    .tournaments-table th:nth-child(3),
    .tournaments-table td:nth-child(3),
    .tournaments-table th:nth-child(4),
    .tournaments-table td:nth-child(4) {
        display: none;
    }
}

.tournament-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .tournaments-table {
        display: none;
    }

    .tournament-mobile-list {
        display: block;
    }

    .tournament-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .tm-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
        font-size: 16px;
        color: #0f5132;
    }

    .tm-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .tm-card-meta {
        font-size: 13px;
        color: #374151;
        margin-top: 4px;
        line-height: 1.25;
    }

    .tm-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .tm-card-actions .button,
    .tm-card-actions a {
        font-size: 12px;
        padding: 7px 9px;
        margin: 0;
    }
}


@media (max-width: 700px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    main,
    .card,
    .page-wrap,
    .container,
    .wrap {
        max-width: 100%;
        box-sizing: border-box;
    }
}

.leaderboard-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .leaderboard-table {
        display: none;
    }

    .leaderboard-mobile-list {
        display: block;
    }

    .leaderboard-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .lm-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
        font-size: 15px;
        color: #0f5132;
    }

    .lm-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .lm-card-meta {
        font-size: 13px;
        color: #374151;
        margin-top: 4px;
    }

    .lm-card-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 10px;
        margin-top: 8px;
        font-size: 13px;
        color: #111827;
    }
}

.individual-mobile-list {
    display: none;
}

@media (max-width: 700px) {

    .individual-leaderboard-table {
        display: none;
    }

    .individual-mobile-list {
        display: block;
    }

    .individual-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .im-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
        color: #0f5132;
        font-size: 15px;
    }

    .im-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .im-card-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 4px 10px;
        margin-top: 8px;
        font-size: 13px;
    }
}

.players-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .players-table {
        display: none;
    }

    .players-mobile-list {
        display: block;
    }

    .player-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .pm-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
        color: #0f5132;
        font-size: 15px;
    }

    .pm-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .pm-card-meta {
        font-size: 13px;
        color: #374151;
        margin-top: 4px;
        line-height: 1.25;
    }

    .pm-card-contact {
        font-size: 12px;
        color: #6b7280;
        margin-top: 6px;
        line-height: 1.25;
    }

    .pm-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .pm-card-actions .button,
    .pm-card-actions a {
        font-size: 12px;
        padding: 7px 9px;
        margin: 0;
    }
}


.courses-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .courses-table {
        display: none;
    }

    .courses-mobile-list {
        display: block;
    }

    .course-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .cm-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: #0f5132;
        font-size: 15px;
    }

    .cm-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .cm-card-meta,
    .cm-card-notes {
        font-size: 13px;
        color: #374151;
        margin-top: 4px;
        line-height: 1.25;
    }

    .cm-card-notes {
        color: #6b7280;
    }

    .cm-card-actions {
        margin-top: 10px;
    }

    .cm-card-actions .button {
        font-size: 12px;
        padding: 7px 9px;
        margin: 0;
    }
}

.recent-tournament-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-tournament-card {
    background: #fff;
    border: 1px solid #ded3bd;
    border-radius: 14px;
    padding: 12px;
}

.rt-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #0f5132;
    font-size: 15px;
}

.rt-card-top span {
    color: #6b7280;
    font-size: 12px;
}

.rt-card-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #374151;
}

.rt-card-actions {
    margin-top: 10px;
}

.roster-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .roster-table {
        display: none;
    }

    .roster-mobile-list {
        display: block;
    }

    .roster-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .rm-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: #0f5132;
        font-size: 15px;
    }

    .rm-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .rm-card-meta {
        font-size: 13px;
        color: #374151;
        margin-top: 4px;
    }

    .rm-remove {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        margin-top: 8px;
        font-weight: bold;
        color: #374151;
    }

    .rm-remove input {
        width: auto;
        margin: 0;
    }

    .rm-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .rm-card-actions .button,
    .rm-card-actions a {
        font-size: 12px;
        padding: 7px 9px;
        margin: 0;
    }
}

.templates-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .templates-table {
        display: none;
    }

    .templates-mobile-list {
        display: block;
    }

    .template-mobile-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .tpl-card-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: #0f5132;
        font-size: 15px;
    }

    .tpl-card-top span {
        color: #6b7280;
        font-size: 12px;
        white-space: nowrap;
    }

    .tpl-card-meta,
    .tpl-card-notes {
        font-size: 13px;
        color: #374151;
        margin-top: 4px;
        line-height: 1.25;
    }

    .tpl-card-notes {
        color: #6b7280;
    }
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0 8px 0 0;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: bold;
}

.check-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.check-row span {
    line-height: 1.2;
}

/* Course Requests */

.course-requests-mobile {
    display: none;
}

.course-requests-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.course-requests-table .table {
    width: 100%;
    border-collapse: collapse;
}

.course-requests-table th,
.course-requests-table td {
    padding: 10px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.course-requests-table th:nth-child(7),
.course-requests-table td:nth-child(7) {
    white-space: normal;
    min-width: 160px;
    max-width: 200px;
}

.course-requests-table .request-actions {
    min-width: 210px;
}

.course-requests-table .status-form {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 8px;
    align-items: center;
}

.course-requests-table .status-form select,
.course-requests-table .status-form button,
.course-requests-table .delete-form button {
    height: 42px;
}

.course-requests-table .delete-form {
    margin-top: 8px;
}

.course-requests-table .delete-form button {
    width: 100%;
}

/* Mobile course request cards */
@media (max-width: 700px) {
    .course-requests-table {
        display: none;
    }

    .course-requests-mobile {
        display: block;
    }

    .course-request-card {
        background: #fff;
        border: 1px solid #ded3bd;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .course-request-card h3 {
        margin-top: 0;
        color: #0f5132;
    }

    .course-request-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .course-request-actions select,
    .course-request-actions button,
    .full-width {
        width: 100%;
    }
}


.home-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.home-small-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.home-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.home-mini-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0d6c2;
}

.home-mini-list li:last-child {
    border-bottom: none;
}

.home-mini-list span {
    color: #4b5b52;
    font-size: 13px;
}

@media (max-width: 700px) {
    .home-info-grid {
        grid-template-columns: 1fr;
    }
}

.updates-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.updates-timeline li {
    padding: 14px 0;
    border-bottom: 1px solid #ded3bd;
}

.updates-timeline li:last-child {
    border-bottom: none;
}

.updates-timeline strong {
    display: block;
    color: #0f5132;
    margin-bottom: 4px;
}

.updates-timeline span {
    display: block;
}

.course-actions button,
.course-actions .button {
    font-size: 16px;
    font-weight: 700;
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.course-actions .button,
.course-actions button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 150px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
}

@media (max-width: 700px) {
    .course-actions .button,
    .course-actions button.button {
        width: 100%;
    }
}


.collapsible-card .collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.collapsible-card .collapse-header h2 {
    margin: 0;
}

.collapse-toggle {
    width: 42px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
}

.collapsible-card.collapsed .collapse-body {
    display: none;
}

.collapsible-card {
    transition: box-shadow 0.2s ease;
}

.collapsible-card .collapse-header:hover h2 {
    color: #0f5132;
}

.hero-banner {
    background: linear-gradient(
        135deg,
        #0f5132,
        #198754
    );

    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

.hero-badge {
    display: inline-block;
    background: gold;
    color: #000;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.site-announcement {
    background: #ffc107;
    color: #000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}