/* =====================================================
   AQUAFLOW - Swimming Academy CSS
   Theme: Deep Ocean — Bold type, fluid motion, electric aqua
   ===================================================== */

:root {
    --ocean: #0077B6;
    --navy: #0A2463;
    --deep: #023E8A;
    --aqua: #00B4D8;
    --surf: #90E0EF;
    --foam: #CAF0F8;
    --orange: #FF6B35;
    --green: #06D6A0;
    --coral: #FF6B6B;
    --gold: #FFB703;
    --dark: #0D1B2A;
    --mid: #1B2D45;
    --muted: #4A6580;
    --light: #F0F8FF;
    --white: #FFFFFF;
    --border: #D0E8F5;
    --footer-bg: var(--dark);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 119, 182, 0.12);
    --shadow-lg: 0 12px 48px rgba(10, 36, 99, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-brand: 'Pacifico', cursive;

    /* New Modern Variables */
    --glass: rgba(255, 255, 255, 0.15);
    --glass-heavy: rgba(255, 255, 255, 0.7);
    --glass-bg: blur(12px);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 180, 216, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.glass {
    background: var(--glass);
    backdrop-filter: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

a {
    color: var(--ocean);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--aqua);
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.gap-4 {
    gap: 24px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
    pointer-events: none;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: var(--ocean);
    color: var(--white);
    border-color: var(--ocean);
}

.btn-primary:hover {
    background: var(--deep);
    border-color: var(--deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.35);
}

.btn-secondary {
    background: var(--aqua);
    color: var(--white);
    border-color: var(--aqua);
}

.btn-secondary:hover {
    background: var(--ocean);
    border-color: var(--ocean);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--ocean);
    border-color: var(--ocean);
}

.btn-outline:hover {
    background: var(--ocean);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--light);
    color: var(--dark);
}

.btn-coral {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-coral:hover {
    background: #e55a5a;
    border-color: #e55a5a;
    color: var(--white);
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-orange:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: var(--white);
}

.btn-green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-green:hover {
    background: #05b586;
    border-color: #05b586;
    color: var(--white);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-navy:hover {
    background: #081c4e;
    border-color: #081c4e;
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-left: 15px;
    padding-right: 10px;
}

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.topbar-social a:hover {
    color: var(--aqua);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--foam);
    transition: var(--transition);
}

.navbar .container,
.topbar .container {
    max-width: 1450px;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 60, 120, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 15px;
    gap: 24px;
}

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

.nav-logo {
    height: 44px;
    width: auto;
}

.nav-brand-name {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    color: var(--navy);
    line-height: 1;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    color: var(--ocean);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--dark);
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ocean);
    background: var(--foam);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-btn {
    position: relative;
    font-size: 1.3rem;
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--foam);
    color: var(--ocean);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--coral);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    border: 2px solid var(--white);
    z-index: 10;
}

.notice-badge {
    background: #ef4444;
    animation: pulse-soft 2s infinite;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 6px;
}

.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .admin-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 2px solid var(--foam);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    /* Prevent horizontal overflow on mobile */
    .nav-inner {
        gap: 8px;
        padding: 12px 10px;
    }

    .nav-brand-name {
        font-size: 1.1rem;
    }

    .nav-logo {
        height: 36px;
    }

    .cart-btn {
        padding: 4px 8px;
        font-size: 1.1rem;
    }

    .nav-actions .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 8px;
    }

    .topbar-inner span {
        font-size: 0.75rem;
    }

    .topbar-social {
        display: none;
    }

    .container {
        padding: 0 12px;
    }
}

.flash-message {
    padding: 14px 24px;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.flash-message button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 90vh;
    background: linear-gradient(165deg, var(--navy) 0%, var(--ocean) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 140px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300B4D8' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,122.7C672,128,768,192,864,192C960,192,1056,128,1152,112C1248,96,1344,128,1392,144L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom/cover no-repeat;
}

.hero-waves {
    position: absolute;
    bottom: -1px;
    /* Slight overlap to prevent seam */
    left: 0;
    right: 0;
    height: 80px;
    z-index: 10;
    line-height: 0;
}

.hero-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-flex-reverse .hero-flex {
    flex-direction: row-reverse;
}

/* Fallback for when no image is present */
.hero:not(.hero-with-image) .hero-flex {
    justify-content: center;
    text-align: center;
}

.hero:not(.hero-with-image) .hero-content {
    flex: none;
    max-width: 900px;
}

.hero:not(.hero-with-image) .hero-p {
    margin-left: auto;
    margin-right: auto;
}

.hero:not(.hero-with-image) .hero-actions {
    justify-content: center;
}

.hero:not(.hero-with-image) .hero-stats {
    justify-content: center;
}

.hero-content {
    flex: 1.2;
    color: white;
}

.hero h1 {
    color: white;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--ocean);
    border-color: var(--white);
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    max-width: 520px;
    height: 480px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    border: 10px solid rgba(255, 255, 255, 0.1);
    animation: heroBlob 8s infinite alternate ease-in-out;
}

@keyframes heroBlob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-image-backdrop {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--aqua) 0%, transparent 75%);
    top: -10%;
    left: -10%;
    opacity: 0.25;
    filter: blur(60px);
    z-index: -1;
}

.hero-image-floating-badge {
    position: absolute;
    bottom: 30px;
    right: 10%;
    background: white;
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 0.95rem;
    animation: heroFloat 4s infinite ease-in-out;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat .stat-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--surf);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .hero {
        padding: 80px 0 100px;
        text-align: center;
    }

    .hero-flex {
        flex-direction: column !important;
        gap: 48px;
    }

    .hero-content {
        flex: none;
        width: 100%;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero-main-img {
        height: 360px;
        max-width: 440px;
    }

    .hero-image-floating-badge {
        display: none;
    }
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 12px;
}

.section-header h2 {
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--ocean), var(--aqua));
    border-radius: 4px;
    margin: 16px auto 0;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-premium);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.1);
    border-color: var(--surf);
}

/* Service Card */
.service-card .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(135deg, var(--ocean), var(--aqua));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.service-card .card-body {
    padding: 24px;
}

.service-card .card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--foam);
    color: var(--ocean);
}

.tag-level {
    background: #e8f4fd;
    color: var(--deep);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.service-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ocean);
}

.price-small {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

/* Product Card */
.product-card {
    position: relative;
}

.product-card .card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
}

.product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--coral);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.product-card .card-body {
    padding: 20px;
}

.product-card h4 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.add-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ocean);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--deep);
    transform: scale(1.1) rotate(90deg);
}

/* =====================================================
   FEATURES STRIP
   ===================================================== */
.features-strip {
    background: var(--deep);
    color: white;
    padding: 60px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-strip .section-header h2 {
    color: white;
}

.features-strip .section-header .section-tag {
    color: var(--surf);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    color: white;
}

.feature-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
    background: var(--light);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--dark);
    margin-bottom: 7px;
}

.form-group label span {
    color: var(--coral);
}

.form-control {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: white;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--ocean);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.form-control::placeholder {
    color: #aab8c5;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 5px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--coral);
    margin-top: 5px;
}

body .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--muted) transparent !important;
}

/* HIGH SPECIFICITY OVERRIDES */
body .choices {
    font-family: var(--font-body) !important;
}

body .choices .choices__inner {
    background-color: var(--white) !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 2px 14px !important;
    min-height: 44px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

body .choices.is-focused .choices__inner {
    border-color: var(--ocean) !important;
}

body .choices__list--dropdown,
body .choices__list[aria-expanded] {
    border: 2px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    margin-top: 5px !important;
    padding: 5px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
}

body .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--orange) !important;
    background: var(--orange) !important;
    color: #ffffff !important;
}

body .choices__list--dropdown .choices__item--selectable {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
}

body .choices[data-type*="select-one"]::after {
    border-width: 5px !important;
    border-color: var(--muted) transparent transparent transparent !important;
    right: 15px !important;
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--foam) 0%, white 60%);
    padding: 60px 24px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h2 {
    font-size: 2.5rem;
    color: var(--ocean);
}

.auth-logo p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* =====================================================
   PAGE HERO
   ===================================================== */
.page-hero {
    background: linear-gradient(135deg, var(--deep), var(--ocean));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: var(--aqua);
}

/* =====================================================
   BOOKING FORM
   ===================================================== */
.booking-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.schedule-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.schedule-option:hover,
.schedule-option.selected {
    border-color: var(--ocean);
    background: var(--foam);
}

.schedule-option input[type="radio"] {
    display: none;
}

.sch-day {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ocean);
    margin-bottom: 2px;
    display: inline;
}

.sch-time {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--dark);
    display: inline;
    margin-left: 8px;
}

.sch-coach {
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-block;
    margin-right: 12px;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-layout {
    display: block !important;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    display: none;
}

/* Dashboard Nav Tabs - Modern Variant */
.dash-tabs-container {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
    position: sticky;
    top: 80px;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.dash-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dash-tabs::-webkit-scrollbar {
    display: none;
}

.dash-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    border: none;
    border-radius: 12px 12px 0 0;
}

.dash-tab:hover {
    color: var(--ocean);
    background: var(--light);
}

.dash-tab.active {
    color: var(--ocean);
    background: transparent;
    font-weight: 600;
}

.dash-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--ocean);
    border-radius: 10px 10px 0 0;
}

.dash-tab .nav-icon {
    font-size: 1.15rem;
    transition: transform 0.2s;
}

.dash-tab:hover .nav-icon {
    transform: scale(1.1);
}

.dashboard-main {
    padding: 24px 0;
    background: #fcfdfe;
    min-height: 60vh;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.06);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.1);
}

.stat-card .stat-num {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ocean);
    display: block;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 24px 0;
    }

    .dash-tabs-container {
        top: 72px;
    }

    .dash-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }
}

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-body {
    background: #f0f4f8;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--dark);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar-action {
    padding: 10px 14px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.18);
}

.admin-topbar .brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--aqua);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar .brand span {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    letter-spacing: 0;
    color: white;
}

.admin-topbar .admin-user {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
}

.admin-sidebar {
    width: 240px;
    background: var(--mid);
    flex-shrink: 0;
    padding: 20px 0;
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 50;
}

.admin-sidebar .menu-group {
    margin-bottom: 24px;
}

.admin-sidebar .menu-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    padding: 0 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.admin-sidebar a svg {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.admin-sidebar a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar a:hover svg {
    opacity: 0.9;
    transform: translateX(2px);
}

.admin-sidebar a.active {
    color: var(--aqua);
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--aqua);
    font-weight: 700;
}

.admin-sidebar a.active svg {
    opacity: 1;
    color: var(--aqua);
}

.admin-main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-left: 240px;
}

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0ebf5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =====================================================
   SETTINGS TABS (Admin)
   ===================================================== */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    margin: 8px -8px 0;
    padding: 0 8px;
    white-space: nowrap;
}

.settings-tab {
    display: inline-block;
    padding: 12px 16px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    background: transparent;
    margin-right: 6px;
}

.settings-tab:hover {
    color: var(--ocean);
    background: rgba(0, 119, 182, 0.06);
}

.settings-tab.active {
    color: var(--ocean);
    background: white;
    border-color: var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* =====================================================
   Admin Icon Buttons + Table Actions
   ===================================================== */
.icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.icon-btn svg {
    width: 14px;
    height: 14px;
}

.admin-table-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
}

.admin-table-actions form {
    display: inline;
    margin: 0;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead tr {
    background: var(--light);
}

th,
td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

td {
    color: var(--muted);
    font-size: 0.85rem;
}

tbody tr:hover {
    background: #f8fbff;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 50px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

/* =====================================================
   SHOP / CART
   ===================================================== */
.cart-table td {
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--light);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--foam);
    color: var(--ocean);
}

.qty-control input {
    width: 48px;
    height: 34px;
    text-align: center;
    border: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
}

.order-summary {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
}

.order-summary .sum-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.order-summary .sum-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    margin-top: auto;
}

.footer-wave {
    line-height: 0;
}

.footer-wave svg {
    height: 60px;
    width: 100%;
}

.footer-body {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding: 60px 24px 40px;
}

.footer-brand h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.social-link svg {
    transition: transform 0.2s;
}

.social-link:hover {
    border-color: var(--aqua);
    color: var(--aqua);
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--aqua);
}

.footer-col p {
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.82rem;
}

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--muted);
    transition: var(--transition);
    padding: 0 14px;
}

.pagination a:hover {
    border-color: var(--ocean);
    color: var(--ocean);
}

.pagination .current {
    background: var(--ocean);
    border-color: var(--ocean);
    color: white;
}

/* =====================================================
   MISC
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-info {
    background: #e8f4fd;
    border-color: var(--ocean);
    color: var(--deep);
}

.alert-warning {
    background: #fff8e1;
    border-color: var(--gold);
    color: #7a5800;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* =====================================================
   RESPONSIVE FIXES
   ===================================================== */
@media (max-width: 768px) {
    .section {
        padding: 52px 0;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .booking-card {
        padding: 24px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Admin mobile fixes */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        display: none;
        position: static;
        top: auto;
        left: auto;
        bottom: auto;
    }

    .admin-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        height: calc(100vh - 56px);
        z-index: 200;
    }

    .admin-main {
        padding: 16px;
        margin-left: 0;
    }

    .admin-topbar {
        padding: 0 12px;
        height: 56px;
    }

    .admin-topbar .brand {
        font-size: 1rem;
        gap: 6px;
    }

    .admin-topbar .brand span {
        font-size: 1rem;
    }

    .admin-topbar-actions {
        gap: 6px;
    }

    .admin-topbar-action {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .admin-user {
        display: none;
    }

    .dash-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-card {
        padding: 16px;
    }

    .admin-table-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 4px;
    }

    .admin-table-actions .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   INVOICE STYLING
   ===================================================== */
.invoice-wrap {
    padding: 40px 0;
    background: #f8fbff;
    min-height: 100vh;
}

.invoice-paper {
    background: white;
    max-width: 850px;
    margin: 0 auto;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--foam);
    padding-bottom: 30px;
}

.invoice-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.invoice-brand h2 {
    color: var(--navy);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--ocean);
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.15;
}

.invoice-meta-item {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.invoice-meta-item strong {
    color: var(--dark);
    font-family: var(--font-mono);
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.invoice-info-box h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ocean);
    margin-bottom: 12px;
}

.invoice-info-box p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 1rem;
}

.invoice-info-box strong {
    color: var(--dark);
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.invoice-table th {
    background: var(--navy);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invoice-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--foam);
    color: var(--dark);
    font-size: 1rem;
}

.invoice-table tr:last-child td {
    border-bottom: 2px solid var(--navy);
}

.invoice-table .text-right {
    text-align: right;
}

.invoice-summary {
    display: flex;
    justify-content: flex-end;
}

.invoice-summary-table {
    width: 300px;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--foam);
}

.invoice-summary-row span {
    color: var(--muted);
}

.invoice-summary-row strong {
    color: var(--dark);
}

.invoice-summary-row.total {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 5px;
}

.invoice-summary-row.total strong {
    font-size: 1.5rem;
    color: var(--ocean);
}

.invoice-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--foam);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.invoice-notes h4 {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.invoice-notes p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.stamp-paid {
    position: absolute;
    top: 120px;
    right: 170px;
    width: 200px;
    height: 90px;
    border: 5px solid var(--coral);
    border-radius: 12px;
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-15deg);
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
    z-index: 10;
}

@media print {
    body {
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden !important;
    }

    .invoice-wrap,
    .invoice-wrap *,
    .invoice-paper,
    .invoice-paper * {
        visibility: visible !important;
    }

    .invoice-wrap {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide site header, footer, nav, and any non-invoice elements */
    header.site-header,
    .topbar,
    footer.site-footer,
    footer.footer,
    nav,
    .navbar,
    .top-header,
    .main-nav,
    .footer-nav,
    .social-links,
    .floating-buttons,
    .dashboard-nav,
    .floating-whatsapp,
    #noticesModal {
        display: none !important;
    }

    .invoice-wrap {
        padding: 0 !important;
        background: white !important;
        min-height: auto !important;
    }

    .invoice-paper {
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .no-print {
        display: none !important;
    }

    .stamp-paid {
        opacity: 0.15 !important;
    }

    @page {
        margin: 1cm;
        size: auto;
    }
}