/* =========================================================
   JamNation Global Styles
   Cleaned Version
========================================================= */


/* =========================================================
   Variables
========================================================= */

:root {

    --bg: #111;
    --panel: #1c1c1c;
    --card: #222;
    --input: #111;
    --light-card: #fff;
	--white: #fff;

    --text: #fff;
    --dark-text: #111;
    --muted: #aaa;

    --accent: #157787;
    --accent-hover: #27b2c5;

    --success: #1f7a3a;
    --danger: #b00020;

    --border: rgba(255,255,255,.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow:
        0 10px 30px rgba(0,0,0,.5);

}


/* =========================================================
   Reset / Base
========================================================= */

*,
*::before,
*::after {

    box-sizing:border-box;

}


html {

    scroll-behavior:smooth;

}


body {

    margin:0;

    min-height:100vh;

    font-family:Arial,sans-serif;

    background:var(--bg);

    color:var(--text);

}


button,
input,
textarea,
select {

    font-family:inherit;

}


img {

    max-width:100%;

}


/* =========================================================
   Links
========================================================= */

a {

    color:var(--accent);

    text-decoration:none;

    transition:.2s ease;

}


a:hover {

    color:var(--accent-hover);

}


a:active {

    opacity:.7;

}


/* =========================================================
   Header / Navigation
========================================================= */

header {

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:15px 25px;

    background:var(--panel);

    position:sticky;

    top:0;

    z-index:1;

    box-shadow:
        0 2px 8px rgba(0,0,0,.3);

}



/* =========================================================
   Tab Header Layout
========================================================= */

header.tab-header {

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

}



header.tab-header .logo {

    flex-shrink:0;

}



header.tab-header .header-actions {

    margin-left:auto;

    display:flex;

    align-items:center;

    gap:10px;

    flex-shrink:0;

}



/*
   Force toolbar onto its own row
*/

header.tab-header .tab-toolbar {

    order:3;

    flex-basis:100%;

    width:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

}



/* =========================================================
   Header Actions
========================================================= */

.header-actions {

    display:flex;

    align-items:center;

    gap:10px;

}



/* =========================================================
   Admin Menu
========================================================= */

.admin-menu-wrapper {

    position:relative;

}



.admin-menu-toggle {

    display:flex;

    align-items:center;

    gap:8px;

    background:var(--accent);

    color:#fff;

    border:none;

    border-radius:6px;

    padding:10px 14px;

    cursor:pointer;

    font-weight:600;

}


.admin-menu-toggle:hover {

    background:var(--accent-hover);

}



/* =========================================================
   Logo
========================================================= */

.logo {

    display:flex;

    align-items:center;

}



.logo img {

    height:60px;

    width:auto;

    display:block;

}



/* =========================================================
   Main Hamburger Button
========================================================= */

.menu-toggle {

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--accent);

    border:none;

    color:#fff;

    font-size:2rem;

    cursor:pointer;

    padding:8px 14px;

    min-width:48px;

    min-height:44px;

    border-radius:6px;

}



.menu-toggle:hover {

    background:var(--accent-hover);

}



/* =========================================================
   Main Navigation Dropdown
========================================================= */

nav {

    position:absolute;

    top:100%;

    right:25px;

    width:260px;

    background:var(--panel);

    border-radius:8px;

    padding:15px;

    display:none;

    flex-direction:column;

    gap:10px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.4);

}



nav.open {

    display:flex;

}


/* Navigation links */

nav a {

    display:flex;

    align-items:center;

    width:100%;

    box-sizing:border-box;

    padding:12px;

    color:var(--text);

    font-weight:600;

    text-decoration:none;

    border-radius:6px;

}


nav a:hover {

    background:var(--accent);

    color:#fff;

    text-decoration:none;

}


.reward-link {

    font-weight:bold;

    white-space:nowrap;

}


/* =========================================================
   User Menu
========================================================= */

.nav-group {

    display:flex;

    flex-direction:column;

    gap:10px;

}


/* =========================================================
   ADMIN HAMBURGER MENU
========================================================= */




/* Hamburger icon */

.admin-hamburger {

    display:inline-block;

    font-size:20px;

    line-height:1;

    transition:transform .25s ease;

}


/* Rotate admin icon */

.admin-menu-wrapper.open
.admin-hamburger {

    transform:rotate(90deg);

}


/* Admin dropdown */

.admin-menu {

    position:absolute;

    top:calc(100% + 8px);

    right:0;

    min-width:190px;

    background:var(--panel);

    border-radius:8px;

    padding:8px;

    display:none;

    flex-direction:column;

    gap:6px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.35);

}


/* Admin open */

.admin-menu-wrapper.open
.admin-menu {

    display:flex;

}


/* Admin links */

.admin-menu a {

    display:flex;

    align-items:center;

    gap:10px;

    padding:11px 12px;

    color:var(--text);

    text-decoration:none;

    border-radius:5px;

    font-size:14px;

    font-weight:500;

    white-space:nowrap;

}


.admin-menu a:hover {

    background:var(--accent);

    color:#fff;

}


/* =========================================================
   Smaller Screens
========================================================= */

@media (max-width:480px) {


    header {

        padding:12px 15px;

    }


    .logo img {

        height:50px;

    }


    nav {

        right:15px;

        left:15px;

        width:auto;

    }


}
/* =========================================================
   Hero
========================================================= */

.hero {

    text-align:center;

    padding:100px 20px;

}


.hero h2 {

    font-size:48px;

}


/* =========================================================
   Buttons
========================================================= */

.button,
.back-button,
.lesson-actions button,
.lesson-button,
.merch-button,
.admin-submit,
.logout-button,
.teacher-button {

    display:inline-flex;

    align-items:center;

    justify-content:center;

    background:var(--accent);

    color:white;

    border:none;

    border-radius:var(--radius-sm);

    font-weight:bold;

    cursor:pointer;

    transition:.2s ease;

}


.button {

    padding:15px 30px;

    margin-top:20px;

}


.back-button {

    padding:12px 25px;

}


.lesson-button,
.merch-button {

    width:100%;

    padding:10px;

}


.admin-submit,
.logout-button,
.teacher-button {

    padding:12px 20px;

}


.button:hover,
.back-button:hover,
.lesson-actions button:hover,
.lesson-button:hover,
.merch-button:hover,
.admin-submit:hover,
.logout-button:hover,
.teacher-button:hover {

    background:var(--accent-hover);

    color:white;

    transform:translateY(-2px);

    text-decoration:none;

}


.button:focus,
.back-button:focus,
.lesson-actions button:focus {

    outline:none;

    box-shadow:
        0 0 0 3px rgba(21,119,135,.35);

}


/* =========================================================
   Cards
========================================================= */

.card {

    background:var(--card);

    padding:25px;

    border-radius:var(--radius-md);

}


.features {

    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:20px;

}

/* =========================================================
   Homepage Section Divider
========================================================= */

.home-section-divider {

    width:100%;

    height:1px;

    background:var(--border);

    margin:50px 0;

    position:relative;

}


.home-section-divider::before {

    content:"";

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    width:80px;

    height:4px;

    background:var(--accent);

    border-radius:10px;

}
/* =========================================================
   Back Button Text Variants
========================================================= */

.back-full,
.back-short,
.back-shorter {

    display:none;

}


@media(min-width:651px){

    .back-full {

        display:inline!important;

    }

}


@media(max-width:650px){

    .back-short {

        display:inline;

    }

}


@media(max-width:440px){

    .back-short {

        display:none;

    }

    .back-shorter {

        display:inline;

    }

}
/* =========================================================
   Lesson Cards
========================================================= */

.lesson {

    display:flex;

    gap:12px;

    min-height:90px;

    margin-bottom:12px;

    padding:10px;

    background:var(--light-card);

    border-radius:var(--radius-md);

    box-shadow:
        0 2px 8px rgba(0,0,0,.15);

}


.lesson-image {

    width:120px;

    flex-shrink:0;

    display:flex;

    flex-direction:column;

    gap:12px;

}


.lesson-image img {

    width:100%;

    height:70px;

    object-fit:cover;

    display:block;

    border-radius:var(--radius-md);

}


.lesson-content {

    flex:1;

    min-width:0;

}


.lesson h4 {

    margin:0 0 5px;

    color:var(--dark-text);

    font-size:16px;

}


.lesson-description {

    margin:0 0 5px;

    color:#666;

    line-height:1.3;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

}


.lesson .button {

    padding:6px 12px;

    margin-top:5px;

    font-size:13px;

}


.lesson-button:hover {

    color:white;

}

/*
    Lesson Filters
*/


.active-filters {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 20px;

}


.lesson-filter-form {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: nowrap;

}


.lesson-filter-form select {

    padding: 9px 12px;

    background: var(--card);

    color: var(--text);

    border: 1px solid #444;

    border-radius: 5px;

    min-width: 170px;

    font-size: 14px;

    cursor: pointer;

}


.lesson-filter-form select:hover {

    border-color: var(--accent);

}


.lesson-filter-form select:focus {

    outline: none;

    border-color: var(--accent);

}


.active-filters > a {

    color: var(--accent-hover);

    text-decoration: none;

    white-space: nowrap;

}


.active-filters > a:hover {

    text-decoration: underline;

}



/*
    Mobile
*/


@media (max-width: 600px) {


    .active-filters {

        align-items: stretch;

        flex-direction: column;

    }


    .lesson-filter-form {

        width: 100%;

        flex-direction: column;

        align-items: stretch;
		
		gap: 4px;

    }


    .lesson-filter-form select {

        width: 100%;

    }


}
/* =========================================================
   Lesson Tags
========================================================= */

.lesson-meta {

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin:12px 0;

}


.lesson-tag {

    display:inline-block;

    padding:5px 10px;

    border-radius:999px;

    font-size:12px;

    font-weight:600;

    color:white;

}


.lesson-tag.difficulty.beginner {

    background:#8d6e63;

}


.lesson-tag.difficulty.intermediate {

    background:#3498db;

}


.lesson-tag.difficulty.advanced {

    background:#8e44ad;

}


.lesson-tag.type {

    background:#10b981;

}


.lesson-tag.style {

    background:#B8860B;

}
.lesson-tag.bpm {

    background: #c0392b;
    color: #fff;

}

/* =========================================================
   Lesson Filters
========================================================= */

.active-filters {

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin:20px 0;

    padding:15px 20px;

    background:var(--panel);

    border-radius:var(--radius-md);

    border-left:
        5px solid var(--accent);

}


.active-filters strong {

    margin-right:5px;

}


.active-filters span {

    padding:6px 14px;

    background:#34495e;

    color:white;

    border-radius:20px;

    font-size:.85rem;

    font-weight:600;

}


.active-filters a {

    margin-left:auto;

    padding:7px 16px;

    background:#d63031;

    color:white;

    border-radius:20px;

    font-size:.85rem;

    font-weight:bold;

}


.active-filters a:hover {

    color:white;

    opacity:.8;

}


.see-more {

    display:block;

    margin-top:20px;

    padding-top:15px;

    text-align:center;

    border-top:
        1px solid var(--border);

    color:white;

    font-weight:600;

}


.see-more:hover {

    color:var(--accent);

}


/* =========================================================
   Individual Lesson Page
========================================================= */

.lesson-page {

    max-width:1000px;

    margin:50px auto;

    padding:30px;

    background:var(--panel);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow);

}


.lesson-header {

    text-align:center;

    margin-bottom:30px;

}


.lesson-header h1 {

    margin:0 0 20px;

    font-size:42px;

    color:var(--accent);

}


.lesson-header p {

    max-width:850px;

    margin:auto;

    color:#ddd;

    font-size:18px;

    line-height:1.6;

}


/* =========================================================
   Video
========================================================= */

.video-container {

    position:relative;

    width:100%;

    padding-top:56.25%;

    overflow:hidden;

    background:#000;

    border-radius:var(--radius-md);

    box-shadow:
        0 5px 20px rgba(0,0,0,.6);

}


.video-container iframe,
.video-container video {

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    border:0;

}


.video-container video {

    object-fit:contain;

}


/* =========================================================
   Lesson Actions
========================================================= */

.lesson-top-bar {

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

    margin:20px 0;

}


.lesson-actions {

    display:flex;

    align-items:center;

    gap:12px;

}


.lesson-actions form {

    margin:0;

}


.favorite-button {

	margin-top:0px;

    height:42px;

    padding:0 20px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:8px;

    background:var(--accent);

    color:white;

    cursor:pointer;

}


.favorite-short {

    display:none;

}


.lesson-stats {

    display:flex;

    gap:12px;

}


.lesson-stat {

    display:flex;

    align-items:center;

    gap:6px;

    padding:8px 14px;

    background:var(--card);

    border-radius:8px;

}


/* =========================================================
   Rating
========================================================= */

.rating-form {

    margin-top:10px;

}


.stars {

    display:inline-flex;

    flex-direction:row-reverse;

    gap:5px;

}


.stars input {

    display:none;

}


.stars label {

    font-size:32px;

    color:#aaa;

    cursor:pointer;

    transition:.2s;

}


.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {

    color:gold;

}


/* =========================================================
   Comments
========================================================= */

.comments-section {

    margin-top:30px;

}


.comments-header {

    display:flex;

    justify-content:space-between;

    align-items:center;

}


.comment {

    background:var(--card);

    padding:15px;

    border-radius:var(--radius-md);

    margin-top:12px;

}


.comment small {

    color:var(--muted);

    margin-left:10px;

}


/* =========================================================
   Modal
========================================================= */

.modal {

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.7);

    align-items:center;

    justify-content:center;

    z-index:1000;

}


.modal-content {

    width:90%;

    max-width:500px;

    padding:25px;

    background:var(--panel);

    border-radius:var(--radius-md);

}


.modal textarea {

    width:100%;

    min-height:120px;

    padding:10px;

}


.close {

    float:right;

    font-size:25px;

    cursor:pointer;

}
/* =========================================================
   Metronome Page
========================================================= */

.metronome-page {

    min-height:calc(100vh - 90px);

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px 20px;

}


.metronome {

    width:min(95vw,850px);

    margin:50px auto;

    padding:35px;

    text-align:center;

    background:linear-gradient(
        145deg,
        #333,
        #1b1b1b
    );

    border-radius:30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.7);

}


.metronome h1 {

    margin:0 0 25px;

    font-size:clamp(28px,5vw,44px);

}


.tempo {

    font-size:clamp(60px,12vw,100px);

    font-weight:900;

    letter-spacing:3px;

}


/* =========================================================
   Metronome Controls
========================================================= */

input[type="range"] {

    width:100%;

    height:12px;

    cursor:pointer;

}


.labels {

    display:flex;

    justify-content:space-between;

    opacity:.7;

}


.section-title {

    margin-top:25px;

    font-size:20px;

}


.settings {

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-top:25px;

}


.setting {

    padding:20px;

    background:#252525;

    border-radius:18px;

}


.setting label {

    font-size:18px;

}


select {

    width:100%;

    padding:15px;

    font-size:18px;

    border:none;

    border-radius:12px;

}


.checkbox {

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

}


.checkbox input {

    width:25px;

    height:25px;

}


.beat-counter {

    margin:25px;

    font-size:32px;

    font-weight:bold;

}


/* =========================================================
   Pendulum
========================================================= */

.pendulum-container {

    height:190px;

}


.pendulum-arm {

    position:relative;

    width:8px;

    height:160px;

    margin:auto;

    background:#ddd;

    border-radius:10px;

    transform-origin:top center;

    transition:
        transform .08s linear;

}


.pendulum-arm::before {

    content:"";

    position:absolute;

    bottom:-15px;

    left:50%;

    width:40px;

    height:40px;

    background:#ff5252;

    border-radius:50%;

    transform:
        translateX(-50%);

}


/* =========================================================
   Beat Indicator
========================================================= */

.beat-indicator {

    width:90px;

    height:90px;

    margin:25px auto;

    background:#555;

    border-radius:50%;

    transition:.08s;

}


.beat-indicator.active {

    background:#4caf50;

    transform:scale(1.25);

}


/* =========================================================
   Metronome Buttons
========================================================= */

.metronome button {

    width:100%;

    min-height:65px;

    margin-top:15px;

    border:none;

    border-radius:18px;

    color:white;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;

    transition:.2s ease;

}


.metronome button:hover {

    transform:translateY(-2px);

    opacity:.9;

}


#toggleBtn {

    background:#4caf50;

}


#tapBtn {

    background:#2196f3;

}


.rhythm-buttons {

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(120px,1fr));

    gap:12px;

    margin-top:15px;

}


.rhythm-buttons button {

    min-height:50px;

    font-size:18px;

    background:#444;

}


.rhythm-buttons button.active {

    background:var(--accent);

    color:white;

}


.tap-display {

    margin-top:15px;

    font-size:20px;

}
/* =========================================================
   Authentication
========================================================= */

.auth-container {

    min-height:calc(100vh - 100px);

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px;

}


.auth-card {

    width:100%;

    max-width:420px;

    padding:35px;

    background:var(--panel);

    color:var(--text);

    border-radius:var(--radius-md);

    box-shadow:var(--shadow);

}


.auth-card h1 {

    text-align:center;

}


.auth-card label {

    display:block;

    margin-top:15px;

    font-weight:600;

}


.auth-card input {

    width:100%;

    padding:12px;

    margin-top:5px;

    background:white;

    color:var(--dark-text);

    border:none;

    border-radius:var(--radius-sm);

}


.auth-card button {

    width:100%;

    margin-top:25px;

    padding:12px;

    background:var(--accent);

    color:white;

    border:none;

    border-radius:var(--radius-sm);

    font-weight:bold;

    cursor:pointer;

}


.auth-card button:hover {

    background:var(--accent-hover);

}


/* =========================================================
   Alerts / Messages
========================================================= */

.alert {

    padding:15px;

    margin-bottom:20px;

    border-radius:var(--radius-md);

    background:rgba(220,53,69,.15);

    border:1px solid #dc3545;

    color:#ff8080;

}


.success-message,
.admin-message {

    padding:15px;

    margin-bottom:20px;

    border-radius:var(--radius-md);

    background:var(--success);

    color:white;

}


/* =========================================================
   Authentication Links
========================================================= */

.auth-link {

    text-align:center;

    margin-top:20px;

}


/* =========================================================
   Profile Page
========================================================= */

.profile-container {

    display:flex;

    justify-content:center;

    padding:40px 20px;

}


.profile-card {

    width:100%;

    max-width:1100px;

    padding:25px;

    background:var(--panel);

    color:var(--text);

    border-radius:var(--radius-md);

}


.profile-card h1 {

    text-align:center;

    margin-bottom:10px;

}


.profile-welcome {

    text-align:center;

    color:var(--muted);

    margin-bottom:30px;

}


.profile-grid {

    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:20px;

}


.profile-section {

    margin-top:25px;

}


.profile-row {

    display:flex;

    justify-content:space-between;

    gap:20px;

    padding:12px 0;

    border-bottom:
        1px solid #333;

}


.profile-row span {

    color:var(--muted);

}
.hidden {
    display: none !important;
}

/* =========================================================
   Rewards
========================================================= */

.reward-box {

    text-align:center;

    margin-top:30px;

    padding:25px;

    background:var(--card);

    border-radius:var(--radius-md);

}


.reward-number {

    font-size:48px;

    font-weight:bold;

    margin:15px 0;

}


/* =========================================================
   Collapsible Sections
========================================================= */

.collapsible-title {

    cursor:pointer;

    display:flex;

    justify-content:space-between;

    align-items:center;

    user-select:none;

}

.collapsible-title span {

    display: inline-block;
    margin-left: 8px;
    transition: transform .2s ease;

}

.collapsible-content {

    overflow:hidden;

    transition:max-height .3s ease;

}


#favorite-lessons.collapsed {

    display:none;

}


#favorite-arrow {

    font-size:.8em;

}


.future-box {

    opacity:.8;

}


/* =========================================================
   Logout
========================================================= */

.logout-button {

    display:flex;

    justify-content:center;

    margin-top:30px;

}


/* =========================================================
   Lesson Progress
========================================================= */

.lesson-progress-card {

    background:var(--panel);

    padding:15px;

    border-radius:var(--radius-md);

    margin-top:15px;

}


.lesson-progress-header {

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

}


.progress-bar {

    width:100%;

    height:10px;

    background:#333;

    border-radius:999px;

    overflow:hidden;

}


.progress-fill {

    height:100%;

    background:var(--accent);

    border-radius:999px;

    transition:
        width .3s ease;

}


.lesson-complete {

    margin-top:10px;

    color:#4caf50;

}
/* =========================================================
   Merch Page
========================================================= */

.merch-page {

    max-width:1200px;

    margin:40px auto;

    padding:30px;

}


.merch-header {

    text-align:center;

    padding:35px;

    margin-bottom:35px;

    background:var(--panel);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow);

}


.merch-header h1 {

    margin:0 0 15px;

    font-size:clamp(30px,5vw,48px);

    color:var(--accent);

}


.merch-header p {

    color:#ddd;

    font-size:18px;

}


/* =========================================================
   Product Grid
========================================================= */

.merch-grid {

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:20px;

    align-items:stretch;

}


.merch-card {

    background:var(--panel);

    border-radius:var(--radius-md);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.2s ease;

    display:flex;

    flex-direction:column;

    height:100%;

}


.merch-card:hover {

    transform:translateY(-5px);

}


.merch-card img {

    width:100%;

    height:250px;

    object-fit:cover;

}


.merch-content {

    padding:20px;

    text-align:center;

    display:flex;

    flex-direction:column;

    flex:1;

}


/* Push form/button to bottom */

.merch-form {

    margin-top:auto;

    display:flex;

    flex-direction:column;

    gap:10px;

}


.merch-content h3 {

    margin-top:0;

}


.merch-price {

    color:var(--accent-hover);

    font-size:20px;

    font-weight:bold;

    margin:15px 0;

}


.merch-button {

    width:100%;

}


/* =========================================================
   Merch Size Selector
========================================================= */

.merch-size-label {

    display:block;

    margin-top:15px;

    margin-bottom:5px;

    font-weight:bold;

}


.merch-size {

    width:100%;

    padding:10px;

    background:white;

    color:#111;

    border:none;

    border-radius:8px;

    font-size:16px;

    box-sizing:border-box;

}


/* Placeholder for products without sizes */

.na-size {

    display:flex;

    align-items:center;

    justify-content:center;

    height:44px;

    background:white;

    color:#111;

    border-radius:8px;

    font-size:16px;

}

/* =========================================================
   Cart
========================================================= */

.cart-page {

    max-width:1000px;

    margin:40px auto;

    padding:20px;

}


.cart-container {

    padding:30px;

    background:var(--panel);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow);

}


.cart-item {

    display:flex;

    gap:20px;

    padding:20px 0;

    border-bottom:
        1px solid var(--border);

}


.cart-item img {

    width:120px;

    height:120px;

    object-fit:cover;

    border-radius:var(--radius-md);

}


.cart-details {

    flex:1;

}


.cart-details input {

    width:70px;

    padding:8px;

}


.remove-button {

    margin-left:15px;

    padding:8px 15px;

    background:var(--danger);

    color:white;

    border:none;

    border-radius:var(--radius-sm);

    cursor:pointer;

}


/* =========================================================
   Cart Header Icon
========================================================= */

.cart-link {

    display:flex;

    align-items:center;

    gap:6px;

}


.cart-count {

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:20px;

    height:20px;

    padding:0 5px;

    background:var(--accent);

    color:white;

    border-radius:50%;

    font-size:12px;

    font-weight:bold;

}


/* =========================================================
   Province Selector
========================================================= */

.province-form {

    margin:20px 0;

}


.province-selector {

    max-width:350px;

    padding:18px 20px;

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:var(--radius-md);

    box-shadow:var(--shadow);

}


.province-selector label {

    display:block;

    margin-bottom:8px;

    font-weight:600;

}


.province-selector select {

    width:100%;

    padding:12px 14px;

    background:var(--card);

    color:white;

    border:1px solid var(--border);

    border-radius:8px;

}


/* =========================================================
   Checkout
========================================================= */

.checkout-container {

    max-width:850px;

    margin:40px auto;

    padding:20px;

}


.checkout-card {

    padding:35px;

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow);

}


.checkout-card h1 {

    text-align:center;

    font-size:2.2rem;

    margin-bottom:35px;

}


.checkout-card h3 {

    padding-bottom:10px;

    margin-bottom:20px;

    border-bottom:
        1px solid var(--border);

}


.checkout-card > p {

    display:flex;

    justify-content:space-between;

    margin:12px 0;

    color:#ddd;

}


.checkout-card h2 {

    margin:25px 0 35px;

    padding:20px;

    text-align:right;

    background:var(--card);

    border-radius:var(--radius-md);

    color:var(--accent-hover);

}


.checkout-card input,
.checkout-card textarea {

    width:100%;

    padding:12px 15px;

    background:var(--input);

    color:white;

    border:1px solid var(--border);

    border-radius:8px;

}


.checkout-card textarea {

    min-height:120px;

    resize:vertical;

}


.checkout-card input:focus,
.checkout-card textarea:focus {

    outline:none;

    border-color:var(--accent);

}


.checkout-card .button {

    width:100%;

    margin-top:30px;

}
/* =========================================================
   Teacher Dashboard
========================================================= */

.teacher-dashboard {

    max-width:1200px;

    margin:40px auto;

    padding:0 20px;

}


.teacher-dashboard h1 {

    margin-bottom:25px;

}


.teacher-grid {

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

}


.teacher-card {

    display:block;

    padding:25px;

    background:var(--card);

    color:var(--text);

    border-radius:var(--radius-md);

    transition:.2s ease;

}


.teacher-card:hover {

    transform:translateY(-4px);

    text-decoration:none;

    color:var(--text);

}


.teacher-card h2 {

    margin-bottom:10px;

}


.teacher-card p {

    color:var(--muted);

}


.teacher-actions {

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:20px;

}


.teacher-button {

    background:#333;

}


.teacher-button-primary {

    background:var(--accent);

}



/* =========================================================
   Admin Tables
========================================================= */

.admin-table {

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}


.admin-table th,
.admin-table td {

    padding:12px;

    text-align:left;

    border-bottom:
        1px solid var(--border);

}


.admin-table th {

    background:var(--panel);

}
.admin-page {

    max-width:1100px;
    margin:40px auto;
    padding:20px;

}


.order-card {

    background:var(--panel);
    border-radius:var(--radius-md);
    padding:25px;
    margin-bottom:25px;
    box-shadow:var(--shadow);

}


.order-header {

    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid var(--border);
    padding-bottom:15px;
    margin-bottom:20px;

}


.order-info p {

    margin:8px 0;

}


.order-items {

    padding-left:20px;

}


.order-status {

    display:flex;
    gap:10px;
    margin-top:20px;

}


.order-status select,
.order-status button {

    padding:10px 15px;
    border-radius:8px;
    border:none;

}


.order-status button {

    background:var(--accent);
    color:white;
    cursor:pointer;

}


.order-status button:hover {

    background:var(--accent-hover);

}

/* =========================================================
   Admin Forms
========================================================= */

.admin-form-container {

    max-width:800px;

    margin:50px auto;

    padding:30px;

    background:var(--panel);

    border-radius:var(--radius-md);

    box-shadow:var(--shadow);

}


.admin-form-group {

    margin-bottom:20px;

}


.admin-form-group label {

    display:block;

    margin-bottom:8px;

    font-weight:600;

}


.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {

    width:100%;

    padding:12px;

    background:var(--card);

    color:white;

    border:1px solid var(--border);

    border-radius:8px;

}


.admin-form-group textarea {

    min-height:150px;

    resize:vertical;

}


.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {

    outline:none;

    border-color:var(--accent);

}


.checkbox-group label {

    display:flex;

    align-items:center;

    gap:10px;

    cursor:pointer;

}


.checkbox-group input[type="checkbox"] {

    width:20px;

    height:20px;

    accent-color:var(--accent);

}



/* =========================================================
   Order Complete
========================================================= */

.order-complete-container {

    width:100%;

    max-width:1000px;

    margin:40px auto;

    padding:20px;

}


.order-complete-card {

    padding:35px;

    background:var(--panel);

    border-radius:var(--radius-md);

    box-shadow:var(--shadow);

}


.order-complete-card h1 {

    text-align:center;

}


.order-complete-card h3 {

    padding-bottom:10px;

    border-bottom:
        1px solid var(--border);

}


.order-summary-item {

    padding:15px;

    margin-bottom:15px;

    background:var(--card);

    border-radius:8px;

}


.order-total {

    margin-top:25px;

    padding-top:20px;

    border-top:
        1px solid var(--border);

}


.order-total h2 {

    color:var(--accent-hover);

}



/* =========================================================
   Responsive
========================================================= */


/* Tablet */

@media(max-width:900px) {


    .features {

        grid-template-columns:
            repeat(2,minmax(0,1fr));

    }


    .lesson {

        flex-direction:column;

        padding:12px;

    }


    .lesson-image {

        width:100%;

    }


    .lesson-image img {

        height:140px;

    }


    .profile-grid,
    .merch-grid {

        grid-template-columns:1fr 1fr;

    }


}
/* ==========================
   Admin Menu
========================== */

.nav-dropdown {

    position:relative;

}



.nav-dropdown-button {

    background:none;
    border:none;

    color:var(--text);

    font-size:inherit;

    cursor:pointer;

    padding:10px 15px;

}



.nav-dropdown-menu {

    display:none;

}



.nav-dropdown-menu.open {

    display:block;

}



.nav-dropdown-menu a {

    display:block;

    padding:10px 15px;

}
@media(max-width:768px){


    .nav-dropdown {

        width:100%;

    }


    .nav-dropdown-button {

        width:100%;

        text-align:left;

        padding:15px;

    }


    .nav-dropdown-menu {

        position:static;

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

        border-radius:0;

        box-shadow:none;

    }


    .nav-dropdown-menu a {

        padding-left:35px;

    }


}
/* Mobile */

@media(max-width:768px) {


    .menu-toggle {

        display:block;

    }


    nav {

        display:none;

        position:absolute;

        top:100%;

        right:20px;

        flex-direction:column;

        min-width:200px;

        background:var(--panel);

        border-radius:var(--radius-md);

        overflow:hidden;

        box-shadow:var(--shadow);

    }


    nav.open {

        display:flex;

    }


    nav a {

        padding:15px;

        border-bottom:
            1px solid var(--border);

    }


    .lesson-page {

        margin:20px;

        padding:20px;

    }


    .lesson-header h1 {

        font-size:30px;

    }


    .checkout-card,
    .auth-card {

        padding:20px;

    }


}



/* Small Mobile */

@media(max-width:600px) {


    .features,
    .profile-grid,
    .merch-grid {

        grid-template-columns:1fr;

    }


    .logo img {

        height:50px;

    }


    .favorite-full {

        display:none;

    }


    .favorite-short {

        display:inline;

        font-size:1.4rem;

    }


    .favorite-button {

        width:42px;

        padding:0;

    }


    .cart-item {

        flex-direction:column;

    }


    .cart-item img {

        width:100%;

        height:200px;

    }


    .checkout-container,
    .merch-page {

        padding:10px;

    }


}


/* Extra Small */

@media(max-width:440px) {


    .hero h2 {

        font-size:34px;

    }


    .back-short {

        display:none;

    }


    .back-shorter {

        display:inline;

    }

}

/* Tab Viewer */
.tab-player {

    background: var(--panel);

    border-radius: 12px;

    overflow: hidden;

    margin-top: 20px;

}

.tab-controls {

    display: flex;

    gap: 10px;

    padding: 15px;

    background: #181818;

    border-bottom: 1px solid #333;

}

.tab-controls button,
.tab-controls select {

    padding: 10px 14px;

    border: 0;

    border-radius: 8px;

}

.tab-viewport {

    max-height: 800px;

    overflow-y: auto;

    background: white;

    padding: 20px;

}

/* =========================================================
   Admin Add Tab Page
========================================================= */

.admin-container {

    max-width: 700px;

    margin: 40px auto;

    padding: 30px;

    background: var(--panel);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow);

}


.admin-container h1 {

    margin-bottom: 25px;

    color: var(--text);

    font-size: 28px;

}



/* =========================================================
   Admin Form
========================================================= */

.admin-form {

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.admin-form label {

    color: var(--text);

    font-weight: 600;

    margin-top: 10px;

}



.admin-form input[type="text"],
.admin-form input[type="file"] {

    width: 100%;

    padding: 12px 14px;

    background: var(--card);

    color: var(--text);

    border: 1px solid #333;

    border-radius: var(--radius-sm);

    font-size: 15px;

}



.admin-form input[type="file"] {

    cursor: pointer;

}



.admin-form input:focus {

    outline: none;

    border-color: var(--accent);

}




/* =========================================================
   Upload Button
========================================================= */

.admin-form .btn {

    margin-top: 25px;

    padding: 12px 20px;

    background: var(--accent);

    color: white;

    border: none;

    border-radius: var(--radius-sm);

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;

}



.admin-form .btn:hover {

    background: var(--accent-hover);

    transform: translateY(-2px);

}



/* =========================================================
   Messages
========================================================= */

.success-message,
.error-message {

    padding: 12px 15px;

    margin-bottom: 20px;

    border-radius: var(--radius-sm);

    font-weight: 600;

}



.success-message {

    background: rgba(39,178,197,.15);

    color: var(--accent-hover);

    border: 1px solid var(--accent);

}



.error-message {

    background: rgba(200,50,50,.15);

    color: #ff7777;

    border: 1px solid #aa3333;

}



/* =========================================================
   Mobile
========================================================= */

@media (max-width:700px) {


    .admin-container {

        margin: 20px;

        padding: 20px;

    }


    .admin-container h1 {

        font-size: 24px;

    }


}
/* =========================================================
   JamNation AlphaTab Player
========================================================= */


.jn-tab-player {

    width:100%;

    height:80vh;

    min-height:500px;

    background:var(--white);

    border-radius:var(--radius-md);

    overflow:hidden;

    box-shadow:var(--shadow);

    display:flex;

    flex-direction:column;

    position:relative;

}





/*
    AlphaTab Content Wrapper
*/


.jn-tab-content {

    flex:1;

    min-height:0;

    display:flex;

    overflow:hidden;

}





/*
    Actual AlphaTab Scroll Area
*/


.jn-tab-scroll {

    flex:1;

    min-height:0;

    height:100%;

    overflow:auto;

    padding:20px;


    /*
        Allows smooth cursor following
    */

    scroll-behavior:smooth;


}





/*
    AlphaTab Canvas Area
*/


.jn-tab-main {

    min-height:100%;

}





/*
    Loading Overlay
*/


.jn-tab-overlay {

    position:absolute;

    inset:0;

    z-index:20;


    background:rgba(0,0,0,.7);

    backdrop-filter:blur(3px);


    display:flex;

    align-items:flex-start;

    justify-content:center;


}





.jn-loader {


    margin-top:30px;

    padding:15px 25px;


    background:var(--card);

    border-radius:var(--radius-md);


    color:white;


}







/* AlphaTab cursor */

.at-cursor {

    background:rgba(21,119,135,.25) !important;

}


.at-cursor-bar {

    background:rgba(21,119,135,.25) !important;

}


.at-cursor-beat {

    background:#157787 !important;

    opacity:1 !important;

}


/* =========================================================
   Mobile
========================================================= */


@media(max-width:768px){


    .jn-tab-player {


        height:70vh;

        min-height:400px;


    }



    .jn-tab-scroll {


        padding:10px;


    }


}
/* =========================================================
   Tab Player Controls (Header Add-on)
========================================================= */
.tab-header {

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    justify-content:space-between;

    padding:15px 25px;

    background:rgba(17,17,17,1);

    position:sticky;

    top:0;

    z-index:100;

    box-shadow:
        0 2px 8px rgba(0,0,0,.3);


}
/* Tab Toolbar Controls */

.tab-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons & Selects */

.tab-toolbar button,
.tab-toolbar select {
    height: 42px;
    padding: 0 16px;

    background: var(--accent);
    color: #fff;

    border: none;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background .2s ease,
                transform .15s ease;
}

/* Hover */

.tab-toolbar button:hover,
.tab-toolbar select:hover {
    background: var(--accent-hover);
}

/* Select styling */

.tab-toolbar select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 38px;

    background-image:
        linear-gradient(45deg, transparent 50%, #fff 50%),
        linear-gradient(135deg, #fff 50%, transparent 50%);

    background-position:
        calc(100% - 18px) center,
        calc(100% - 12px) center;

    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* Tempo / Track wrappers */

.tempo-control {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
}

.tempo-control label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

/* Widths */

#speed {
    width: 100px;
}

#instrument-track {
    width: 140px;
}

/* Mobile */

@media (max-width:600px) {

    .tab-toolbar {
        justify-content: center;
        gap: 10px;
    }

    .tempo-control {
        width: auto;          /* <-- was 100% */
        justify-content: flex-start;
    }

    .tab-toolbar select {
        flex: 0 0 auto;       /* <-- don't stretch */
    }

}
.lesson-rating {

    display: flex;

    align-items: center;

    gap: 2px;

    margin-top: 10px;

}


.lesson-rating span {

    font-size: 18px;

    color: #555;

    line-height: 1;

}


.lesson-rating span.filled {

    color: #f5c542;

}


.lesson-rating small {

    margin-left: 6px;

    color: #aaa;

    font-size: 12px;

}
.band-search {
    position: relative;
    width: 100%;
}

.band-search label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.band-search input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;

    background: var(--card);
    color: var(--text);

    border: 1px solid #444;
    border-radius: 6px;

    font-size: 14px;
}

.band-search input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.band-results {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    margin-top: 4px;

    background: var(--panel);

    border: 1px solid #444;
    border-radius: 6px;

    max-height: 240px;
    overflow-y: auto;

    z-index: 1000;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.band-result {
    padding: 10px 12px;

    color: var(--text);

    cursor: pointer;

    border-bottom: 1px solid #333;
}

.band-result:last-child {
    border-bottom: none;
}

.band-result:hover {
    background: var(--accent);
}

.band-no-results {
    padding: 10px 12px;

    color: #aaa;
}

/*
    Tab Card
*/

.tab-card {

    background: var(--panel);

    border: 1px solid #333;

    border-radius: 8px;

    padding: 16px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.tab-card:hover {

    transform: translateY(-2px);

    border-color: var(--accent);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25);

}


.tab-card-content {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.tab-card-band {

    color: var(--accent-hover);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

}


.tab-card-band:hover {

    text-decoration: underline;

}


.tab-card-title {

    color: var(--text);

    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;

    text-decoration: none;

}


.tab-card-title:hover {

    color: var(--accent-hover);

}


.tab-card-rating {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 5px;

    font-size: 14px;

}


.tab-stars {

    display: inline-flex;

    gap: 1px;

    letter-spacing: 1px;

}


.tab-stars .star {

    color: #555;

}


.tab-stars .star.filled {

    color: #f5c542;

}


.tab-stars .star.half {

    color: #f5c542;

}


.tab-rating-value {

    color: var(--text);

    font-weight: 600;

}


.tab-rating-count {

    color: #999;

}

/* =========================================================
   Tab Rating
========================================================= */

.tab-rating {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    width: fit-content;

    max-width: calc(100% - 30px);

    margin: 18px auto;

    padding: 10px 16px;

    background: var(--panel);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 6px;

    box-sizing: border-box;

}


/* Title */

.tab-rating-title {

    margin: 0;

    font-size: 14px;

    font-weight: 600;

    color: var(--text);

    white-space: nowrap;

}


/* Stars */

.tab-rating-stars {

    display: flex;

    align-items: center;

    gap: 2px;

    flex-shrink: 0;

}


.rating-star {

    appearance: none;

    border: none;

    background: transparent;

    padding: 0 2px;

    margin: 0;

    color: #555;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transition:
        color 0.12s ease,
        transform 0.12s ease;

}


.rating-star:hover {

    color: #f5c518;

    transform: scale(1.12);

}


.rating-star.active {

    color: #f5c518;

}


.rating-star.hover {

    color: #f5c518;

}


/* Average */

.tab-rating-summary {

    margin: 0;

    font-size: 13px;

    color: #999;

    white-space: nowrap;

}


.tab-rating-summary strong {

    color: #fff;

    font-size: 14px;

}


/* User's rating */

.tab-rating-your-rating {

    margin: 0;

    font-size: 12px;

    color: #888;

    white-space: nowrap;

}


.tab-rating-your-rating strong {

    color: #f5c518;

}


/* Login */

.tab-rating-login {

    margin: 0;

    font-size: 13px;

    color: #999;

    white-space: nowrap;

}


.tab-rating-login a {

    color: var(--accent-hover);

    font-weight: 600;

    text-decoration: none;

}


.tab-rating-login a:hover {

    text-decoration: underline;

}


/* =========================================================
   Narrow screens
========================================================= */

@media (max-width: 600px) {

    .tab-rating {

        width: calc(100% - 20px);

        max-width: none;

        flex-wrap: wrap;

        gap: 8px 12px;

        padding: 10px 12px;

    }


    .tab-rating-title {

        width: 100%;

        text-align: center;

    }


    .tab-rating-stars {

        justify-content: center;

    }


    .tab-rating-summary {

        text-align: center;

    }


    .tab-rating-your-rating {

        text-align: center;

    }

}

/*
|--------------------------------------------------------------------------
| Tab Search
|--------------------------------------------------------------------------
*/

.tab-search {

    display:flex;
    align-items:center;

    gap:12px;
    flex-wrap:wrap;

    margin-top:15px;

}


.tab-search input {

    flex:1;
    min-width:240px;

}





/*
|--------------------------------------------------------------------------
| Alphabet Browser
|--------------------------------------------------------------------------
*/

.alphabet {

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}



.alphabet a {

    width:36px;
    height:36px;


    display:flex;

    align-items:center;
    justify-content:center;


    background:var(--card);

    color:white;

    text-decoration:none;


    border-radius:50%;


    font-weight:bold;


    transition:.2s;

}



.alphabet a:hover,
.alphabet a.active {

    background:var(--accent);

}





/*
|--------------------------------------------------------------------------
| Band Browser
|--------------------------------------------------------------------------
*/

.band-list {

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(160px,1fr));


    gap:10px;

    margin-top:15px;

}



.band-list a {

    display:block;


    background:var(--card);

    color:white;


    padding:12px;


    border-radius:8px;


    text-decoration:none;


    transition:.2s;

}



.band-list a:hover,
.band-list a.active {

    background:var(--accent);

}