/* ═══ FEATURES — Landing pages, onboarding, dashboard, marketplace ═══ */
th.sort-asc,
th.sort-desc {
    background-color: rgba(45, 95, 93, 0.15) !important;
    font-weight: 700;
}

/* ========== LANDING PAGE STYLES ========== */

body.landing-page {
    background: var(--t-bg);
}

[data-theme="light"] body.landing-page,
body.landing-page[data-theme="light"] {
    background: #ffffff;
}

body.landing-page header {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    position: absolute;
    width: 100%;
    z-index: 100;
}

body.landing-page .container {
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-height: auto;
}

body.landing-page .container > .alert {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.landing-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--t-bg);
    color: var(--t-text);
}

[data-theme="light"] .landing-wrapper {
    background: #ffffff;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 7rem 2rem 5rem;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 0 0 32px 32px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 64, 81, 0.88) 0%, rgba(37, 77, 83, 0.82) 50%, rgba(29, 64, 81, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: white;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.hero-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* Social Proof Bar */
.social-proof-bar {
    background: transparent;
    padding: 2.5rem 2rem;
}

.social-proof-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.social-proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.social-proof-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-accent, #3eb489);
    letter-spacing: -0.03em;
    line-height: 1;
}

.social-proof-label {
    font-size: 0.85rem;
    color: var(--t-text-muted, var(--text-muted));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.social-proof-divider {
    width: 1px;
    height: 36px;
    background: var(--t-border, var(--border));
}

/* Features Showcase Section */
.features-showcase-section {
    padding: 5rem 2rem;
    background: transparent;
}

.features-showcase-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.features-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-showcase-item--reverse {
    direction: rtl;
}

.features-showcase-item--reverse > * {
    direction: ltr;
}

.features-showcase-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.features-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.features-icon-block {
    background-color: rgba(31, 41, 55, 0.95);
    background-image:
        linear-gradient(rgba(29, 64, 81, 0.9), rgba(29, 64, 81, 0.9)),
        url('/static/images/brand-pattern.png');
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    background-size: auto, 360px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.features-icon-main {
    width: 80px !important;
    height: 80px !important;
    color: rgba(255,255,255,0.9);
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
}

.features-icon-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.features-showcase-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint-dark);
    background: rgba(117, 201, 167, 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.features-showcase-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--t-heading, var(--dark));
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.features-showcase-text p {
    font-size: 1.05rem;
    color: var(--t-text-secondary, var(--text-muted));
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.features-showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.features-showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--t-text, var(--dark));
    font-weight: 500;
}

.features-showcase-list li i {
    color: var(--mint-dark);
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 2rem;
    background: transparent;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--t-surface-elevated);
    border: 1px solid var(--t-border, var(--border));
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--t-card-shadow, var(--shadow));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: var(--warning);
    fill: var(--warning);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--t-text, var(--dark));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--t-text, var(--dark));
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--t-text-muted, var(--text-muted));
}

.testimonial-card--accent {
    border-left: 3px solid #3eb489;
}

/* Landing Blog Section */
.landing-blog-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.landing-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.landing-blog-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--t-border, var(--border));
}

.landing-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.landing-blog-image {
    height: 160px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-blog-placeholder {
    color: #93c5fd;
}

.landing-blog-body {
    padding: 1.25rem;
}

.landing-blog-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.landing-blog-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--t-heading, var(--dark));
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.landing-blog-excerpt {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* What You Get Section */
.what-you-get-section {
    background: var(--t-surface);
    padding: 3rem 2rem 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.what-you-get-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.what-you-get-grid--6 {
    max-width: 1100px;
}

.what-you-get-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

.what-you-get-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: var(--t-surface-elevated);
    border: 1px solid var(--t-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .what-you-get-card {
    background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f8 100%);
    border-color: rgba(45, 95, 93, 0.1);
}

.what-you-get-card--link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.what-you-get-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t-card-shadow, 0 8px 24px rgba(26, 58, 82, 0.12));
    border-color: rgba(117,201,167,0.3);
}

.what-you-get-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--brand-accent, #3eb489);
}

.what-you-get-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--t-heading, var(--primary));
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.what-you-get-desc {
    font-size: 0.95rem;
    color: var(--t-text-secondary, var(--text-muted));
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .what-you-get-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .what-you-get-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .what-you-get-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .what-you-get-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .what-you-get-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--t-heading, var(--dark));
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--t-text-secondary, var(--text-muted));
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note {
    text-align: center;
    color: var(--t-text-muted, var(--text-muted));
    margin-top: 1rem;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--t-surface);
    border: 1px solid var(--t-border, var(--border));
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent, var(--secondary));
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--t-heading, var(--dark));
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--t-text-secondary, var(--text-muted));
    line-height: 1.7;
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 2rem;
    background: transparent;
    margin: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--t-heading, var(--dark));
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--t-text-muted, var(--text-muted));
    line-height: 1.7;
    font-size: 1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--t-surface);
    border: 2px solid var(--t-border, var(--border));
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border-color: var(--brand-accent, var(--secondary));
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow);
}

.pricing-badge-featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t-heading, var(--dark));
    margin-bottom: 1rem;
}

.pricing-amount {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--t-heading, var(--dark));
}

.period {
    font-size: 1.1rem;
    color: var(--t-text-muted, var(--text-muted));
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.875rem 0;
    color: var(--t-text-muted, var(--text-muted));
    font-size: 1rem;
    border-bottom: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Landing Page Pricing Grid */
.landing-pricing-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
}

.landing-pricing-grid .pricing-card {
    display: flex;
    flex-direction: column;
}

.landing-pricing-grid .pricing-features {
    flex: 1;
}

.landing-pricing-grid .pricing-card .btn {
    margin-top: auto;
}

.landing-pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--t-text-muted, var(--text-muted));
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .landing-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Landing Page Pricing Cards (lp-*) */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    align-items: stretch;
}
.lp-pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.lp-plan-card {
    background: var(--t-surface-elevated, #1a3340);
    border: 1px solid var(--t-border, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.lp-plan-card:hover {
    border-color: rgba(117,201,167,0.35);
    transform: translateY(-3px);
}

.lp-plan-featured {
    border-color: rgba(117,201,167,0.5);
    background: linear-gradient(160deg, rgba(117,201,167,0.08) 0%, var(--t-surface-elevated, #1a3340) 55%);
    box-shadow: 0 0 0 1px rgba(117,201,167,0.2) inset, 0 12px 32px rgba(0,0,0,0.3);
}

.lp-featured-ribbon {
    position: absolute;
    top: 1rem;
    right: 0;
    background: linear-gradient(135deg, #3eb489, #2d9e76);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem 0.25rem 0.75rem;
    border-radius: 4px 0 0 4px;
}

.lp-plan-top {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--t-border, rgba(255,255,255,0.08));
}

.lp-plan-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lp-plan-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--t-text, #e8f4f0);
}

.lp-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(117,201,167,0.15);
    color: var(--brand-accent);
    border: 1px solid rgba(117,201,167,0.3);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
}

.lp-badge-accent {
    background: rgba(117,201,167,0.25);
    border-color: rgba(117,201,167,0.5);
}

.lp-price {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #3eb489;
}

.lp-price span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--t-text-muted, #8aacb8);
    letter-spacing: 0;
}

.lp-plan-desc {
    margin: 0;
    font-size: 0.84rem;
    color: var(--t-text-secondary, #a0bec8);
    line-height: 1.55;
    min-height: 2.6em;
}

.lp-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.lp-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--t-text, #e8f4f0);
    line-height: 1.45;
}

.lp-features li::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233eb489' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lp-btn {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
    border: 2px solid transparent;
}

.lp-btn-outline {
    border-color: var(--t-border, rgba(255,255,255,0.12));
    color: var(--t-text, #e8f4f0);
    background: transparent;
}

.lp-btn-outline:hover {
    border-color: rgba(117,201,167,0.5);
    color: var(--brand-accent);
    background: rgba(117,201,167,0.07);
}

.lp-btn-primary {
    background: linear-gradient(135deg, #3eb489, #2d9e76);
    color: #fff;
    box-shadow: 0 4px 14px rgba(62,180,137,0.3);
}

.lp-btn-primary:hover {
    background: linear-gradient(135deg, #4ac296, #35b585);
    box-shadow: 0 6px 18px rgba(62,180,137,0.4);
    transform: translateY(-1px);
}

.lp-pricing-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.lp-pricing-footer p {
    font-size: 0.84rem;
    color: var(--t-text-secondary, #a0bec8);
    margin: 0 0 0.45rem;
}

.lp-pricing-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-accent);
    text-decoration: none;
}

.lp-pricing-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .lp-pricing-grid, .lp-pricing-grid-2 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .lp-plan-featured {
        order: -1;
    }
}

/* Light mode overrides for landing pricing */
[data-theme="light"] .landing-pricing-section {
    background: transparent;
}

[data-theme="light"] .lp-plan-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    color: #1a2b3c;
}

[data-theme="light"] .lp-plan-card:hover {
    border-color: rgba(62,180,137,0.45);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

[data-theme="light"] .lp-plan-top {
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .lp-plan-featured {
    background: linear-gradient(160deg, rgba(62,180,137,0.04) 0%, #ffffff 55%);
    border-color: rgba(62,180,137,0.45);
    box-shadow: 0 0 0 1px rgba(62,180,137,0.15) inset, 0 4px 16px rgba(0,0,0,0.06), 0 12px 32px rgba(62,180,137,0.08);
}

[data-theme="light"] .lp-plan-name {
    color: #111827;
}

[data-theme="light"] .lp-price {
    color: #1d8a63;
}

[data-theme="light"] .lp-price span {
    color: #6b7280;
}

[data-theme="light"] .lp-plan-desc {
    color: #4b5563;
}

[data-theme="light"] .lp-features li {
    color: #374151;
}

[data-theme="light"] .lp-btn-outline {
    border-color: #d1d5db;
    color: #1f2937;
    background: #ffffff;
}

[data-theme="light"] .lp-btn-outline:hover {
    border-color: rgba(62,180,137,0.5);
    color: #1d8a63;
    background: rgba(62,180,137,0.05);
}

[data-theme="light"] .lp-pricing-footer p {
    color: #6b7280;
}

[data-theme="light"] .lp-badge {
    background: rgba(62,180,137,0.1);
    color: #1d8a63;
    border-color: rgba(62,180,137,0.25);
}

[data-theme="light"] .lp-featured-ribbon {
    box-shadow: 0 2px 8px rgba(62,180,137,0.25);
}

/* Light mode overrides for landing sections */
[data-theme="light"] .social-proof-number {
    color: var(--brand-1);
}

[data-theme="light"] .final-cta-section .btn-outline {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

[data-theme="light"] .final-cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.3);
    color: #ffffff;
}

/* Partners Section */
.partners-section {
    padding: 4rem 2rem;
    background: transparent;
    text-align: center;
}

.partners-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.partner-logo-card {
    background: var(--t-surface);
    border-radius: 16px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo-img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}

/* Final CTA Section */
.final-cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    color: white;
    margin: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 0;
}

.final-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.04em;
}

.final-cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Landing Page */
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 1.5rem 3rem;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 400px;
    }
    
    .social-proof-inner {
        gap: 1.5rem;
    }
    
    .social-proof-number {
        font-size: 1.5rem;
    }
    
    .social-proof-divider {
        display: none;
    }
    
    .features-showcase-item,
    .features-showcase-item--reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr;
    }
    
    .features-showcase-section {
        padding: 3rem 1.5rem;
    }
    
    .features-showcase-text h3 {
        font-size: 1.4rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-section {
        padding: 3rem 1.5rem;
    }
    
    .features-section,
    .how-it-works-section,
    .pricing-section,
    .partners-section,
    .final-cta-section {
        padding: 3rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.05rem;
    }
    
    .features-grid,
    .steps-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .final-cta-section h2 {
        font-size: 2rem;
    }
    
    .final-cta-section p {
        font-size: 1.1rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .landing-blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 4.5rem 1rem 2.5rem;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .social-proof-inner {
        gap: 1rem;
    }
    
    .social-proof-stat {
        min-width: 70px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-section,
    .how-it-works-section,
    .pricing-section,
    .partners-section,
    .final-cta-section,
    .features-showcase-section,
    .testimonials-section {
        padding: 2.5rem 1rem;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        padding: 8rem 2rem 6rem;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Scroll-Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-child.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   INFO TOOLTIP STYLES
   ========================================== */

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: help;
}

.info-tooltip .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-tooltip:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(45, 95, 93, 0.4);
}

.info-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 280px;
    padding: 1rem;
    background: var(--t-surface);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.info-tooltip .tooltip-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.tooltip-content .tooltip-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--t-heading, var(--primary));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-content .tooltip-title-icon {
    font-size: 1rem;
}

.tooltip-content .tooltip-text {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.tooltip-content .tooltip-formula {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: var(--t-heading, var(--primary));
    text-align: center;
    font-weight: 600;
}

.tooltip-content .tooltip-examples {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.tooltip-content .tooltip-example {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.25rem 0;
}

.tooltip-content .tooltip-example-label {
    color: var(--t-text-secondary);
}

.tooltip-content .tooltip-example-value {
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.tooltip-content .tooltip-example-value.positive {
    background: #dcfce7;
    color: #166534;
}

.tooltip-content .tooltip-example-value.negative {
    background: #fef2f2;
    color: #991b1b;
}

.tooltip-content .tooltip-example-value.neutral {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
    .info-tooltip .tooltip-content {
        width: 240px;
        padding: 0.875rem;
        left: auto;
        right: -10px;
        transform: translateY(5px);
    }
    
    .info-tooltip:hover .tooltip-content {
        transform: translateY(0);
    }
    
    .info-tooltip .tooltip-content::before {
        left: auto;
        right: 20px;
        transform: none;
    }
}

/* Table header tooltip adjustments - position below header to avoid clipping */
th .info-tooltip {
    white-space: nowrap;
}

th .info-tooltip .tooltip-content {
    white-space: normal;
    text-align: left;
    bottom: auto;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
}

th .info-tooltip .tooltip-content::before {
    bottom: auto;
    top: -8px;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent white transparent;
}

th .info-tooltip:hover .tooltip-content {
    transform: translateX(-50%) translateY(0);
}

/* PWA Install Banner */
.footer-brand-logo {
    height: 28px;
    opacity: 0.85;
}

.footer-meta {
    margin-top: -0.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--t-surface-elevated);
    color: var(--t-text);
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    border-top: 1px solid var(--t-border);
}

.cookie-consent-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-copy {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}

.cookie-consent-copy a {
    color: var(--t-link);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

.cookie-consent-btn {
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.cookie-consent-btn--accept {
    background: #0d9488;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

.cookie-consent-btn--dismiss {
    background: transparent;
    color: var(--t-text-muted);
    border: 1px solid var(--t-border);
}

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pwa-install-text strong {
    font-size: 1rem;
}

.pwa-install-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.pwa-install-banner .btn-sm,
.pwa-install-banner button#pwa-install-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    background: #ffffff !important;
    color: var(--brand-1) !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    transition: all 0.2s ease;
}

.pwa-install-banner .btn-sm:hover,
.pwa-install-banner button#pwa-install-btn:hover {
    background: #f0f4f8 !important;
    color: var(--brand-1) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.pwa-dismiss {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pwa-dismiss:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .pwa-install-content {
        flex-wrap: wrap;
    }
    
    .pwa-install-icon {
        display: none;
    }
    
    .pwa-install-text {
        flex: 1 1 auto;
    }
    
    .pwa-install-banner .btn-sm {
        order: 3;
        flex: 1;
        margin-top: 0.5rem;
    }
}

.pwa-reinstall-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--t-surface-elevated);
    color: var(--t-text);
    border: 1px solid var(--t-border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    font-size: 14px;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 90vw;
    width: 360px;
    flex-direction: column;
}

.pwa-reinstall-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.pwa-reinstall-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.pwa-reinstall-body {
    flex: 1;
}

.pwa-reinstall-title {
    display: block;
    margin-bottom: 2px;
}

.pwa-reinstall-subtitle {
    font-size: 13px;
    opacity: 0.85;
}

.pwa-reinstall-dismiss {
    background: none;
    border: none;
    color: var(--t-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    align-self: flex-start;
}

.pwa-reinstall-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.pwa-reinstall-btn {
    flex: 1;
    background: var(--accent-mint, var(--brand-accent));
    color: var(--brand-1);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.marketplace-header h2 {
    color: var(--t-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.marketplace-subtitle {
    color: var(--t-text-secondary);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.marketplace-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.marketplace-filters {
    background: var(--t-surface);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-search {
    width: 100%;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--t-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--t-surface-elevated);
    color: var(--t-text);
}

.filter-input:focus {
    outline: none;
    border-color: var(--brand-accent);
}

/* Location row: city input + selects on same line */
.filter-location-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-location-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-location-icon {
    position: absolute;
    left: 0.85rem;
    width: 16px;
    height: 16px;
    color: var(--brand-accent);
    pointer-events: none;
    flex-shrink: 0;
}

.filter-location-input {
    padding-left: 2.3rem !important;
    flex: 1;
}

.btn-near-me {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--brand-accent);
    border-radius: 10px;
    background: transparent;
    color: var(--brand-accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.btn-near-me:hover:not(:disabled) {
    background: var(--brand-accent);
    color: #fff;
}

.btn-near-me:disabled {
    opacity: 0.55;
    cursor: default;
}

.filter-selects {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--t-border);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--t-surface-elevated);
    color: var(--t-text);
    min-width: 140px;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand-accent);
}

/* Results bar */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--t-text-secondary);
}

.results-count strong {
    color: var(--t-text);
}

.results--in {
    color: var(--t-text-secondary);
}

.results--in strong {
    color: var(--brand-accent);
}

/* Active filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: var(--t-surface);
    border: 1.5px solid var(--t-border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t-text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--brand-accent);
    background: var(--t-surface-elevated);
    color: var(--t-text);
}

.filter-chip-location {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.filter-chip-clear {
    border-color: transparent;
    background: transparent;
    color: var(--t-text-muted);
    font-weight: 500;
}

.filter-chip-clear:hover {
    color: var(--t-text);
    background: transparent;
    border-color: var(--t-border);
}

.chip-x {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.6;
}

/* City icon on cards */
.listing-city {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-city-icon {
    width: 12px;
    height: 12px;
    color: var(--brand-accent);
    flex-shrink: 0;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
    .marketplace-header h2 {
        font-size: 1.75rem;
    }
    .filter-selects {
        flex-direction: column;
    }
    .filter-select {
        width: 100%;
    }
    .filter-location-wrap {
        flex-wrap: wrap;
    }
    .filter-location-input {
        min-width: 0;
    }
    .results-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.marketplace-card {
    background: var(--t-surface);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.marketplace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.marketplace-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--t-surface-elevated);
}

.marketplace-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-1) 0%, #2d8a7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    font-weight: 600;
}

.price-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--brand-accent);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.marketplace-card-info {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.marketplace-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.condition-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--t-badge-default-bg);
    color: var(--t-badge-default-text);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--t-badge-info-bg);
    color: var(--t-badge-info-text);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.marketplace-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--t-text-secondary);
    font-size: 0.85rem;
}

.listing-time {
    color: #9ca3af;
    font-size: 0.8rem;
}

.marketplace-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-info {
    color: var(--t-text-secondary);
    font-weight: 500;
}

.marketplace-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--t-surface);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.marketplace-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.marketplace-empty-state h3 {
    color: var(--t-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.marketplace-empty-state p {
    color: var(--t-text-secondary);
    margin-bottom: 1.5rem;
}

.marketplace-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.detail-breadcrumb a {
    color: var(--t-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.detail-breadcrumb a:hover {
    color: var(--t-text);
}

.breadcrumb-sep {
    color: var(--t-text-subtle);
}

.detail-breadcrumb span:last-child {
    color: var(--t-text);
    font-weight: 500;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--t-surface);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    align-items: start;
}

@media (max-width: 768px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
}

.listing-photos {
    padding: 0;
    position: sticky;
    top: 0;
}

.photo-gallery {
    width: 100%;
    position: relative;
}

.photo-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--t-surface-elevated);
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--t-surface-elevated);
}

.photo-main-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--brand-1) 0%, #1e5c6b 50%, #2d8a7e 100%);
}

.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.placeholder-icon {
    font-size: 4rem;
    filter: grayscale(20%);
}

.placeholder-label {
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
    font-weight: 600;
}

.placeholder-sub {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
    font-weight: 400;
}

.photo-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
    background: var(--t-surface-elevated);
}

.photo-thumbs .thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.photo-thumbs .thumb:hover {
    opacity: 1;
}

.photo-thumbs .thumb.active {
    border-color: var(--brand-accent);
    opacity: 1;
}

.listing-info {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
}

.listing-header {
    margin-bottom: 0;
}

.listing-info h1 {
    font-size: 1.6rem;
    color: var(--t-text);
    margin: 0.5rem 0 0.65rem 0;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.listing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.price-cad {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--t-text-muted);
}

.listing-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.condition-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.condition-new {
    background: var(--t-badge-success-bg);
    color: var(--t-badge-success-text);
}

.condition-like_new {
    background: var(--t-badge-info-bg);
    color: var(--t-badge-info-text);
}

.condition-good {
    background: var(--t-badge-warning-bg);
    color: var(--t-badge-warning-text);
}

.condition-fair {
    background: var(--t-status-danger-bg);
    color: var(--t-status-danger-text);
}

.listing-divider {
    height: 1px;
    background: var(--t-border);
    margin: 1rem 0;
}

.listing-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detail-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.detail-chip-icon {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-surface-elevated);
    border-radius: 8px;
    flex-shrink: 0;
}

.detail-chip-label {
    display: block;
    font-size: 0.68rem;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    line-height: 1;
}

.detail-chip-value {
    display: block;
    font-size: 0.85rem;
    color: var(--t-text);
    font-weight: 600;
    line-height: 1.3;
}

.listing-description {
    margin-bottom: 0;
}

.listing-description h3 {
    font-size: 0.9rem;
    color: var(--t-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.listing-description p {
    color: var(--t-text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    font-size: 0.88rem;
}

.contact-seller-box {
    background: var(--t-status-success-bg);
    border: 1px solid var(--t-status-success-border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 0.5rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-header-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-surface);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.contact-header h3 {
    font-size: 0.95rem;
    color: var(--t-text);
    margin: 0;
    font-weight: 700;
}

.contact-subtext {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    margin: 0.1rem 0 0 0;
}

.contact-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--brand-1);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(26,58,82,0.2);
}

.contact-reveal-btn:hover {
    background: #2d8a7e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,138,126,0.3);
}

.contact-btn-icon {
    font-size: 0.9rem;
}

.contact-revealed {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--t-surface);
    color: var(--brand-1);
    border: 2px solid var(--brand-1);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-revealed:hover {
    background: var(--t-surface-elevated);
    text-decoration: none;
}

.no-contact {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
}

.owner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--t-border);
}

.owner-btn {
    font-size: 0.82rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.listing-safety-tip {
    text-align: center;
    color: var(--t-text-muted);
    font-size: 0.78rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
}

.listing-safety-tip strong {
    color: var(--t-text-secondary);
}

.marketplace-form-page {
    max-width: 700px;
    margin: 0 auto;
}

.marketplace-form-page h2 {
    color: var(--t-heading);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.form-subtitle {
    color: var(--t-text-secondary);
    margin-bottom: 1.5rem;
}

.marketplace-form {
    background: var(--t-surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.marketplace-form .form-group {
    margin-bottom: 1.25rem;
}

.marketplace-form label {
    display: block;
    font-weight: 600;
    color: var(--t-text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.marketplace-form input[type="text"],
.marketplace-form input[type="email"],
.marketplace-form input[type="tel"],
.marketplace-form input[type="number"],
.marketplace-form select,
.marketplace-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.marketplace-form input:focus,
.marketplace-form select:focus,
.marketplace-form textarea:focus {
    outline: none;
    border-color: var(--brand-1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.photo-upload-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .photo-upload-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

.photo-upload-slot {
    position: relative;
}

.photo-upload-slot input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #9ca3af;
    font-size: 0.85rem;
}

.photo-upload-label:hover {
    border-color: #2d8a7e;
    color: #2d8a7e;
}

.upload-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.photo-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--t-border);
}

.existing-photo {
    position: relative;
}

.remove-photo-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--danger);
    cursor: pointer;
    font-weight: 500 !important;
}

.remove-photo-label input {
    width: auto !important;
    position: static !important;
    opacity: 1 !important;
}

.my-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-listing-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--t-surface);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.my-listing-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.my-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-listing-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-1), #2d8a7e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
}

.my-listing-info {
    flex: 1;
    min-width: 0;
}

.my-listing-info h3 {
    font-size: 1.1rem;
    color: var(--t-heading);
    margin: 0 0 0.35rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-listing-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-badge-inline {
    font-weight: 700;
    color: var(--brand-accent);
    font-size: 1rem;
}

.status-badge-active {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--t-badge-active-bg);
    color: var(--t-badge-active-text);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-sold {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--t-status-danger-bg);
    color: var(--t-status-danger-text);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.my-listing-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .my-listing-card {
        flex-direction: column;
        align-items: stretch;
    }
    .my-listing-thumb {
        width: 100%;
        height: 150px;
    }
    .my-listing-actions {
        justify-content: stretch;
    }
    .my-listing-actions .btn {
        flex: 1;
        text-align: center;
    }
}

.marketplace-cta-section {
    background: linear-gradient(135deg, var(--brand-1) 0%, #2d8a7e 100%);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem 0;
    color: #fff;
}
.marketplace-cta-content {
    text-align: center;
}
.marketplace-cta-text h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: #fff;
}
.marketplace-cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.marketplace-cta-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.marketplace-cta-section .btn-primary {
    background: #fff;
    color: var(--brand-1);
    font-weight: 600;
}
.marketplace-cta-section .btn-primary:hover {
    background: #f0f0f0;
}
.marketplace-cta-categories {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.mp-cat-tag {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
/* ── Scoring Spotlight Section ── */
.scoring-spotlight-section {
    padding: 5rem 2rem;
    background: transparent;
}
.scoring-spotlight-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.scoring-spotlight-text h3 { font-size: 1.6rem; margin: 0.5rem 0 0.75rem; }
.scoring-spotlight-text p { color: var(--t-text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.scoring-steps { display: flex; flex-direction: column; gap: 0.65rem; }
.scoring-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--t-text-secondary, var(--t-text-muted));
}
.scoring-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mint);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scoring-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--t-surface-2, var(--surface-2));
    border: 1px solid var(--t-border, var(--border-color));
    border-radius: 16px;
    padding: 1.75rem;
}
.scoring-compare-col { display: flex; flex-direction: column; gap: 0.5rem; }
.scoring-compare-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    opacity: 0.6;
}
.scoring-compare-before .scoring-compare-label { color: var(--t-status-danger-text, #f87171); }
.scoring-compare-after .scoring-compare-label { color: var(--mint); }
.scoring-compare-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--t-text-muted);
    background: var(--t-surface-1, var(--surface-1));
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
}
.scoring-compare-after .scoring-compare-item { color: var(--t-text); }
.scoring-compare-before .scoring-compare-item { opacity: 0.7; }
@media (max-width: 768px) {
    .scoring-spotlight-section { padding: 3rem 1.5rem; }
    .scoring-spotlight-inner { grid-template-columns: 1fr; gap: 2rem; }
    .scoring-compare { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Landing Dual CTA (Marketplace + Coaching) ── */
.landing-dual-cta-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.landing-dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.landing-dual-cta-card {
    border-radius: 16px;
    padding: 2.5rem 2rem;
    color: #fff;
    text-align: center;
}

.landing-dual-cta-card--market {
    background: linear-gradient(135deg, var(--brand-1) 0%, #2d8a7e 100%);
}

.landing-dual-cta-card--coach {
    background: linear-gradient(135deg, var(--brand-1) 0%, #2d8a7e 100%);
}

.landing-dual-cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.landing-dual-cta-card h3 {
    font-size: 1.6rem;
    margin: 0.25rem 0 0.75rem;
    color: #fff;
}

.landing-dual-cta-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.landing-dual-cta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.landing-dual-cta-tags span {
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.landing-dual-cta-card .btn-primary {
    background: #fff;
    color: var(--brand-1);
    font-weight: 600;
}

.landing-dual-cta-card--coach .btn-primary {
    color: var(--brand-1);
}

.landing-dual-cta-card .btn-primary:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .landing-dual-cta-grid {
        grid-template-columns: 1fr;
    }
    .landing-dual-cta-card {
        padding: 2rem 1.5rem;
    }
}

.photo-upload-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.btn-photo-option {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: var(--brand-1);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}
.btn-photo-option:hover {
    background: #f0f0f0;
}
.btn-camera {
    background: #2d8a7e;
    color: #fff;
    border-color: #2d8a7e;
}
.btn-camera:hover {
    background: #257a6f;
}
.photo-preview {
    cursor: pointer;
}

.admin-sponsors-page {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-sponsors-page h1 {
    color: var(--t-heading);
    font-size: 2rem;
    margin: 0;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-subtitle {
    color: var(--t-text-secondary);
    margin: 0.25rem 0 0 0;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.sponsor-card {
    background: var(--t-surface);
    border-radius: 16px;
    box-shadow: var(--t-card-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.sponsor--inactive {
    opacity: 0.6;
}

.sponsor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.5rem;
}

.sponsor-logo-preview {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.sponsor-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-1), #2d8a7e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status--active {
    background: var(--t-badge-active-bg);
    color: var(--t-badge-active-text);
}

.status--inactive {
    background: var(--t-badge-inactive-bg);
    color: var(--t-badge-inactive-text);
}

.sponsor-card-body {
    padding: 0.5rem 1.25rem 1rem;
}

.sponsor-card-body h3 {
    font-size: 1.1rem;
    color: var(--t-heading);
    margin: 0 0 0.4rem 0;
}

.sponsor-placement-badge {
    display: inline-block;
    background: var(--t-badge-league-bg);
    color: var(--t-badge-league-text);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sponsor-desc {
    color: var(--t-text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.sponsor-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.sponsor-stat {
    display: flex;
    flex-direction: column;
}

.sponsor-stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.sponsor-stat-label {
    font-size: 0.65rem;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-dates {
    font-size: 0.75rem;
    color: var(--t-text-muted);
}

.sponsor-card-actions {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: var(--t-surface-elevated);
    border-top: 1px solid var(--t-border);
}

.btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
}

.empty-state-card {
    background: var(--t-surface);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-state-card h3 {
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.empty-state-card p {
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.current-logo-preview {
    margin-bottom: 0.75rem;
}

.current-logo-preview img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    background: var(--t-surface);
}

.remove-logo-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 0.4rem;
    cursor: pointer;
}

.form-help {
    display: block;
    font-size: 0.78rem;
    color: var(--t-text-muted);
    margin-top: 0.25rem;
}

.sponsor-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .sponsor-form-row {
        grid-template-columns: 1fr;
    }
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.info-tooltip:hover {
    background: var(--brand-1);
    color: #fff;
}
.info-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    font-style: normal;
    font-family: inherit;
    line-height: 1.5;
    white-space: normal;
    width: 240px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    transition: all 0.2s ease;
    pointer-events: none;
}
.info-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--brand-1);
}
.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
@media (max-width: 600px) {
    .info-tooltip .tooltip-text {
        width: 200px;
        left: auto;
        right: -10px;
        transform: none;
    }
    .info-tooltip .tooltip-text::after {
        left: auto;
        right: 16px;
        transform: none;
    }
}

label .info-tooltip {
    position: relative;
    top: -1px;
}

.form-section-intro {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--brand-1);
    line-height: 1.5;
}
.form-section-intro strong {
    color: var(--t-heading);
}

.form-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-step-number {
    background: var(--brand-1);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.sponsor-banner-section {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.sponsor-banner-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t-text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.sponsor-banners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sponsor-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    background: var(--t-surface-elevated);
    border: 1px solid var(--t-border-strong);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.sponsor-banner:hover {
    background: var(--t-hover-bg);
    border-color: var(--t-border-strong);
}

.sponsor-banner img {
    max-height: 36px;
    max-width: 160px;
    object-fit: contain;
    filter: var(--t-sponsor-img-filter);
    opacity: var(--t-sponsor-img-opacity);
    transition: opacity 0.2s;
}

.sponsor-banner:hover img {
    opacity: 1;
}

.sponsor-banner-name {
    color: var(--t-text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-page {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--t-border-strong);
}

.admin-page-title {
    color: var(--t-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1.2;
}

.admin-page-subtitle {
    color: var(--t-text-muted);
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
    font-weight: 400;
}

.admin-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.admin-metric-card {
    background: var(--t-surface);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--t-border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.admin-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-metric-icon--users {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.admin-metric-icon--revenue {
    background: linear-gradient(135deg, #d1fae5, #a3dcc4);
}

.admin-metric-icon--content {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.admin-metric-icon--market {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.admin-metric-icon--games {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.admin-metric-body {
    flex: 1;
    min-width: 0;
}

.admin-metric-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--t-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-metric-label {
    font-size: 0.7rem;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 0.2rem;
}

.admin-metric-sub {
    font-size: 0.75rem;
    color: #2a9d8f;
    font-weight: 600;
    margin-top: 0.35rem;
}

.admin-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--t-surface);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t-text-secondary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--t-border);
}

.admin-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-chip-dot--blue {
    background: var(--info);
}

.admin-chip-dot--gray {
    background: #94a3b8;
}

.admin-chip-dot--pink {
    background: #ec4899;
}

.admin-chip-dot--red {
    background: var(--danger);
}

.admin-chip-text {
    white-space: nowrap;
}

.admin-section-title {
    color: var(--t-heading-section);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.finance-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.finance-grid--secondary {
    margin-top: 1rem;
}

.finance-section-title {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.finance-section-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--t-text-muted);
}

.finance-form {
    display: grid;
    gap: 0.75rem;
}

.finance-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
}

.finance-field {
    display: grid;
    gap: 0.35rem;
}

.finance-field--full {
    grid-column: 1 / -1;
}

.finance-form label {
    font-size: 0.8rem;
    color: var(--t-text-muted);
}

.finance-form input,
.finance-form textarea {
    width: 100%;
    border: 1px solid var(--t-border);
    background: var(--t-surface-elevated);
    color: var(--t-text);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
}

.finance-form input:focus,
.finance-form textarea:focus {
    outline: none;
    border-color: var(--t-brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.finance-submit-btn {
    width: 100%;
}

.finance-metrics {
    display: grid;
    gap: 0.55rem;
}

.finance-metric {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--t-border);
    border-radius: 8px;
    background: var(--t-surface-elevated);
    font-size: 0.85rem;
}

.finance-metric span {
    color: var(--t-text-muted);
}

.finance-metric strong {
    color: var(--t-heading);
    font-weight: 700;
}

.finance-disclaimer {
    margin-top: 0.75rem;
    color: var(--t-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.finance-approval-list {
    display: grid;
    gap: 0.65rem;
}

.finance-approval-card {
    border: 1px solid var(--t-border);
    border-radius: 10px;
    background: var(--t-surface-elevated);
    padding: 0.75rem;
}

.finance-approval-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.finance-approval-badge {
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.finance-approval-badge--sensitive {
    background: var(--t-status-warning-bg);
    color: var(--t-status-warning-text);
    border: 1px solid var(--t-status-warning-border);
}

.finance-approval-badge--standard {
    background: var(--t-status-info-bg);
    color: var(--t-status-info-text);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.finance-approval-time {
    font-size: 0.74rem;
    color: var(--t-text-muted);
}

.finance-approval-meta {
    font-size: 0.78rem;
    color: var(--t-text-muted);
}

.finance-approval-reason {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--t-text);
}

.finance-approval-form {
    display: grid;
    gap: 0.5rem;
}

.finance-approval-form textarea,
.finance-approval-form input {
    width: 100%;
    border: 1px solid var(--t-border);
    background: var(--t-surface);
    color: var(--t-text);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
}

.finance-approval-form textarea:focus,
.finance-approval-form input:focus {
    outline: none;
    border-color: var(--t-brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.finance-approval-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.finance-empty {
    color: var(--t-text-muted);
    font-size: 0.84rem;
    margin: 0;
}

.finance-audit-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--t-border);
    border-radius: 10px;
}

.finance-audit-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.finance-audit-table th,
.finance-audit-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--t-border);
    font-size: 0.82rem;
}

.finance-audit-table thead th {
    background: var(--t-surface-elevated);
    color: var(--t-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finance-audit-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 900px) {
    .finance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .finance-form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-recent-section {
    margin-bottom: 2rem;
}

.admin-recent-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.admin-recent-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--t-surface);
    border-radius: 12px;
    border: 1px solid var(--t-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    flex-shrink: 0;
}

.admin-recent-info {
    min-width: 0;
}

.admin-recent-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--t-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-recent-email {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-recent-date {
    font-size: 0.7rem;
    color: #2a9d8f;
    font-weight: 600;
    margin-top: 0.15rem;
}

.admin-filter-toolbar {
    background: var(--t-surface);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--t-border);
}

.admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.admin-filter-group {
    min-width: 130px;
}

.admin-filter-group--search {
    flex: 1;
    min-width: 200px;
}

.admin-filter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--t-text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-filter-input,
.admin-filter-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--t-input-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--t-input-text);
    background: var(--t-surface-elevated);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.admin-filter-input:focus,
.admin-filter-select:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
    background: var(--t-surface);
}

.admin-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-filter-btn {
    padding: 0.55rem 1.25rem !important;
    font-size: 0.875rem !important;
}

.admin-results-header {
    margin-bottom: 0.75rem;
}

.admin-results-header h3 {
    color: var(--t-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--t-surface);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--t-border);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--brand-1) 0%, #244d68 100%);
}

.admin-table thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    border-bottom: none;
}

.admin-th-center {
    text-align: center !important;
}

.admin-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--t-table-border);
}

.admin-table tbody tr:nth-child(even) {
    background: var(--t-table-row-alt);
}

.admin-table tbody tr:hover {
    background: var(--t-surface-elevated);
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: none;
}

.admin-td-user {
    min-width: 220px;
}

.admin-td-center {
    text-align: center;
}

.admin-td-date {
    color: var(--t-text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1), #2a9d8f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-avatar--admin {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.admin-avatar--small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.admin-user-info {
    min-width: 0;
}

.admin-user-name {
    font-weight: 600;
    color: var(--t-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.admin-user-email {
    color: var(--t-text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-content-pills {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-badge--admin {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 0.15rem;
    display: inline-block;
}

.admin-badge--league {
    background: var(--t-badge-league-bg);
    color: var(--t-badge-league-text);
}

.admin-badge--tournament {
    background: var(--t-badge-tournament-bg);
    color: var(--t-badge-tournament-text);
}

.admin-badge--ladder {
    background: var(--t-badge-ladder-bg);
    color: var(--t-badge-ladder-text);
}

.admin-badge--listing {
    background: var(--t-badge-listing-bg);
    color: var(--t-badge-listing-text);
}

.admin-badge--subscribed {
    background: var(--t-badge-subscribed-bg);
    color: var(--t-badge-subscribed-text);
}

.admin-badge--premium {
    background: var(--t-badge-premium-bg);
    color: var(--t-badge-premium-text);
}

.admin-badge--free {
    color: #cbd5e1;
    background: transparent;
    padding: 0;
}

.admin-text-muted {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.admin-limit-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
}

.admin-limit-input {
    width: 55px;
    padding: 0.25rem 0.35rem;
    border: 1.5px solid var(--t-input-border);
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    font-family: inherit;
    background: var(--t-surface-elevated);
    transition: border-color 0.2s;
}

.admin-limit-input:focus {
    outline: none;
    border-color: #2a9d8f;
}

.admin-limit-btn {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.75rem !important;
}

.admin-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-action-btn {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.78rem !important;
}

.admin-action-btn--stats {
    background: linear-gradient(135deg, #0f2b3c, #2a9d8f);
    color: #fff;
    border: none;
}

.admin-action-btn--stats:hover {
    background: linear-gradient(135deg, var(--brand-1), #22857a);
}

.admin-delete-form {
    display: inline;
}

.user-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.user-card {
    background: var(--t-surface);
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--t-border);
    padding: 1.25rem;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.user-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.user-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-card-avatar--admin {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
}

.user-card-identity {
    min-width: 0;
    flex: 1;
}

.user-card-name {
    font-weight: 600;
    color: var(--t-text);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-email {
    color: var(--t-text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.user-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--t-border);
    border-bottom: 1px solid var(--t-border);
}

.user-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.user-card-meta-label {
    color: var(--t-text-muted);
    font-weight: 500;
}

.user-card-meta-value {
    color: var(--t-text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.user-card-meta-none {
    color: var(--t-text-subtle);
    font-size: 0.78rem;
}

.user-card-limit-form {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-card-limit-input {
    width: 50px;
    padding: 0.2rem 0.3rem;
    border: 1.5px solid var(--t-input-border);
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    font-family: inherit;
    background: var(--t-surface-elevated);
    transition: border-color 0.2s;
}

.user-card-limit-input:focus {
    outline: none;
    border-color: #2a9d8f;
}

.user-card-limit-btn {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.72rem !important;
}

.user-card-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.user-card-actions .btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    flex: 1;
    text-align: center;
}

.user-card-btn--stats {
    background: linear-gradient(135deg, #0f2b3c, #2a9d8f);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
}

.user-card-btn--stats:hover {
    background: linear-gradient(135deg, var(--brand-1), #22857a);
}

.user-card-delete-form {
    display: contents;
}

.user-cards-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem 0;
}

.user-cards-page-info {
    color: #64748b;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .user-cards-grid {
        grid-template-columns: 1fr;
    }
}

.admin-empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--t-surface);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--t-border);
}

.admin-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.admin-empty-text {
    color: var(--t-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.admin-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.admin-modal {
    background: var(--t-surface);
    padding: 2rem;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: adminModalIn 0.2s ease;
}

@keyframes adminModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-modal-title {
    color: var(--t-heading);
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.admin-modal-subtitle {
    color: var(--t-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.admin-modal-field {
    margin-bottom: 1rem;
}

.admin-modal-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--t-text-secondary);
    font-size: 0.85rem;
}

.admin-modal-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid var(--t-input-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--t-surface-elevated);
}

.admin-modal-input:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
    background: var(--t-surface);
}

.admin-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.admin-modal-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .admin-page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .admin-metric-card {
        padding: 1rem;
    }

    .admin-metric-value {
        font-size: 1.5rem;
    }

    .admin-metric-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .admin-chips-row {
        gap: 0.5rem;
    }

    .admin-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .admin-recent-grid {
        overflow-x: auto;
    }

    .admin-filter-form {
        flex-direction: column;
    }

    .admin-filter-group,
    .admin-filter-group--search {
        min-width: 100%;
    }

    .admin-filter-actions {
        width: 100%;
    }

    .admin-filter-btn {
        flex: 1;
    }

    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 800px;
    }
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

.admin-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.admin-quicklink-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--t-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.admin-quicklink-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(42, 157, 143, 0.4);
    transform: translateY(-1px);
}

.admin-quicklink-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--t-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.admin-quicklink-body {
    flex: 1;
    min-width: 0;
}

.admin-quicklink-title {
    color: var(--t-heading);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.admin-quicklink-desc {
    color: var(--t-text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.admin-quicklink-arrow {
    color: rgba(42, 157, 143, 0.8);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-dash-section-header {
    margin-bottom: 0.75rem;
}

.admin-dash-section-header--sub {
    margin-top: 2rem;
}

.admin-dash-tabs {
    display: flex;
    background: var(--t-surface);
    border-radius: 10px;
    padding: 0.35rem;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.admin-dash-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    text-align: center;
    color: var(--t-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-dash-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-dash-tab--active {
    background: var(--t-surface);
    color: var(--t-text);
}

.admin-dash-tab-count {
    background: rgba(255, 255, 255, 0.18);
    padding: 0.1rem 0.45rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-dash-tab--active .admin-dash-tab-count {
    background: var(--brand-1);
    color: #fff;
}

.admin-dash-content {
    min-height: 100px;
}

.admin-dash-items {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-dash-item {
    background: var(--t-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.admin-dash-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-dash-item-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.admin-dash-item-img-wrap {
    flex-shrink: 0;
}

.admin-dash-item-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-dash-item-img--placeholder {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.3), rgba(26, 58, 82, 0.5));
}

.admin-dash-item-info {
    flex: 1;
    min-width: 0;
}

.admin-dash-item-info--full {
    width: 100%;
}

.admin-dash-item-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.admin-dash-item-name {
    color: var(--t-text);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dash-item-badges {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-dash-item-meta {
    color: var(--t-text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dash-item-meta-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.admin-dash-meta-tag {
    color: var(--t-text-muted);
    font-size: 0.78rem;
}

.admin-dash-item-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.admin-dash-delete-form {
    display: inline;
}

.admin-badge--private {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-badge--free {
    background: rgba(42, 157, 143, 0.15);
    color: var(--brand-accent);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-badge--owner {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
}

.admin-badge--player {
    background: linear-gradient(135deg, var(--info), #2563eb);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-badge--status-registration_open,
.admin-badge--status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
}

.admin-badge--status-in_progress {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
}

.admin-badge--status-completed {
    background: rgba(156, 163, 175, 0.15);
    color: #d1d5db;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
}

.admin-chip-dot--green {
    background: var(--brand-accent);
}

.admin-chip-dot--orange {
    background: var(--warning);
}

/* Regular user dashboard upsell & stats link */
.dash-upsell {
    background: linear-gradient(135deg, #0f2b3c 0%, #1a4a5e 40%, #2a9d8f 100%);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.dash-upsell::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dash-upsell-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-upsell-body {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.dash-upsell-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.dash-upsell-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.45;
}

.dash-upsell-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #0f2b3c;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.83rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dash-upsell-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.dash-stats-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-stats-link:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}

.dash-stats-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dash-stats-link-body {
    flex: 1;
    min-width: 0;
}

.dash-stats-link-title {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 0.88rem;
}

.dash-stats-link-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}

.dash-stats-link-arrow {
    color: var(--brand-accent);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .admin-quicklinks {
        grid-template-columns: 1fr;
    }

    .admin-dash-tabs {
        flex-direction: column;
    }

    .admin-dash-tab {
        padding: 0.6rem 0.75rem;
    }

    .admin-dash-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dash-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-header-actions {
        flex-wrap: wrap;
    }

    .dash-upsell {
        flex-direction: column;
        text-align: center;
    }
}

.nav-notify-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--brand-1);
    box-sizing: content-box;
    margin-top: 2px;
}
.dropdown-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53e3e;
    margin-left: 6px;
    vertical-align: middle;
}
.dropdown-item-badge {
    margin-left: auto;
    padding: 0.15rem 0.45rem;
    border-radius: 0.4rem;
    background: var(--t-status-info-bg, rgba(59, 130, 246, 0.2));
    color: var(--t-status-info-text, var(--info));
    font-size: 0.75rem;
    font-weight: 600;
}

.message-seller-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.message-seller-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--t-input-border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.message-seller-input:focus {
    outline: none;
    border-color: var(--brand-accent, var(--primary));
}
.message-seller-btn {
    white-space: nowrap;
}

/* ============================================
   MESSAGES INBOX
   ============================================ */
.msg-list {
    background: var(--t-surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--t-border);
    overflow: hidden;
}
.msg-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--t-border);
    transition: background 0.15s;
}
.msg-row:last-child {
    border-bottom: none;
}
.msg-row:hover {
    background: var(--t-surface-elevated);
}
.msg-row-unread {
    background: var(--t-status-info-bg);
}
.msg-row-unread:hover {
    background: #e6f0fd;
}
.msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.msg-body {
    flex: 1;
    min-width: 0;
}
.msg-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.msg-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--t-text);
}
.msg-time {
    font-size: 0.78rem;
    color: var(--t-text-muted);
    flex-shrink: 0;
}
.msg-listing-line {
    font-size: 0.82rem;
    color: var(--t-text-muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-sold-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--danger);
    margin-left: 4px;
}
.msg-preview {
    font-size: 0.85rem;
    color: var(--t-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-row-unread .msg-preview {
    color: var(--t-text);
    font-weight: 500;
}
.msg-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--info);
    flex-shrink: 0;
}

.msg-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--t-surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--t-border);
}
.msg-empty-state h3 {
    color: var(--t-heading);
    margin-bottom: 0.5rem;
}
.msg-empty-state p {
    color: var(--t-text-muted);
    margin-bottom: 1.5rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CHAT CONVERSATION
   ============================================ */
.chat-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    min-height: 420px;
}
.chat-top-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}
.chat-back {
    color: var(--t-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.chat-back:hover {
    color: var(--t-text);
}
.chat-who-name {
    color: var(--t-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-listing-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--t-surface);
    border-radius: 12px;
    border: 1px solid var(--t-border);
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s;
}
.chat-listing-bar:hover {
    box-shadow: var(--shadow);
}
.chat-listing-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-listing-img-empty {
    background: var(--t-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.chat-listing-info {
    flex: 1;
    min-width: 0;
}
.chat-listing-name {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--t-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-listing-price {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}
.chat-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.chat-status--active {
    background: #ecfdf5;
    color: var(--success);
}
.chat-status-sold {
    background: #fef2f2;
    color: var(--danger);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-date-sep {
    text-align: center;
    margin: 1rem 0 0.5rem;
}
.chat-date-sep span {
    font-size: 0.72rem;
    color: var(--t-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg-mine {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-theirs {
    align-self: flex-start;
    background: var(--t-surface);
    color: var(--t-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--t-border);
}
.chat-msg-time {
    font-size: 0.68rem;
    margin-top: 3px;
    opacity: 0.6;
}
.chat-msg-mine .chat-msg-time {
    text-align: right;
    color: rgba(255,255,255,0.7);
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--t-border);
    margin-top: auto;
}
.chat-form-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--t-input-border);
    border-radius: 10px;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}
.chat-form-input:focus {
    border-color: var(--brand-accent, var(--primary));
}
.chat-form-btn {
    flex-shrink: 0;
}

.chat-ended-notice {
    padding: 1rem;
    text-align: center;
    background: var(--t-surface-elevated);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--t-text-secondary);
    margin-top: auto;
}

@media (max-width: 600px) {
    .msg-row {
        padding: 1rem;
    }
    .msg-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .chat-container {
        height: calc(100vh - 130px);
    }
    .chat-msg {
        max-width: 85%;
    }
    .chat-form {
        flex-wrap: wrap;
    }
    .chat-form-input {
        min-width: 0;
    }
    .message-seller-form {
        flex-direction: column;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 768px) {
    .browse-hero {
        padding: 2rem 1rem;
    }
    .browse-hero h1 {
        font-size: 1.75rem;
    }
    .browse-hero p {
        font-size: 0.95rem;
    }
    .browse-search-box {
        padding: 0 0.5rem;
    }
    .browse-search-box input {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    .browse-results-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .browse-tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .browse-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .view-toggle {
        align-self: flex-end;
    }
    .tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.5rem;
    }
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.55rem 0.85rem;
    }
    .league-card-image-admin {
        height: 140px;
    }
    .admin-league-card-info {
        padding: 1rem;
    }
    .admin-league-card-info h3 {
        font-size: 1.1rem;
    }

    .marketplace-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .marketplace-header h2 {
        font-size: 1.75rem;
    }
    .marketplace-header-actions {
        width: 100%;
    }
    .marketplace-header-actions .btn {
        flex: 1;
        text-align: center;
    }
    .marketplace-filters {
        padding: 1rem;
    }
    .filter-selects {
        flex-direction: column;
    }
    .filter-select {
        width: 100%;
        min-width: 100%;
    }
    .marketplace-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .marketplace-card-image {
        height: 150px;
    }
    .marketplace-card-info {
        padding: 0.75rem;
    }
    .marketplace-card-info h3 {
        font-size: 0.9rem;
    }
    .marketplace-cta-section {
        padding: 2rem 1.25rem;
    }
    .marketplace-cta-text h2 {
        font-size: 1.5rem;
    }

    .listing-layout {
        grid-template-columns: 1fr;
    }
    .listing-info {
        padding: 1.25rem;
    }
    .listing-info h1 {
        font-size: 1.3rem;
    }
    .listing-price {
        font-size: 1.75rem;
    }
    .listing-photos {
        position: static;
    }
    .contact-buttons {
        flex-direction: column;
    }
    .contact-buttons .btn,
    .contact-reveal-btn {
        width: 100%;
        justify-content: center;
    }
    .owner-actions {
        flex-direction: column;
    }
    .owner-actions .btn,
    .owner-actions form {
        width: 100%;
    }
    .owner-actions form .btn {
        width: 100%;
    }

    .marketplace-form {
        padding: 1.25rem;
    }
    .marketplace-form-page h2 {
        font-size: 1.5rem;
    }
    .photo-upload-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .msg-list {
        border-radius: 12px;
    }
    .msg-row {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    .msg-name {
        font-size: 0.88rem;
    }
    .msg-listing-line {
        font-size: 0.78rem;
    }
    .msg-preview {
        font-size: 0.8rem;
    }
    .msg-empty-state {
        padding: 2.5rem 1.5rem;
    }

    .chat-container {
        height: calc(100vh - 120px);
    }
    .chat-top-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .chat-who-name {
        font-size: 0.95rem;
    }
    .chat-listing-bar {
        padding: 0.6rem 0.75rem;
    }
    .chat-listing-name {
        font-size: 0.82rem;
    }
    .chat-form-input {
        font-size: 0.88rem;
        padding: 0.65rem 0.75rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .pricing-card {
        padding: 1.5rem;
    }

    .account-settings-page {
        max-width: 100%;
    }
    .settings-card {
        padding: 1.25rem;
    }

    .league-hero,
    .tournament-hero,
    .ladder-hero {
        padding: 1.5rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .league-hero h1,
    .tournament-hero h1,
    .ladder-hero h1 {
        font-size: 1.5rem;
    }
    .league-hero-actions,
    .tournament-hero-actions,
    .ladder-hero-actions {
        width: 100%;
        flex-direction: column;
    }
    .league-hero-actions .btn,
    .tournament-hero-actions .btn,
    .ladder-hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .week-selector {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .week-selector a,
    .week-selector span {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .tournament-bracket {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .bracket-round {
        min-width: 200px;
    }
    .pool-group {
        overflow-x: auto;
    }

    .ladder-courts-grid {
        grid-template-columns: 1fr;
    }

    .player-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .player-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .admin-page-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .admin-page-title {
        font-size: 1.5rem;
    }
    .admin-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .admin-header-actions .btn {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    .admin-quicklinks {
        grid-template-columns: 1fr;
    }
    .admin-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .admin-metric-card {
        padding: 0.875rem;
        gap: 0.6rem;
    }
    .admin-metric-value {
        font-size: 1.35rem;
    }
    .admin-metric-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .edit-league-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .edit-league-form {
        padding: 1.25rem;
    }

    .admin-manage-games-page .game-card,
    .admin-section .game-card {
        padding: 1rem;
    }

    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    .sponsor-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
    .marketplace-card-image {
        height: 180px;
    }
    .marketplace-card-info {
        padding: 1rem;
    }
    .marketplace-card-info h3 {
        font-size: 1rem;
        white-space: normal;
    }
    .browse-hero h1 {
        font-size: 1.4rem;
    }
    .browse-hero p {
        font-size: 0.85rem;
    }
    .browse-results-bar .count-text {
        font-size: 0.85rem;
    }
    .listing-info {
        padding: 1rem;
    }
    .listing-info h1 {
        font-size: 1.15rem;
    }
    .listing-price {
        font-size: 1.5rem;
    }

    .player-stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-analytics-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-dash-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .admin-dash-item-actions {
        flex-wrap: wrap;
    }
    .admin-dash-item-actions .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .chat-msg {
        max-width: 90%;
        font-size: 0.88rem;
    }
    .msg-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .marketplace-header-actions {
        flex-direction: column;
    }
    .marketplace-header-actions .btn {
        width: 100%;
    }
}

.coach-form-page {
    max-width: 740px;
    margin: 0 auto;
}

.coach-form-card {
    background: var(--t-surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.coach-form-card .form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--t-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coach-form-card .form-section-title .section-icon {
    font-size: 1.1rem;
}

.coach-form-card + .coach-form-card {
    margin-top: 0;
}

.coach-form-card .form-group {
    margin-bottom: 1.25rem;
}

.coach-form-card .form-group:last-child {
    margin-bottom: 0;
}

.checkbox-grid {
    display: grid;
    gap: 0.6rem;
}

.checkbox-grid.cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.checkbox-grid.cols-6 {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: var(--t-surface-elevated);
    border: 1.5px solid var(--t-input-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t-text);
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-option:hover {
    background: var(--t-surface);
    border-color: var(--brand-accent-light, rgba(255,255,255,0.3));
}

.checkbox-option:has(input:checked) {
    background: var(--t-status-success-bg);
    border-color: var(--brand-accent);
    color: var(--t-text);
}

.checkbox-option input[type="checkbox"] {
    accent-color: var(--brand-accent, var(--secondary));
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.coach-photo-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--t-border-strong);
    margin-bottom: 0.75rem;
}

.coach-status-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: var(--t-status-success-bg);
    border: 1.5px solid var(--t-status-success-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.coach-status-toggle:hover {
    background: var(--t-status-success-bg);
}

.coach-status-toggle input[type="checkbox"] {
    accent-color: #16a34a;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.coach-status-toggle .status-label {
    font-weight: 600;
    color: var(--t-text);
    font-size: 0.95rem;
}

.coach-status-toggle .status-desc {
    font-size: 0.8rem;
    color: var(--t-text-secondary);
    margin-top: 0.1rem;
}

@media (max-width: 600px) {
    .coach-form-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    .checkbox-grid.cols-3 {
        grid-template-columns: 1fr;
    }
    .checkbox-grid.cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.onboarding-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.progress-step span {
    font-size: 0.75rem;
    color: var(--t-text-muted, var(--text-muted));
    font-weight: 500;
    transition: color 0.3s;
}

.progress-step.active span {
    color: var(--brand-accent, var(--secondary));
    font-weight: 700;
}

.progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--t-border, var(--border));
    color: var(--t-text-muted, var(--text-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.progress-step.active .progress-dot {
    background: var(--secondary);
    color: white;
}

.progress-step.completed .progress-dot {
    background: var(--success);
    color: white;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--t-border, var(--border));
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    transition: background 0.3s;
    min-width: 40px;
}

.progress-line.active {
    background: var(--success);
}

.onboarding-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.onboarding-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.onboarding-header h2 {
    color: var(--t-heading, var(--primary));
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
}

.onboarding-header p {
    color: var(--t-text-muted, var(--text-muted));
    font-size: 0.95rem;
    margin: 0;
}

.onboarding-step-meta {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--t-text-muted);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-option input {
    display: none;
}

.skill-card {
    border: 2px solid var(--t-border, var(--border));
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.skill-option:hover .skill-card {
    border-color: var(--brand-accent, var(--secondary));
    background: #f0fdf4;
}

.skill-option.selected .skill-card,
.skill-option input:checked ~ .skill-card {
    border-color: var(--brand-accent, var(--secondary));
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 1px var(--secondary);
}

.skill-option.selected .skill-card::after,
.skill-option input:checked ~ .skill-card::after {
    content: '\2713';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.skill-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--t-heading, var(--primary));
    line-height: 1;
    margin-bottom: 0.25rem;
}

.skill-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-accent, var(--secondary));
    margin-bottom: 0.3rem;
}

.skill-desc {
    font-size: 0.75rem;
    color: var(--t-text-muted, var(--text-muted));
    line-height: 1.3;
}

.skill-card {
    position: relative;
}

.onboarding-selection-summary {
    margin: -0.25rem 0 0.75rem;
    font-size: 0.85rem;
    color: var(--t-text-muted);
}

.onboarding-step-validation {
    margin: -0.25rem 0 0.9rem;
    font-size: 0.84rem;
    color: var(--t-status-warning-text, var(--danger));
    min-height: 1.15rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.interest-option input {
    display: none;
}

.interest-card {
    border: 2px solid var(--t-border, var(--border));
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.interest-option:hover .interest-card {
    border-color: var(--brand-accent, var(--secondary));
    background: #f0fdf4;
}

.interest-option.selected .interest-card,
.interest-option input:checked ~ .interest-card {
    border-color: var(--brand-accent, var(--secondary));
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 1px var(--secondary);
}

.interest-option.selected .interest-card::after,
.interest-option input:checked ~ .interest-card::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    background: var(--secondary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.interest-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.interest-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--t-heading, var(--primary));
    margin-bottom: 0.2rem;
}

.interest-desc {
    font-size: 0.72rem;
    color: var(--t-text-muted, var(--text-muted));
    line-height: 1.3;
}

.onboarding-handedness {
    margin-bottom: 1.5rem;
}

.onboarding-field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t-heading, var(--primary));
    margin-bottom: 0.5rem;
    display: block;
}

.hand-options {
    display: flex;
    gap: 0.75rem;
}

.hand-option input {
    display: none;
}

.hand-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--t-border, var(--border));
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.hand-option:hover .hand-btn {
    border-color: var(--brand-accent, var(--secondary));
}

.hand-option input:checked ~ .hand-btn {
    border-color: var(--brand-accent, var(--secondary));
    background: #f0fdf4;
    color: var(--brand-accent, var(--secondary));
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.onboarding-actions .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

.onboarding-actions .btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.onboarding-actions .btn-primary.is-ready {
    opacity: 1;
}

.onboarding-actions .btn-primary.is-loading {
    opacity: 0.88;
}

.btn-skip {
    background: none;
    border: none;
    color: var(--t-text-muted, var(--text-muted));
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-skip:hover {
    color: var(--t-heading, var(--primary));
}

.btn-back {
    background: none;
    border: none;
    color: var(--t-text-muted, var(--text-muted));
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem;
    font-weight: 500;
}

.btn-back:hover {
    color: var(--t-heading, var(--primary));
}

.location-input-wrap {
    margin-bottom: 1rem;
}

.location-search-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.location-search-box input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--t-border, var(--border));
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.location-search-box input:focus {
    outline: none;
    border-color: var(--brand-accent, var(--secondary));
}

.btn-locate {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--t-border, var(--border));
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t-text-muted, var(--text-muted));
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-locate:hover {
    border-color: var(--brand-accent, var(--secondary));
    color: var(--brand-accent, var(--secondary));
}

.location-suggestions {
    display: none;
    background: var(--t-surface);
    border: 1px solid var(--t-border, var(--border));
    border-radius: 10px;
    margin-top: 0.35rem;
    box-shadow: var(--shadow-lg);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    position: relative;
}

.loc-sug-item {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.loc-sug-item:hover {
    background: #f0fdf4;
}

.loc-sug-item:last-child {
    border-bottom: none;
}

.loc-sug-empty {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--t-text-muted, var(--text-muted));
}

.location-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 1.25rem;
}

.discover-section {
    margin-bottom: 1.5rem;
}

.discover-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t-heading, var(--primary));
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.discover-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discover-item {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--t-border, var(--border));
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.discover-item:hover {
    border-color: var(--brand-accent, var(--secondary));
    background: #f0fdf4;
}

.discover-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--t-heading, var(--primary));
}

.discover-item-detail {
    font-size: 0.8rem;
    color: var(--t-text-muted, var(--text-muted));
    margin-top: 0.15rem;
}

.discover-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.discover-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.discover-empty h3 {
    color: var(--t-heading, var(--primary));
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}

.discover-empty p {
    color: var(--t-text-muted, var(--text-muted));
    font-size: 0.9rem;
    margin: 0;
}

.onboarding-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--t-border, var(--border));
    border-top-color: var(--brand-accent, var(--secondary));
    border-radius: 50%;
    animation: ob-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes ob-spin {
    to { transform: rotate(360deg); }
}

.discover-loading-wrap { text-align: center; padding: 2rem; }
.discover-loading-text { color: var(--t-text-muted); margin-top: 1rem; }
.location-status-ok { color: var(--brand-accent); }
.location-status-err { color: var(--danger); }
.location-status-pending { color: var(--t-text-muted); }

/* ── Personalized Dashboard Quick Actions ── */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dash-quick-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--t-surface);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--t-border);
    border-left: 4px solid var(--card-accent, var(--brand-2));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dash-quick-card-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--card-accent, var(--brand-2)) 10%, transparent);
    border-radius: 10px;
}

.dash-quick-card-body {
    flex: 1;
    min-width: 0;
}

.dash-quick-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--t-heading);
    line-height: 1.3;
}

.dash-quick-card-desc {
    font-size: 0.8rem;
    color: var(--t-text-muted);
    margin-top: 0.15rem;
}

.dash-quick-card-arrow {
    font-size: 1.1rem;
    color: #a0aec0;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.dash-quick-card:hover .dash-quick-card-arrow {
    transform: translateX(3px);
    color: var(--card-accent, var(--brand-2));
}

.dash-my-events-header {
    margin-bottom: 0.75rem;
}

.dash-my-events-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--t-heading);
    margin: 0;
}

@media (max-width: 600px) {
    .dash-quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skill-grid,
    .interests-grid {
        grid-template-columns: 1fr;
    }
    .onboarding-card {
        padding: 1.5rem 1rem;
    }
    .onboarding-header h2 {
        font-size: 1.3rem;
    }
}

.avail-calendar {
    margin-top: 1rem;
}

.avail-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.avail-day-cell {
    background: var(--t-surface-elevated);
    border: 1px solid var(--t-border);
    border-radius: 8px;
    padding: 0.4rem;
    min-height: 70px;
}

.avail-day-num {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--t-text);
}

.avail-day-name {
    font-size: 0.6rem;
    color: var(--t-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.avail-slot-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 6px;
    font-size: 0.65rem;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--brand-accent);
    position: relative;
}

.avail-slot-pill.booked {
    background: #e5e7eb;
    color: var(--t-text-secondary);
    border-color: #d1d5db;
}

.avail-slot-time-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.avail-slot-type-label {
    font-weight: 700;
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.7;
    flex-shrink: 0;
}

.avail-slot-delete {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}

.avail-slot-delete:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .avail-week-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .avail-week-row {
        grid-template-columns: 1fr 1fr;
    }
}

.avail-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.avail-profile-day {
    margin-bottom: 0.75rem;
}

.avail-profile-day-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--t-text);
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.avail-profile-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.35rem;
    background: var(--t-surface-elevated);
    border-radius: 10px;
    border: 1px solid var(--t-border);
}

.avail-profile-slot-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.avail-slot-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t-text);
    white-space: nowrap;
}

.avail-slot-type-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.avail-type-private {
    background: #dbeafe;
    color: #1e40af;
}

.avail-type-group {
    background: #d1fae5;
    color: #065f46;
}

.avail-type-clinic {
    background: #fef3c7;
    color: #92400e;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-card {
    background: var(--t-surface-elevated);
    border: 1px solid var(--t-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.booking-card.past {
    opacity: 0.7;
}

.booking-card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-date-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-date-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.booking-date-month {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    font-weight: 600;
}

.booking-details {
    flex: 1;
    min-width: 0;
}

.booking-coach-name {
    font-weight: 700;
    color: var(--t-text);
    font-size: 0.95rem;
}

.booking-time {
    font-size: 0.8rem;
    color: var(--t-text-secondary);
    margin-top: 0.1rem;
}

.booking-type-badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.booking-actions {
    flex-shrink: 0;
}

.booking-message {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--t-border);
    font-size: 0.8rem;
    color: var(--t-text-secondary);
    font-style: italic;
}

.booking-status-badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.booking-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.booking-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.booking-status-badge.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.booking-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-status-badge.declined {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 480px) {
    .booking-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-day-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--t-surface-elevated);
    border: 1px solid var(--t-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.schedule-day-row:hover {
    background: #f1f5f9;
}

.schedule-day-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.schedule-day-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--t-text);
}

.schedule-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.schedule-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.schedule-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 22px;
    transition: 0.3s;
}

.schedule-toggle-slider:before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.schedule-toggle input:checked + .schedule-toggle-slider {
    background: var(--brand-2);
}

.schedule-toggle input:checked + .schedule-toggle-slider:before {
    transform: translateX(16px);
}

.schedule-day-times {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.schedule-time-input {
    padding: 0.4rem 0.5rem;
    border: 1.5px solid var(--t-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--t-text);
    background: var(--t-surface);
    width: 110px;
}

.schedule-time-input:focus {
    outline: none;
    border-color: var(--brand-2);
}

.schedule-time-sep {
    font-size: 0.8rem;
    color: var(--t-text-secondary);
    font-weight: 500;
}

.schedule-save-btn {
    flex-shrink: 0;
}

.schedule-msg {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f0fdf4;
}

@media (max-width: 600px) {
    .schedule-day-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .schedule-day-label {
        min-width: auto;
    }
    .schedule-day-times {
        flex-wrap: wrap;
    }
    .schedule-time-input {
        width: 100%;
        flex: 1;
        min-width: 100px;
    }
}

.blocked-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.blocked-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.blocked-item-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: #991b1b;
}

.blocked-item-time {
    font-size: 0.85rem;
    color: #b91c1c;
    background: #fee2e2;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.blocked-item-reason {
    font-size: 0.8rem;
    color: var(--t-text-secondary);
    font-style: italic;
}

.empty-state-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 1rem 0;
}

.bookings-list .booking-item {
    padding: 0.75rem 1rem;
    background: var(--t-surface-elevated);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.booking-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.booking-item-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-1);
}

.booking-item-time {
    font-size: 0.85rem;
    color: #4b5563;
}

.booking-item-player {
    font-size: 0.85rem;
    color: var(--brand-2);
    font-weight: 500;
}

.booking-item-msg {
    font-size: 0.8rem;
    color: var(--t-text-secondary);
    font-style: italic;
    width: 100%;
}

.avail-book-calendar {
    margin-top: 1rem;
}

.avail-book-day {
    margin-bottom: 0.75rem;
}

.avail-book-day-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-1);
    margin-bottom: 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.avail-book-slots {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.avail-book-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.85rem;
}

.avail-book-slot-time {
    font-weight: 600;
    color: #065f46;
}

.avail-book-slot-actions {
    display: flex;
    gap: 0.35rem;
}

.btn-book {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-book-1h {
    background: var(--brand-2);
    color: white;
}

.btn-book-1h:hover {
    background: var(--brand-1);
}

.btn-book-2h {
    background: #7c3aed;
    color: white;
}

.btn-book-2h:hover {
    background: #6d28d9;
}

.admin-nav {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}
.admin-nav-inner {
    display: flex;
    gap: 0.25rem;
    background: var(--t-surface);
    border-radius: 14px;
    padding: 0.35rem;
    border: 1px solid var(--t-border, var(--border));
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-nav-inner::-webkit-scrollbar { display: none; }
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--t-text-muted, var(--text-muted));
    white-space: nowrap;
    transition: all 0.2s;
}
.admin-nav-item:hover {
    background: var(--t-hover-bg);
    color: var(--t-text);
}
.admin-nav-item--active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(29,64,81,0.25);
}
.admin-nav-item--active:hover {
    background: var(--primary);
    color: white;
}

.page-header-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ═══ FRIENDS ═══ */

.friends-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.friends-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t-heading);
    margin: 0;
}

.friends-subtitle {
    color: var(--t-text-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.friends-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--t-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.friends-back-link:hover {
    color: var(--brand-accent);
}

/* Search */
.friend-search-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.friend-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--t-input-border, var(--t-card-border));
    border-radius: 8px;
    background: var(--t-input-bg, var(--t-card-bg));
    color: var(--t-text);
    font-size: 0.875rem;
}

.friend-search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t-text-muted);
    pointer-events: none;
}

.friend-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
}

.friend-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--t-card-border);
}

.friend-search-result:last-child {
    border-bottom: none;
}

.friend-search-info {
    flex: 1;
    min-width: 0;
}

.friend-search-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--t-heading);
}

.friend-search-loc {
    font-size: 0.75rem;
    color: var(--t-text-muted);
}

.friend-search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--t-text-muted);
    font-size: 0.875rem;
}

.friend-add-form {
    margin: 0;
}

/* Avatar */
.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-accent, var(--mint));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.friend-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 1.375rem;
}

/* Badge pills */
.friend-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.friend-badge--accepted {
    background: var(--brand-accent, var(--mint));
    color: #fff;
}

.friend-badge--pending {
    background: var(--t-card-border);
    color: var(--t-text-muted);
}

.friend-badge--incoming {
    background: #f59e0b;
    color: #fff;
}

/* Sections */
.friends-section {
    margin-bottom: 2rem;
}

.friends-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--t-heading);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.friends-section-count {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--t-card-border);
    color: var(--t-text-muted);
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
}

/* Requests banner */
.friends-requests-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .friends-requests-banner {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.friends-request-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.friends-request-row + .friends-request-row {
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.friends-request-info {
    flex: 1;
    min-width: 0;
}

.friends-request-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--t-heading);
}

.friends-request-loc {
    font-size: 0.75rem;
    color: var(--t-text-muted);
}

.friends-request-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.friends-request-actions form {
    margin: 0;
}

/* Friends grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.friend-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.15s;
}

.friend-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.friend-card-info {
    flex: 1;
    min-width: 0;
}

.friend-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--t-heading);
}

.friend-card-meta {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    margin-top: 0.125rem;
}

.friend-card-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.friend-card-actions a,
.friend-card-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sent requests */
.friends-sent-details {
    margin-top: 1rem;
}

.friends-sent-details summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--t-text-muted);
    list-style: none;
}

.friends-sent-details summary::-webkit-details-marker {
    display: none;
}

.friends-sent-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--t-card-border);
}

/* Empty state */
.friends-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--t-text-muted);
}

.friends-empty .icon {
    display: block;
    margin: 0 auto 1rem;
    opacity: 0.4;
}

.friends-empty p {
    max-width: 320px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Schedule view */
.friend-schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.friend-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.friend-schedule-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--t-text);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.friend-schedule-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: var(--brand-accent);
}

.friend-schedule-card--overlap {
    border-left: 3px solid var(--brand-accent, var(--mint));
}

.friend-schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    text-align: center;
}

.friend-schedule-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-accent);
    letter-spacing: 0.05em;
}

.friend-schedule-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-heading);
    line-height: 1.1;
}

.friend-schedule-details {
    flex: 1;
    min-width: 0;
}

.friend-schedule-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--t-heading);
}

.friend-schedule-meta {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    margin-top: 0.125rem;
}

.friend-schedule-overlap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-accent, var(--mint));
    margin-top: 0.375rem;
}

.friend-schedule-kind {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.friend-schedule-kind--league { background: #dbeafe; color: #1e40af; }
.friend-schedule-kind--tournament { background: #ffedd5; color: #c2410c; }
.friend-schedule-kind--ladder { background: #ede9fe; color: #6d28d9; }
.friend-schedule-kind--program { background: #ccfbf1; color: #0f766e; }
.friend-schedule-kind--lesson { background: #fce7f3; color: #be185d; }
.friend-schedule-kind--clinic { background: #d1fae5; color: #065f46; }

[data-theme="dark"] .friend-schedule-kind--league { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
[data-theme="dark"] .friend-schedule-kind--tournament { background: rgba(251, 146, 60, 0.15); color: #fdba74; }
[data-theme="dark"] .friend-schedule-kind--ladder { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
[data-theme="dark"] .friend-schedule-kind--program { background: rgba(20, 184, 166, 0.15); color: #5eead4; }
[data-theme="dark"] .friend-schedule-kind--lesson { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }
[data-theme="dark"] .friend-schedule-kind--clinic { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

/* Dashboard widget */
.friends-widget {
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.friends-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.friends-widget-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--t-heading);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.friends-widget-link {
    font-size: 0.75rem;
    color: var(--brand-accent);
    text-decoration: none;
}

.friends-widget-link:hover {
    text-decoration: underline;
}

.friends-widget-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0;
}

.friends-widget-item + .friends-widget-item {
    border-top: 1px solid var(--t-card-border);
}

.friends-widget-item-name {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--t-heading);
    flex: 1;
}

.friends-widget-item-event {
    font-size: 0.7rem;
    color: var(--t-text-muted);
    text-align: right;
}

/* Friends page shell (from template) */
.friends-shell {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}
.friends-shell .friends-header { margin-bottom: 20px; }
.friends-shell .friends-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--t-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Search wrapper */
.friend-search-wrapper { position: relative; }
.friends-shell .friend-search-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 28px;
}
.friends-shell .friend-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--t-card-border);
    border-radius: 10px;
    background: var(--t-card-bg);
    color: var(--t-heading);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.friends-shell .friend-search-input:focus { border-color: var(--brand-accent); }
.friends-shell .friend-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--t-text-muted);
    pointer-events: none;
}
.friends-shell .friend-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.friends-shell .friend-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}
.friends-shell .friend-avatar--lg {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.1rem;
}

/* Inline badge overrides for friends shell */
.friends-shell .friend-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.friends-shell .friend-badge--pending { background: rgba(234,179,8,.15); color: #b45309; }
.friends-shell .friend-badge--accepted { background: rgba(16,185,129,.15); color: #047857; }
.friends-shell .friend-badge--incoming { background: rgba(59,130,246,.15); color: #1d4ed8; }

/* Request cards */
.friends-requests-list { display: flex; flex-direction: column; gap: 8px; }
.friend-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 10px;
    flex-wrap: wrap;
}
.friend-request-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.friend-request-details { display: flex; flex-direction: column; gap: 2px; }
.friend-request-name { font-weight: 600; color: var(--t-heading); font-size: 0.95rem; }
.friend-request-loc { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--t-text-muted); }
.friend-request-actions { display: flex; gap: 8px; }

/* Friends grid */
.friends-shell .friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.friends-shell .friend-card {
    background: var(--t-card-bg);
    border: 1px solid var(--t-card-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.friend-card-top { display: flex; align-items: center; gap: 14px; }
.friends-shell .friend-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friends-shell .friend-card-name { font-weight: 600; color: var(--t-heading); font-size: 1rem; }
.friend-card-loc { display: flex; align-items: center; gap: 4px; font-size: 0.83rem; color: var(--t-text-muted); }
.friend-card-dupr { display: flex; align-items: center; gap: 4px; font-size: 0.83rem; color: var(--mint, var(--brand-accent)); font-weight: 600; }
.friend-card-mutual { font-size: 0.78rem; color: var(--t-text-muted); }
.friends-shell .friend-card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.friend-remove-btn { color: var(--t-text-muted) !important; }
.friend-remove-btn:hover { color: #ef4444 !important; }

/* Empty state */
.friends-empty-state { text-align: center; padding: 48px 20px; background: var(--t-card-bg); border: 1px solid var(--t-card-border); border-radius: 12px; }
.friends-empty-icon { width: 48px; height: 48px; color: var(--t-text-muted); margin-bottom: 12px; }
.friends-empty-state h3 { color: var(--t-heading); margin: 0 0 8px; font-size: 1.1rem; }
.friends-empty-state p { color: var(--t-text-muted); font-size: 0.93rem; max-width: 380px; margin: 0 auto; }

/* Sent requests */
.friends-shell .friends-sent-details { background: var(--t-card-bg); border: 1px solid var(--t-card-border); border-radius: 10px; }
.friends-sent-summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 0.95rem; color: var(--t-heading); cursor: pointer; list-style: none; user-select: none; }
.friends-sent-summary::-webkit-details-marker { display: none; }
.friends-sent-chevron { margin-left: auto; transition: transform 0.2s; }
.friends-sent-details[open] .friends-sent-chevron { transform: rotate(180deg); }
.friends-sent-list { border-top: 1px solid var(--t-card-border); }
.friend-sent-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--t-card-border); }
.friend-sent-row:last-child { border-bottom: none; }
.friend-sent-info { display: flex; align-items: center; gap: 10px; }
.friend-sent-name { font-weight: 500; color: var(--t-heading); font-size: 0.93rem; }

/* Search result keyboard active state */
.friend-search-result--active { background: var(--t-surface-elevated, rgba(0,0,0,0.04)); }
.friend-search-mutual { font-size: 0.72rem; color: var(--brand-accent); font-weight: 500; }

/* Requests banner (shell override) */
.friends-shell .friends-requests-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(234,179,8,.12);
    color: #92400e;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Schedule responsive */
@media (max-width: 600px) {
    .friends-page { padding: 1rem 0.75rem; }
    .friends-header { flex-direction: column; align-items: stretch; }
    .friend-search-container { max-width: 100%; }
    .friends-grid, .friends-shell .friends-grid { grid-template-columns: 1fr; }
    .friend-schedule-card { flex-wrap: wrap; }
    .friend-schedule-kind { margin-top: 0.5rem; }
    .friend-request-card { flex-direction: column; align-items: flex-start; }
    .friend-request-actions { width: 100%; }
    .friend-request-actions .btn { flex: 1; }
}

/* Tournament/league contextual friend button */
.friend-add-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--t-card-border);
    background: var(--t-card-bg);
    color: var(--brand-accent);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    vertical-align: middle;
    margin-left: 6px;
}
.friend-add-inline:hover { border-color: var(--brand-accent); background: var(--brand-accent); color: #fff; }
.friend-add-inline--accepted { border-color: var(--brand-accent); color: var(--brand-accent); cursor: default; opacity: 0.7; }
.friend-add-inline--pending { border-color: var(--t-card-border); color: var(--t-text-muted); cursor: default; }

