/* ===========================================
   BioLink SaaS - Main Stylesheet
   Modern, clean design for SaaS application
   =========================================== */

/* CSS Variables — aligned with saas-dashboard design system */
:root {
    --primary: #4F7CF3;
    --primary-dark: #3d6ad9;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #1E293B;
    --gray: #64748B;
    --light-gray: #F4F7FC;
    --white: #FFFFFF;
    --border: #E6ECF5;
    --shadow: 0 1px 3px rgba(79, 124, 243, 0.06);
    --shadow-lg: 0 4px 20px rgba(79, 124, 243, 0.08);
    --radius: 12px;
    --radius-lg: 1rem;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--dark);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #4F7CF3 0%, #4FB3F6 100%);
    color: var(--white);
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(79, 124, 243, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 124, 243, 0.45);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 9999px;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #4F7CF3 0%, #4FB3F6 100%);
    color: var(--white);
    border-color: transparent;
}

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

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

.btn-logout {
    background-color: var(--gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--secondary);
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 124, 243, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #4F7CF3 0%, #4FB3F6 100%);
    color: var(--white);
}

/* Beacons-style hero: light blue gradient, dark text */
.hero-beacons {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
    color: var(--dark);
    padding: 5rem 0;
}

.hero-beacons .hero-content h1 {
    color: #0F172A;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-beacons .hero-subtitle {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 480px;
}

.hero-beacons .btn-primary {
    background: linear-gradient(135deg, #4F7CF3 0%, #4FB3F6 100%);
    color: var(--white);
}

.hero-beacons .btn-outline {
    border-color: #38BDF8;
    color: #0284C7;
}

.hero-beacons .btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #0284C7;
    border-color: #38BDF8;
}

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

.hero-preview-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    text-align: left;
}

.hero-preview-handle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.25rem;
}

.hero-preview-bio {
    font-size: 0.9375rem;
    color: #64748B;
}

.hero .container,
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Features (beacons-style: white cards, subtle shadow) */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem 1.75rem;
    border-radius: 16px;
    background-color: var(--white);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: 0 10px 40px -10px rgba(79, 124, 243, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 124, 243, 0.12) 0%, rgba(79, 179, 246, 0.12) 100%);
}

.feature-icon .w-8 {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.55;
}

/* Stats bar */
.stats-bar {
    padding: 2.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.stats-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--gray);
}

.stat-item-text .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

/* How it works */
.how-it-works {
    padding: 5rem 0;
    background: var(--light-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.55;
}

/* Landing CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--light-gray);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ========== Landing (Beacons-style layout, original colors) ========== */
.landing-beacons .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero: centered title + phone mockup + used-by */
.landing-hero {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 40%, #F4F7FC 100%);
    text-align: center;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79, 124, 243, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.landing-hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.landing-hero-subtitle {
    font-size: 1.125rem;
    color: #475569;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.landing-hero-mockup {
    margin-bottom: 1.5rem;
}

.phone-mockup {
    display: inline-block;
    width: 280px;
    max-width: 90vw;
    padding: 12px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    box-shadow: 0 25px 50px -12px rgba(79, 124, 243, 0.35);
}

.phone-screen {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
}

.demo-profile {
    padding: 2rem 1.5rem;
    text-align: center;
}

.demo-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--light-gray);
}

.demo-handle {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1E293B;
    margin-bottom: 0.25rem;
}

.demo-bio {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 1.25rem;
}

.demo-link {
    height: 44px;
    margin: 0 1rem 0.5rem;
    border-radius: 12px;
    background: var(--light-gray);
}

.landing-hero-used-by {
    font-size: 0.9375rem;
    color: #64748B;
    margin-bottom: 1.5rem;
}

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.landing-hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
}

.landing-hero-cta .btn-outline {
    border-color: #38BDF8;
    color: #0284C7;
}

.landing-hero-cta .btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #0284C7;
    border-color: #38BDF8;
}

/* Feature blocks: two-column */
.landing-feature-block {
    padding: 5rem 0;
    background: var(--white);
}

.landing-feature-block--alt {
    background: var(--light-gray);
}

.landing-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .landing-feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .landing-feature-block .order-2 { order: 1; }
    .landing-feature-block .order-1 { order: 2; }
}

.landing-feature-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.landing-feature-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
}

.landing-feature-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-top: 0.15rem;
}

.landing-feature-visual {
    min-height: 320px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(79, 124, 243, 0.12);
}

.landing-visual-gradient {
    background: linear-gradient(135deg, rgba(79, 124, 243, 0.15) 0%, rgba(79, 179, 246, 0.2) 100%);
}

.landing-visual-gradient--blue {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.landing-visual-gradient--cyan {
    background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%);
}

/* Section title (shared) */
.landing-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0F172A;
    text-align: center;
    margin-bottom: 0.5rem;
}
.landing-section-title--light { color: #fff; }
.landing-pricing .landing-section-title { margin-bottom: 2.5rem; }
.landing-section-desc {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2.5rem;
}
.landing-pricing .landing-section-desc { color: rgba(255,255,255,0.7); }

/* Discover grid */
.landing-discover {
    padding: 5rem 0;
    background: var(--white);
}

.landing-discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 500px) {
    .landing-discover-grid {
        grid-template-columns: 1fr;
    }
}

.landing-discover-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}
.landing-discover-card:hover {
    box-shadow: 0 8px 30px rgba(79, 124, 243, 0.12);
    border-color: rgba(79, 124, 243, 0.25);
    transform: translateY(-2px);
}

.landing-discover-card-visual {
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.landing-discover-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.landing-discover-card-desc {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Testimonials */
.landing-testimonials {
    padding: 5rem 0;
    background: var(--light-gray);
}


.landing-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .landing-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.landing-testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.landing-testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(79, 124, 243, 0.08);
    border-color: rgba(79, 124, 243, 0.15);
}

.landing-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-testimonial-quote {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.landing-testimonial-name {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Pricing: dark section + 2 cards */
.landing-pricing {
    padding: 5rem 0;
    background: #1E293B;
    color: #fff;
}


.landing-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.landing-pricing-card {
    padding: 2.5rem;
    border-radius: 20px;
}

.landing-pricing-card--light {
    background: var(--white);
    color: #0F172A;
}

.landing-pricing-card--light h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.landing-pricing-card--light .landing-pricing-sub {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.landing-pricing-card--light .landing-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.landing-pricing-card--light .landing-pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    color: #475569;
}
.landing-pricing-check {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary);
}
.landing-pricing-card--dark .landing-pricing-check { color: #7DD3FC; }
.landing-pricing-card--dark .landing-pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-pricing-card--dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-pricing-card--dark h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.landing-pricing-card--dark .landing-pricing-sub {
    color: #94A3B8;
    margin-bottom: 1.5rem;
}

.landing-pricing-card--dark .landing-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.landing-pricing-card--dark .landing-pricing-features li {
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    color: #CBD5E1;
}
.landing-pricing-grid { margin-bottom: 0; }

.landing-pricing-card--dark .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
    border: none;
}

/* Three-column tools */
.landing-tools {
    padding: 5rem 0;
    background: var(--white);
}

.landing-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .landing-tools-grid {
        grid-template-columns: 1fr;
    }
}

.landing-tool-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.landing-tool-card:hover {
    box-shadow: 0 8px 24px rgba(79, 124, 243, 0.1);
    border-color: rgba(79, 124, 243, 0.25);
}

.landing-tool-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 124, 243, 0.12) 0%, rgba(79, 179, 246, 0.12) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-tool-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.landing-tool-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.55;
}

/* Landing CTA */
.landing-cta {
    padding: 4rem 0;
    background: var(--light-gray);
    text-align: center;
}

.landing-cta-title,
.landing-cta h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.landing-cta-desc,
.landing-cta p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.landing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(79, 124, 243, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ========== Link in Bio page (/link-in-bio) ========== */
.lib-page .container {
    max-width: 866px;
    margin: 0 auto;
    padding: 0 24px;
}

.lib-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
}

.lib-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lib-hero-desc {
    font-size: 1.125rem;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.lib-hero-cta {
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: 600;
}

.lib-hero-cta:hover {
    background: #334155;
    color: #fff;
}

.lib-mockup-section {
    padding: 2.5rem 0 4rem;
    background: #fff;
}

.lib-mockup-label {
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.lib-phone-wrap {
    display: flex;
    justify-content: center;
}

.lib-phone {
    width: 300px;
    padding: 14px;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    box-shadow: 0 25px 50px -12px rgba(79, 124, 243, 0.3);
}

.lib-phone-inner {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    min-height: 480px;
}

.lib-profile-preview {
    padding: 2rem 1.25rem;
    text-align: center;
}

.lib-profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    background: #e2e8f0;
}

/* ชื่อในม็อคอัป: เน้นว่าเป็น placeholder ในจอ ไม่ใช่หัวข้อ section */
.lib-profile-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.lib-profile-socials {
    height: 28px;
    margin-bottom: 1.25rem;
    background: var(--light-gray);
    border-radius: 8px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.lib-block {
    height: 52px;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: var(--light-gray);
}

.lib-block--alt {
    height: 80px;
}

.lib-tools-intro {
    padding: 4rem 0;
    background: #f8fafc;
}

.lib-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
}

.lib-subsection-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #334155;
    margin: 2.5rem 0 1.25rem;
}

.lib-two-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .lib-two-blocks {
        grid-template-columns: 1fr;
    }
}

.lib-block-card {
    padding: 2rem;
    border-radius: 20px;
    min-height: 180px;
}

.lib-block-card--left {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
}

.lib-block-card--right {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #bbf7d0 100%);
    color: #312e81;
}

.lib-block-card-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.lib-block-card-text--small {
    font-size: 0.875rem;
    opacity: 0.9;
}

.lib-features-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.lib-features-strip-inner--below {
    margin-top: 0;
}

.lib-features-strip-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.lib-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid var(--border);
}

.lib-features-strip-desc {
    font-size: 0.9375rem;
    color: #64748b;
    max-width: 560px;
    margin: 0;
}

.lib-features-grid-section {
    padding: 4rem 0;
    background: #fff;
}

.lib-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

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

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

.lib-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #334155;
}

.lib-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 124, 243, 0.12) 0%, rgba(79, 179, 246, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.lib-faq {
    padding: 4rem 0;
    background: #f1f5f9;
}

.lib-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .lib-faq-grid {
        grid-template-columns: 1fr;
    }
}

.lib-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lib-faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.lib-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    background: none;
    border: none;
    cursor: pointer;
}

.lib-faq-q::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: #64748b;
}

.lib-faq-item.open .lib-faq-q::after {
    content: '−';
}

.lib-faq-a {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
}

.lib-faq-item.open .lib-faq-a {
    max-height: 320px;
    padding-top: 0.35rem;
    padding-bottom: 1rem;
    visibility: visible;
    transition: max-height 0.3s ease;
}

.lib-cta {
    padding: 4.5rem 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.lib-cta h2 {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.lib-cta p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* Auth Pages — UX/UI */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem 2.25rem;
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.auth-lead {
    font-size: 0.9375rem;
    color: var(--gray);
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-input {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 124, 243, 0.12);
}
.auth-input::placeholder {
    color: #94a3b8;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.auth-form-footer {
    margin-bottom: 1.25rem;
}
.auth-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.auth-footer p { margin: 0; font-size: 0.9375rem; color: var(--gray); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.auth-back {
    text-align: center;
    margin-top: 1.25rem;
}
.auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
    text-decoration: none;
}
.auth-back a:hover { color: var(--primary); }

.auth-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray);
    margin-top: 0.35rem;
}

.auth-checkbox-group {
    margin-bottom: 1.5rem;
}
.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--dark);
    font-weight: normal;
}
.auth-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    accent-color: var(--primary);
}
.auth-checkbox-text a {
    color: var(--primary);
    text-decoration: none;
}
.auth-checkbox-text a:hover { text-decoration: underline; }

/* Dashboard */
.dashboard-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Links Manager */
.links-manager {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.link-item:hover {
    border-color: var(--primary);
}

.link-drag-handle {
    cursor: grab;
    color: var(--gray);
}

.link-info {
    flex: 1;
}

.link-info h4 {
    margin-bottom: 0.25rem;
}

.link-url {
    font-size: 0.875rem;
    color: var(--gray);
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

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

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal form {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-banned {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Footer — UX/UI */
.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    background: #1E293B;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 24px 0;
}

.site-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: start;
    gap: 2rem 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-footer-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    object-fit: contain;
}

.site-footer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.site-footer-nav {
    display: contents;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer-col-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}

.site-footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-col a:hover {
    color: #fff;
}

.site-footer-bottom {
    padding: 1.25rem 0 2rem;
    text-align: center;
}

.site-footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .site-footer-inner { padding: 2rem 16px 0; }
    .site-footer-top {
        grid-template-columns: 1fr;
        padding-bottom: 1.5rem;
    }
    .site-footer-brand { grid-column: 1; }
}

/* Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.error-code {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container,
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-beacons .hero-content h1,
    .hero-beacons .hero-subtitle {
        text-align: center;
    }
    
    .hero-beacons .hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-preview {
        order: -1;
    }
    
    .hero-preview-card {
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

/* Pricing */
.pricing-page {
    min-height: 60vh;
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.pricing-page .container {
    max-width: 866px;
    margin: 0 auto;
    padding: 0 24px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--gray);
    font-size: 1rem;
}

/* ค่าบริการจริง */
.pricing-real {
    margin-bottom: 3rem;
}

.pricing-real-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1.5rem;
}

.pricing-real-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.pricing-real-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pricing-real-card--highlight {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(79, 124, 243, 0.12);
}

.pricing-real-card-header {
    margin-bottom: 1.25rem;
}

.pricing-real-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0.5rem 0 0.25rem;
}

.pricing-real-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.price-baht {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 1.25rem;
}

.price-baht .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.pricing-real-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-real-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    color: #475569;
}

.pricing-real-notes {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9375rem;
    color: var(--gray);
}

.pricing-real-notes p {
    margin: 0.5rem 0;
}

.pricing-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-plans-section {
    margin-top: 3rem;
}

.pricing-plans-section .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: var(--primary);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Legal pages (Terms, Privacy) — clean layout, light grey bg, centered card */
.legal-page {
    min-height: 60vh;
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.legal-container {
    max-width: 866px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.legal-back:hover {
    color: var(--primary-dark);
}

.legal-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
    .legal-card {
        padding: 1.75rem 1.5rem;
    }
    .legal-container {
        padding: 0 16px;
    }
}

.legal-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.legal-updated {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 2.25rem;
}

.legal-content section {
    margin-bottom: 2.25rem;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.legal-content p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 0.75rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form .form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ----- Info page (shared UX for About, Contact, Legal, etc.) ----- */
.info-page {
    min-height: 60vh;
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.info-container {
    max-width: 866px;
    margin: 0 auto;
    padding: 0 24px;
}

.info-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.info-back:hover { color: var(--primary-dark); }

.info-header {
    margin-bottom: 1.5rem;
}

.info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.info-lead {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.info-content .info-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.info-content .info-section:first-child { padding-top: 0; }
.info-content .info-section:last-child { border-bottom: none; padding-bottom: 0; }

.info-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.info-section-head h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.info-content p, .info-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.info-content p:last-child, .info-card p:last-child { margin-bottom: 0; }

.info-content ul, .info-card ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}
.info-content li, .info-card li {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.info-content a, .info-card a {
    color: var(--primary);
    text-decoration: none;
}
.info-content a:hover, .info-card a:hover { text-decoration: underline; }

.info-section-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.info-section-card .info-section-head h2 {
    font-size: 1.125rem;
}

.info-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
}

.info-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.info-cta p { font-size: 1rem; color: var(--gray); margin-bottom: 1rem; }
.info-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(79, 124, 243, 0.35);
}
.info-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 124, 243, 0.4);
}

/* Error page (404, 500) */
.error-page {
    min-height: 60vh;
    padding: 3rem 24px 4rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-page .error-container {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}
.error-page .error-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
}
.error-page .error-code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-page .error-message {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.error-page .error-detail {
    font-size: 0.9375rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.error-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .info-container { padding: 0 16px; }
    .info-card { padding: 1.25rem 1.5rem; }
}

/* ----- Help page (UX/UI) ----- */
.help-page {
    min-height: 60vh;
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.help-container {
    max-width: 866px;
    margin: 0 auto;
    padding: 0 24px;
}

.help-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.help-back:hover { color: var(--primary-dark); }

.help-header {
    margin-bottom: 2rem;
}

.help-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.help-lead {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.help-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.help-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(79, 124, 243, 0.08);
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
}
.help-quick-link:hover {
    background: rgba(79, 124, 243, 0.15);
    color: var(--primary-dark);
}

.help-section-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.help-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.help-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    color: #fff;
}

.help-section-head h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.help-accordion { border-top: 1px solid var(--border); }

.help-accordion-item {
    border-bottom: 1px solid var(--border);
}
.help-accordion-item:last-child { border-bottom: none; }

.help-accordion-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.help-accordion-q::after {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat center;
    transition: transform 0.25s ease;
}
.help-accordion-item.open .help-accordion-q::after {
    transform: rotate(180deg);
}
.help-accordion-q:hover { color: var(--primary); }

.help-accordion-a {
    padding: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.6;
    overflow: hidden;
    transition: padding 0.25s ease, visibility 0.2s ease;
}
.help-accordion-a a {
    color: var(--primary);
    text-decoration: none;
}
.help-accordion-a a:hover { text-decoration: underline; }

.help-accordion-item:not(.open) .help-accordion-a {
    padding-top: 0;
    padding-bottom: 0;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
}
.help-accordion-item.open .help-accordion-a {
    visibility: visible;
    opacity: 1;
    max-height: 500px;
}

.help-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.help-cta p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.help-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #4FB3F6 100%);
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(79, 124, 243, 0.35);
}
.help-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 124, 243, 0.4);
}

@media (max-width: 640px) {
    .help-container { padding: 0 16px; }
    .help-section-card { padding: 1rem 1.25rem; }
    .help-quick-nav { gap: 0.375rem; }
    .help-quick-link { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
}

