:root{--green:#1b5e20;--dark:#0f3d15;--light:#dff3df;--gold:#ffe89a;--shadow:0 4px 14px rgba(0,0,0,.1)}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f4f7f2;color:#222}.site-header{background:var(--dark);color:white}.site-header-inner{max-width:1180px;margin:auto;padding:12px 18px;display:flex;justify-content:space-between;gap:12px;align-items:center}.brand{color:white;text-decoration:none;display:grid}.brand small{opacity:.85}.site-header nav{display:flex;gap:8px;flex-wrap:wrap}.site-header nav a{color:white;background:rgba(255,255,255,.12);padding:8px 10px;border-radius:8px;text-decoration:none;font-weight:800}.container{max-width:1180px;margin:auto;padding:18px}.page-title-row,.display-top{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:16px}.muted{color:#666}.btn{border:0;border-radius:9px;padding:9px 12px;font-weight:900;text-decoration:none;display:inline-block;cursor:pointer}.btn-primary{background:var(--green);color:white}.btn-secondary{background:#e7e7e7;color:#222}.btn-danger{background:#b3261e;color:white}.btn-gold{background:var(--gold);color:var(--dark)}.full-width{width:100%}.message{padding:10px 12px;border-radius:10px;margin-bottom:12px;font-weight:800}.success{background:#e3f5e3;color:var(--dark)}.error{background:#fde2e2;color:#8a1f1f}.login-page{min-height:70vh;display:grid;place-items:center;padding:20px}.login-card{background:white;padding:22px;border-radius:16px;box-shadow:var(--shadow);width:min(420px,100%)}form{gap:10px}label{display:grid;gap:5px;font-weight:800}input,select,textarea{width:100%;padding:8px;border:1px solid #bbb;border-radius:8px;font:inherit}.demo-box{margin-top:14px;background:#f7f7f7;padding:10px;border-radius:10px}.teacher-class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.teacher-class-card{background:var(--light);border:2px solid #b9dfb9;border-radius:14px;box-shadow:var(--shadow);aspect-ratio:1/1;padding:14px;display:flex;flex-direction:column;justify-content:space-between}.class-card-header{display:flex;justify-content:space-between;gap:10px}.class-period{font-size:13px;font-weight:900;color:#555}.teacher-class-card h3{margin:5px 0;color:var(--dark);font-size:24px}.class-card-body{background:rgba(255,255,255,.55);border-radius:12px;padding:10px}.class-card-actions{display:grid;gap:8px}.display-button{width:100%;text-align:center;font-size:16px;padding:12px}.class-points-badge,.user-pill{background:var(--gold);color:var(--dark);border-radius:12px;padding:8px 12px;font-weight:900;text-align:center}.class-points-badge span{display:block;font-size:26px}.class-points-badge small{display:block;font-size:12px}.leaderboard-dashboard-card{background:var(--gold);border-color:#d6a700}.admin-panel{background:white;border-radius:14px;box-shadow:var(--shadow);padding:14px;margin-bottom:16px}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:8px;border-bottom:1px solid #e5e5e5;text-align:left}.inline-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.inline-form label{min-width:160px;flex:1}.compact-list{display:grid;gap:6px}.mini-row{display:flex;justify-content:space-between;gap:8px;background:rgba(255,255,255,.75);border-radius:8px;padding:6px 8px;font-size:13px;font-weight:800}.student-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px}.student-card{min-height:95px;border-radius:12px;display:grid;grid-template-columns:45px 1fr 45px;overflow:hidden;box-shadow:var(--shadow);background:#ddd}.student-card.green{background:#bfe8bf}.student-card.red{background:#f1b8b8}.student-card-main{display:grid;place-items:center;text-align:center;padding:8px}.tap-form button{width:100%;height:100%;border:0;background:rgba(255,255,255,.4);font-size:20px}.student-total-number-wrap{flex:1;display:flex;align-items:center;justify-content:center}.student-total-number{font-size:clamp(88px,10vw,170px);font-weight:900;line-height:.9;color:var(--dark)}.student-store-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:16px}.student-store-item-card{aspect-ratio:auto;min-height:420px}.student-store-item-image{height:190px;border-radius:12px;background:#eee;display:flex;align-items:center;justify-content:center;overflow:hidden}.student-store-item-image img{max-width:100%;max-height:190px;object-fit:contain}.student-store-cart-layout{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}.student-cart-panel{position:sticky;top:12px;background:white;border-radius:14px;box-shadow:var(--shadow);padding:14px;border-top:5px solid var(--green)}.student-cart-row,.pending-order-card{background:#f7fff7;border-radius:10px;padding:8px;margin-bottom:8px}.student-cart-row{display:grid;grid-template-columns:1fr auto;gap:8px}.student-cart-total-row{display:flex;justify-content:space-between;background:var(--gold);border-radius:10px;padding:10px;margin:10px 0;font-weight:900}.student-store-item-footer{display:flex;justify-content:space-between;gap:8px;align-items:center}.pending-order-header,.pending-order-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:8px 0}.store-item-editor-layout{display:grid;grid-template-columns:440px 1fr;gap:18px}.store-item-preview-box{width:400px;height:400px;max-width:400px;max-height:400px;border-radius:16px;background:#eee;border:2px solid #ddd;display:flex;align-items:center;justify-content:center;overflow:hidden}.store-item-preview-box img{max-width:400px;max-height:400px;width:auto;height:auto;object-fit:contain}.store-display-body{background:#f3f7f0}.store-display-page{padding:24px}.store-display-header{background:var(--dark);color:white;border-radius:22px;padding:24px;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.store-display-header h1{font-size:58px;margin:0}.store-display-badge{background:var(--gold);color:var(--dark);border-radius:18px;padding:18px 24px;font-size:28px;font-weight:900}.store-display-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:18px}.store-display-card{background:white;border-radius:22px;box-shadow:0 8px 18px rgba(0,0,0,.12);padding:16px;display:grid;grid-template-rows:240px 1fr auto;gap:14px}.store-display-image{background:#eee;border-radius:18px;display:flex;align-items:center;justify-content:center;overflow:hidden}.store-display-image img{max-width:100%;max-height:240px;object-fit:contain}.store-display-info h2{color:var(--dark);font-size:30px;margin:0 0 8px}.store-display-price{background:var(--gold);border-radius:18px;text-align:center;padding:14px;color:var(--dark)}.store-display-price span{display:block;font-size:52px;font-weight:900}.site-footer{text-align:center;padding:20px;color:#666}@media(max-width:1100px){.teacher-class-grid,.student-grid,.student-store-grid,.store-display-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-store-cart-layout,.store-item-editor-layout{grid-template-columns:1fr}}@media(max-width:700px){.teacher-class-grid,.student-grid,.student-store-grid,.store-display-grid{grid-template-columns:1fr}.teacher-class-card{aspect-ratio:auto;min-height:250px}.page-title-row,.display-top,.store-display-header{display:block}.inline-form{display:grid}.store-item-preview-box{width:100%;height:320px}}
.teacher-name-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffe89a;
    color: #0f3d15;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid rgba(15, 61, 21, .15);
    white-space: nowrap;
    align-self: start;
}

.teacher-name-button:hover {
    background: #ffe27a;
    transform: translateY(-1px);
}


.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-logo {
    width: 100px;
    height: 100px;

    object-fit: contain;

    background: rgba(255,255,255,.10);

    border-radius: 22px;

    padding: 8px;

    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

@media (max-width: 700px) {

    .site-logo {
        width: 70px;
        height: 70px;
    }

}

/* ===== HEADER ===== */

.site-header {
    background: #0f3d15;
    color: white;
    padding: 10px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}


.container,
.header-inner {
    max-width: 1180px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;

    flex-shrink: 0;
}

.site-logo {
    width: 100px;
    height: 100px;

    object-fit: contain;

    background: rgba(255,255,255,.10);

    border-radius: 22px;

    padding: 8px;

    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-title {
    color: #ffe89a;
    font-size: 24px;
    font-weight: 900;
}

.site-subtitle {
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
}

/* ===== NAVIGATION ===== */

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;
    flex-wrap: wrap;
}

.header-nav a,
.header-nav a:visited {
    color: #ffe89a;

    text-decoration: none;
    font-weight: 800;

    padding: 8px 12px;

    border-radius: 10px;

    transition:
        background .15s ease,
        color .15s ease;
}

.header-nav a:hover {
    background: rgba(255,255,255,.12);
    color: white;
}

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

@media (max-width: 700px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        width: 70px;
        height: 70px;
    }

    .site-title {
        font-size: 18px;
    }

}

/* ===== Store Suggestions ===== */

.store-suggestion-panel {
    max-width: 760px;
}

.store-suggestion-form {
    display: grid;
    gap: 10px;
}

.store-suggestion-form textarea {
    resize: vertical;
}

.store-suggestions-panel {
    margin-top: 16px;
}

.store-suggestions-table th,
.store-suggestions-table td {
    vertical-align: middle;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
}

.store-suggestions-panel {
    margin-top: 16px;

    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.store-suggestions-panel {
    margin-top: 16px;

    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Admin Database Management: Store Reset ===== */

.database-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.database-summary-card {
    text-align: center;
}

.database-number {
    font-size: 42px;
    font-weight: 900;
    color: #0f3d15;
    line-height: 1;
}

.danger-zone-panel {
    border-top: 6px solid #b3261e;
}

.danger-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}

.reset-database-form {
    display: grid;
    gap: 10px;
    background: #fff6f6;
    border: 2px solid #ffd7d7;
    border-radius: 14px;
    padding: 14px;
}

.reset-database-form h4 {
    margin: 0;
    color: #8a1f1f;
}

.reset-database-form input {
    margin-top: 6px;
    font-weight: 900;
    letter-spacing: .08em;
}

@media (max-width: 1000px) {
    .database-summary-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .danger-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .database-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Admin Database Tile Layout ===== */

.database-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}

.database-reset-tile {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
    padding: 16px;
    border-top: 6px solid #b3261e;
    display: grid;
    gap: 12px;
}

.database-tile-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.database-tile-header h3 {
    margin: 0 0 4px;
    color: #0f3d15;
}

.database-number {
    min-width: 72px;
    background: #ffe89a;
    color: #0f3d15;
    border-radius: 14px;
    padding: 8px 10px;
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.database-reset-form {
    display: grid;
    gap: 10px;
    background: #fff6f6;
    border: 2px solid #ffd7d7;
    border-radius: 14px;
    padding: 12px;
}

.database-reset-form label {
    font-weight: 800;
}

.database-reset-form input {
    margin-top: 6px;
    font-weight: 900;
    letter-spacing: .08em;
}

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

/* =========================================================
   Grizzly Success - Single Consolidated style.css
   Generated from uploaded CSS ZIP.
   Upload this file as: assets/css/style.css
   ========================================================= */

/* =========================================================
   Source: assets/css/class-display-hard-fix.css
   ========================================================= */
/* HARD FIX: teacher/class.php page-specific styles.
   This file is linked directly from teacher/class.php after the regular header CSS. */

body .gsc-class-page,
body .gsc-class-page * {
    box-sizing: border-box !important;
}

body .gsc-class-page {
    max-width: 1380px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    font-family: Arial, sans-serif !important;
}

body .gsc-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 285px !important;
    gap: 16px !important;
    align-items: start !important;
}

body .gsc-main {
    min-width: 0 !important;
}

body .gsc-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
}

body .gsc-topbar h1 {
    margin: 0 0 4px 0 !important;
    color: #0f3d15 !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
}

body .gsc-topbar h1 span {
    display: inline-block !important;
    background: #ffe89a !important;
    color: #0f3d15 !important;
    border-radius: 999px !important;
    padding: 4px 9px !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

body .gsc-topbar p {
    margin: 0 0 6px 0 !important;
    color: #666 !important;
}

body .gsc-status {
    min-width: 150px !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 900 !important;
    text-align: center !important;
}

body .gsc-status.is-open {
    background: #dff3df !important;
    color: #0f3d15 !important;
    border: 2px solid #7bc47b !important;
}

body .gsc-status.is-closed {
    background: #eeeeee !important;
    color: #555 !important;
    border: 2px solid #cccccc !important;
}

body .gsc-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body .gsc-date-box,
body .gsc-state-box,
body .gsc-side-card,
body .gsc-empty {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.10) !important;
    padding: 10px !important;
}

body .gsc-date-box {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body .gsc-date-box form,
body .gsc-state-box form,
body .gsc-action-row form,
body .gsc-thumb-row form {
    margin: 0 !important;
}

body .gsc-date-box label {
    display: block !important;
    margin: 0 0 4px 0 !important;
    font-weight: 900 !important;
    color: #222 !important;
}

body .gsc-control-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

body .gsc-control-line select,
body .gsc-control-line input {
    width: 100% !important;
    height: 38px !important;
    padding: 7px !important;
    border: 1px solid #bbb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

body .gsc-state-box {
    display: grid !important;
    gap: 8px !important;
}

body .gsc-action-row {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

body .gsc-btn {
    display: inline-block !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 9px 10px !important;
    font-weight: 900 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
}

body .gsc-btn:disabled,
body .gsc-thumb:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

body .gsc-btn-green {
    background: #1b5e20 !important;
    color: #ffffff !important;
}

body .gsc-btn-red {
    background: #b3261e !important;
    color: #ffffff !important;
}

body .gsc-btn-gold {
    background: #ffe89a !important;
    color: #0f3d15 !important;
}

body .gsc-btn-gray {
    background: #e7e7e7 !important;
    color: #222 !important;
}

body .gsc-student-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(115px, 1fr)) !important;
    gap: 10px !important;
}

body .gsc-student-card {
    min-height: 126px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.10) !important;
    border: 2px solid transparent !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    text-align: center !important;
    overflow: hidden !important;
}

body .gsc-card-green {
    background: #bce8bc !important;
    border-color: #5aad5a !important;
}

body .gsc-card-light-green {
    background: #dff3df !important;
    border-color: #9ed39e !important;
}

body .gsc-card-neutral {
    background: #dedede !important;
    border-color: #c4c4c4 !important;
}

body .gsc-card-red {
    background: #f2b8b8 !important;
    border-color: #c95f5f !important;
}

body .gsc-student-card.is-locked {
    opacity: .72 !important;
}

body .gsc-student-name-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 30px !important;
    align-items: center !important;
    gap: 4px !important;
}

body .gsc-student-name {
    font-weight: 900 !important;
    color: #0f3d15 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    min-width: 0 !important;
}

body .gsc-coin-form {
    margin: 0 !important;
}

body .gsc-coin-btn {
    width: 30px !important;
    height: 30px !important;
    border: 2px solid #d6a700 !important;
    border-radius: 999px !important;
    background: #ffe89a !important;
    color: #0f3d15 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.75), 0 1px 3px rgba(0,0,0,.16) !important;
}

body .gsc-coin-btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
}

body .gsc-coin-btn:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

body .gsc-tracker-points {
    margin-top: 3px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #444 !important;
}

body .gsc-score {
    display: grid !important;
    place-items: center !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
    line-height: 1 !important;
}

body .gsc-thumb-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
}

body .gsc-thumb {
    width: 100% !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 7px 0 !important;
    font-size: 18px !important;
    background: rgba(255,255,255,.65) !important;
    cursor: pointer !important;
}

body .gsc-sidebar {
    position: sticky !important;
    top: 12px !important;
    display: grid !important;
    gap: 12px !important;
}

body .gsc-side-card h3 {
    margin: 0 0 8px 0 !important;
    color: #0f3d15 !important;
    font-size: 17px !important;
}

body .gsc-goal-card {
    background: #ffe89a !important;
}

body .gsc-goal-score {
    text-align: center !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
    line-height: 1 !important;
}

body .gsc-goal-message {
    text-align: center !important;
    margin-top: 9px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
}

body .gsc-citizen-total {
    text-align: center !important;
    font-size: 52px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
    line-height: 1 !important;
}

body .gsc-citizen-list {
    display: grid !important;
    gap: 6px !important;
}

body .gsc-citizen-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: #eef8ee !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

body .gsc-citizen-row.is-neutral {
    background: #eeeeee !important;
    color: #666 !important;
}

body .gsc-empty {
    grid-column: 1 / -1 !important;
}

@media (max-width: 1200px) {
    body .gsc-student-grid {
        grid-template-columns: repeat(4, minmax(115px, 1fr)) !important;
    }

    body .gsc-action-row {
        grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body .gsc-layout {
        grid-template-columns: 1fr !important;
    }

    body .gsc-sidebar {
        position: static !important;
    }

    body .gsc-controls {
        grid-template-columns: 1fr !important;
    }

    body .gsc-date-box {
        grid-template-columns: 1fr !important;
    }

    body .gsc-state-box {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 700px) {
    body .gsc-topbar {
        display: block !important;
    }

    body .gsc-status {
        margin-top: 10px !important;
    }

    body .gsc-control-line {
        grid-template-columns: 1fr !important;
    }

    body .gsc-state-box {
        grid-template-columns: 1fr !important;
    }

    body .gsc-action-row {
        grid-template-columns: 1fr !important;
    }

    body .gsc-student-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Final Site-Wide Overrides
   ========================================================= */

.site-header {
    background: #0f3d15;
    color: #ffffff;
    padding: 10px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.site-title {
    color: #ffe89a;
    font-size: 24px;
    font-weight: 900;
}

.site-subtitle {
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.header-nav a,
.header-nav a:visited {
    color: #ffe89a;
    text-decoration: none;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 10px;
}

.header-nav a:hover {
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

.teacher-name-button,
.student-name-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffe89a;
    color: #0f3d15;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid rgba(15, 61, 21, .15);
    white-space: nowrap;
    align-self: start;
}

.teacher-name-button:visited,
.student-name-button:visited {
    color: #0f3d15;
}

.teacher-name-button:hover,
.student-name-button:hover {
    background: #ffe27a;
    transform: translateY(-1px);
}

.store-suggestions-panel {
    margin-top: 16px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        width: 70px;
        height: 70px;
    }

    .site-title {
        font-size: 18px;
    }
}

/* ===== Store Checkout Concise Pending Orders ===== */

.concise-pending-orders-panel {
    margin-bottom: 16px;
}

.concise-pending-orders-table th,
.concise-pending-orders-table td {
    vertical-align: middle;
    padding-top: 7px;
    padding-bottom: 7px;
}

.order-date-cell {
    white-space: nowrap;
    font-weight: 900;
    color: #0f3d15;
}

.order-items-cell {
    max-width: 520px;
    font-size: 13px;
    line-height: 1.25;
}

.order-total-cell {
    white-space: nowrap;
    font-weight: 900;
    color: #0f3d15;
    background: #ffe89a;
    border-radius: 8px;
}

.insufficient-points-row {
    background: #fff1f1;
}

.order-warning {
    color: #b3261e;
    font-size: 12px;
    font-weight: 900;
}

.concise-pending-orders-table form {
    margin: 0;
}

/* =========================================================
   Consolidated from assets/css/student-store-cart-top.css
   The student store now uses this single global stylesheet.
   ========================================================= */
/* ===== Student Store Cart Top Layout ===== */

.student-cart-top-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
    padding: 14px;
    margin-bottom: 18px;
    border-top: 5px solid #1b5e20;
}

.student-cart-top-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 10px;
}

.student-cart-top-header h3 {
    margin: 0 0 4px;
    color: #0f3d15;
}

.student-cart-total-pill {
    min-width: 110px;
    background: #ffe89a;
    color: #0f3d15;
    border-radius: 14px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 900;
}

.student-cart-total-pill span {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.student-cart-total-pill small {
    display: block;
    font-size: 12px;
}

.student-cart-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.student-cart-empty {
    background: #f3f3f3;
    border-radius: 10px;
    padding: 10px;
    color: #666;
    font-weight: 800;
}

.student-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: #f7fff7;
    border-radius: 10px;
    padding: 8px 10px;
}

.student-cart-row strong {
    display: block;
    color: #0f3d15;
}

.student-cart-row small {
    display: block;
    color: #555;
    font-weight: 800;
}

.student-cart-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 900;
}

.student-cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.student-cart-actions .btn {
    flex: 1;
    min-width: 180px;
}

.checkout-warning {
    margin-bottom: 10px;
    color: #8a1f1f;
    font-weight: 900;
}

.student-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 16px;
}

.student-store-item-card {
    aspect-ratio: auto;
    min-height: 420px;
}

.student-store-item-image {
    height: 190px;
    border-radius: 12px;
    background: #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.student-store-item-image img {
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
}

.student-store-item-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.btn-small {
    padding: 5px 8px;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .student-store-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 700px) {
    .student-cart-top-header {
        display: block;
    }

    .student-cart-total-pill {
        margin-top: 10px;
    }

    .student-cart-row {
        grid-template-columns: 1fr;
    }

    .student-cart-row-actions {
        justify-content: space-between;
    }

    .student-store-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Consolidated from assets/css/class-display-hard-fix.css
   The teacher class display now uses this single global stylesheet.
   ========================================================= */
/* HARD FIX: teacher/class.php page-specific styles.
   This file is linked directly from teacher/class.php after the regular header CSS. */

body .gsc-class-page,
body .gsc-class-page * {
    box-sizing: border-box !important;
}

body .gsc-class-page {
    max-width: 1380px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    font-family: Arial, sans-serif !important;
}

body .gsc-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 285px !important;
    gap: 16px !important;
    align-items: start !important;
}

body .gsc-main {
    min-width: 0 !important;
}

body .gsc-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
}

body .gsc-topbar h1 {
    margin: 0 0 4px 0 !important;
    color: #0f3d15 !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
}

body .gsc-topbar h1 span {
    display: inline-block !important;
    background: #ffe89a !important;
    color: #0f3d15 !important;
    border-radius: 999px !important;
    padding: 4px 9px !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

body .gsc-topbar p {
    margin: 0 0 6px 0 !important;
    color: #666 !important;
}

body .gsc-status {
    min-width: 150px !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 900 !important;
    text-align: center !important;
}

body .gsc-status.is-open {
    background: #dff3df !important;
    color: #0f3d15 !important;
    border: 2px solid #7bc47b !important;
}

body .gsc-status.is-closed {
    background: #eeeeee !important;
    color: #555 !important;
    border: 2px solid #cccccc !important;
}

body .gsc-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body .gsc-date-box,
body .gsc-state-box,
body .gsc-side-card,
body .gsc-empty {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.10) !important;
    padding: 10px !important;
}

body .gsc-date-box {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body .gsc-date-box form,
body .gsc-state-box form,
body .gsc-action-row form,
body .gsc-thumb-row form {
    margin: 0 !important;
}

body .gsc-date-box label {
    display: block !important;
    margin: 0 0 4px 0 !important;
    font-weight: 900 !important;
    color: #222 !important;
}

body .gsc-control-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

body .gsc-control-line select,
body .gsc-control-line input {
    width: 100% !important;
    height: 38px !important;
    padding: 7px !important;
    border: 1px solid #bbb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

body .gsc-state-box {
    display: grid !important;
    gap: 8px !important;
}

body .gsc-action-row {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

body .gsc-btn {
    display: inline-block !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 9px 10px !important;
    font-weight: 900 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
}

body .gsc-btn:disabled,
body .gsc-thumb:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

body .gsc-btn-green {
    background: #1b5e20 !important;
    color: #ffffff !important;
}

body .gsc-btn-red {
    background: #b3261e !important;
    color: #ffffff !important;
}

body .gsc-btn-gold {
    background: #ffe89a !important;
    color: #0f3d15 !important;
}

body .gsc-btn-gray {
    background: #e7e7e7 !important;
    color: #222 !important;
}

body .gsc-student-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(115px, 1fr)) !important;
    gap: 10px !important;
}

body .gsc-student-card {
    min-height: 126px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.10) !important;
    border: 2px solid transparent !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    text-align: center !important;
    overflow: hidden !important;
}

body .gsc-card-green {
    background: #bce8bc !important;
    border-color: #5aad5a !important;
}

body .gsc-card-light-green {
    background: #dff3df !important;
    border-color: #9ed39e !important;
}

body .gsc-card-neutral {
    background: #dedede !important;
    border-color: #c4c4c4 !important;
}

body .gsc-card-red {
    background: #f2b8b8 !important;
    border-color: #c95f5f !important;
}

body .gsc-student-card.is-locked {
    opacity: .72 !important;
}

body .gsc-student-name-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 30px !important;
    align-items: center !important;
    gap: 4px !important;
}

body .gsc-student-name {
    font-weight: 900 !important;
    color: #0f3d15 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    min-width: 0 !important;
}

body .gsc-coin-form {
    margin: 0 !important;
}

body .gsc-coin-btn {
    width: 30px !important;
    height: 30px !important;
    border: 2px solid #d6a700 !important;
    border-radius: 999px !important;
    background: #ffe89a !important;
    color: #0f3d15 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.75), 0 1px 3px rgba(0,0,0,.16) !important;
}

body .gsc-coin-btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
}

body .gsc-coin-btn:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

body .gsc-tracker-points {
    margin-top: 3px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #444 !important;
}

body .gsc-score {
    display: grid !important;
    place-items: center !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
    line-height: 1 !important;
}

body .gsc-thumb-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
}

body .gsc-thumb {
    width: 100% !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 7px 0 !important;
    font-size: 18px !important;
    background: rgba(255,255,255,.65) !important;
    cursor: pointer !important;
}

body .gsc-sidebar {
    position: sticky !important;
    top: 12px !important;
    display: grid !important;
    gap: 12px !important;
}

body .gsc-side-card h3 {
    margin: 0 0 8px 0 !important;
    color: #0f3d15 !important;
    font-size: 17px !important;
}

body .gsc-goal-card {
    background: #ffe89a !important;
}

body .gsc-goal-score {
    text-align: center !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
    line-height: 1 !important;
}

body .gsc-goal-message {
    text-align: center !important;
    margin-top: 9px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
}

body .gsc-citizen-total {
    text-align: center !important;
    font-size: 52px !important;
    font-weight: 900 !important;
    color: #0f3d15 !important;
    line-height: 1 !important;
}

body .gsc-citizen-list {
    display: grid !important;
    gap: 6px !important;
}

body .gsc-citizen-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: #eef8ee !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

body .gsc-citizen-row.is-neutral {
    background: #eeeeee !important;
    color: #666 !important;
}

body .gsc-empty {
    grid-column: 1 / -1 !important;
}

@media (max-width: 1200px) {
    body .gsc-student-grid {
        grid-template-columns: repeat(4, minmax(115px, 1fr)) !important;
    }

    body .gsc-action-row {
        grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body .gsc-layout {
        grid-template-columns: 1fr !important;
    }

    body .gsc-sidebar {
        position: static !important;
    }

    body .gsc-controls {
        grid-template-columns: 1fr !important;
    }

    body .gsc-date-box {
        grid-template-columns: 1fr !important;
    }

    body .gsc-state-box {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 700px) {
    body .gsc-topbar {
        display: block !important;
    }

    body .gsc-status {
        margin-top: 10px !important;
    }

    body .gsc-control-line {
        grid-template-columns: 1fr !important;
    }

    body .gsc-state-box {
        grid-template-columns: 1fr !important;
    }

    body .gsc-action-row {
        grid-template-columns: 1fr !important;
    }

    body .gsc-student-grid {
        grid-template-columns: 1fr !important;
    }
}


.coin-award-heading,
.coin-award-cell{text-align:center}
.coin-award-form{display:inline-block;margin:0}
.coin-award-button{width:34px;height:34px;border:0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff7b8 0,#ffe36d 32%,#d6a700 72%,#9c7300 100%);box-shadow:inset 0 2px 2px rgba(255,255,255,.8),inset 0 -2px 3px rgba(80,55,0,.25),0 2px 5px rgba(0,0,0,.18);color:#5c4300;font-weight:900;font-size:18px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.coin-award-button:hover{transform:translateY(-1px);box-shadow:inset 0 2px 2px rgba(255,255,255,.85),inset 0 -2px 3px rgba(80,55,0,.25),0 4px 8px rgba(0,0,0,.22)}
.coin-award-button:active{transform:translateY(1px);box-shadow:inset 0 2px 5px rgba(80,55,0,.3)}
.coin-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid rgba(120,85,0,.35);border-radius:50%;background:rgba(255,255,255,.18)}


/* ===== Admin Student Edit: Compact Student Information ===== */

.student-info-panel {
    border-top: 5px solid #1b5e20;
}

.student-info-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.student-info-header h3 {
    margin: 0 0 4px;
    color: #0f3d15;
}

.student-info-header .muted {
    margin: 0;
}

.student-info-coin-badge {
    min-width: 130px;
    background: #ffe89a;
    color: #0f3d15;
    border-radius: 16px;
    padding: 10px 14px;
    text-align: center;
    font-weight: 900;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.75);
}

.student-info-coin-badge span {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.student-info-coin-badge small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

.account-student-form {
    display: grid;
    gap: 12px;
}

.student-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px 14px;
    align-items: start;
}

.student-account-grid label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.student-info-note {
    margin: 0;
    background: #f7fff7;
    border: 1px solid #d8ecd8;
    border-radius: 10px;
    padding: 9px 10px;
}

.student-info-actions {
    display: flex;
    justify-content: flex-end;
}

.student-info-actions .btn {
    min-width: 230px;
}

@media (max-width: 900px) {
    .student-account-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {
    .student-info-header {
        display: block;
    }

    .student-info-coin-badge {
        margin-top: 10px;
        width: 100%;
    }

    .student-account-grid {
        grid-template-columns: 1fr;
    }

    .student-info-actions .btn {
        width: 100%;
    }
}
