/* KapGelsin Landing — Ana renk: #28a745 */

:root {
    --landing-green: #28a745;
    --landing-green-dark: #1e7e34;
    --landing-green-light: #d4edda;
    --landing-green-rgb: 40, 167, 69;
}

.landing-page { background: #fff; color: #1a1a2e; overflow-x: hidden; }
.landing-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.landing-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.landing-brand { display: flex; align-items: center; flex-shrink: 0; }
.landing-logo {
    height: 40px;
    width: 40px;
    max-height: 40px;
    max-width: 40px;
    display: block;
}
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: #495057; font-weight: 500; font-size: .875rem; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--landing-green); }
.nav-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.nav-actions .btn { white-space: nowrap; padding: 10px 14px; font-size: .85rem; }

.text-primary { color: var(--landing-green); }

/* Hero */
.hero {
    padding: 40px 0 56px;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e9 50%, #fff 100%);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--landing-green-light);
    color: var(--landing-green-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.hero h1 {
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.hero-desc {
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
    color: #6c757d;
    margin-bottom: 24px;
    max-width: 100%;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.hero-actions .btn { width: 100%; justify-content: center; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}
.hero-stats strong { display: block; font-size: clamp(1.1rem, 4vw, 1.4rem); color: var(--landing-green); }
.hero-stats span { font-size: .7rem; color: #6c757d; }

.hero-visual { position: relative; text-align: center; }
.hero-logo-img {
    width: min(300px, 80vw);
    height: min(300px, 80vw);
    max-width: min(300px, 80vw);
    max-height: min(300px, 80vw);
    display: block;
    margin: 0 auto;
    box-shadow: 0 16px 48px rgba(var(--landing-green-rgb), .25);
}
.hero-float-card {
    position: absolute;
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}
.hero-float-card.card-1 { top: 8%; left: 0; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: 28%; right: 0; animation-delay: 1s; }
.hero-float-card.card-3 { bottom: 4%; left: 4%; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Sections */
.landing-section { padding: 48px 0; }
.landing-section.alt-bg { background: #f8f9fa; }
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    padding: 0 8px;
}
.section-sub {
    text-align: center;
    color: #6c757d;
    margin-bottom: 32px;
    font-size: .95rem;
    padding: 0 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 24px 20px;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--landing-green-rgb), .12); }
.feature-icon { font-size: 1.75rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { color: #6c757d; font-size: .875rem; line-height: 1.5; }

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.step-card { text-align: center; padding: 16px 8px; }
.step-num {
    width: 40px; height: 40px;
    background: var(--landing-green);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    margin: 0 auto 12px;
}
.step-card h3 { font-size: .95rem; margin-bottom: 6px; }
.step-card p { color: #6c757d; font-size: .8rem; }

.cta-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    text-align: center;
}
.cta-split.reverse .cta-content { order: 1; }
.cta-content h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 10px; }
.cta-content p { color: #6c757d; margin-bottom: 12px; font-size: .95rem; }
.cta-list { list-style: none; margin-bottom: 20px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
.cta-list li { padding: 5px 0; color: #495057; font-size: .9rem; }
.cta-visual { font-size: clamp(4rem, 15vw, 6rem); opacity: .9; }

/* Footer */
.landing-footer {
    background: #1a1a2e;
    color: #adb5bd;
    padding: 32px 0;
    text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo {
    height: 56px;
    width: 56px;
    max-height: 56px;
    max-width: 56px;
    display: block;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #dee2e6; font-size: .9rem; }

/* Legal / privacy */
.legal-page { background: #f8f9fa; }
.legal-main { padding: 32px 0 48px; }
.legal-container {
    max-width: 760px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 28px 24px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}
.legal-header h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: #1a1a2e;
    margin-bottom: 8px;
}
.legal-meta { color: #6c757d; font-size: .9rem; margin-bottom: 16px; }
.legal-intro { color: #495057; line-height: 1.65; margin-bottom: 8px; }
.legal-section { margin-top: 28px; }
.legal-section h2 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #28a745;
}
.legal-section p,
.legal-section li {
    color: #495057;
    line-height: 1.7;
    font-size: .95rem;
}
.legal-section ul { margin: 10px 0 0 20px; }
.legal-section li { margin-bottom: 6px; }
.legal-section a { color: #28a745; text-decoration: underline; }
.legal-section code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .85em;
}

[data-theme="dark"] .legal-page { background: #0f172a; }
[data-theme="dark"] .legal-container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}
[data-theme="dark"] .legal-header h1,
[data-theme="dark"] .legal-section h2 { color: #f1f5f9; }
[data-theme="dark"] .legal-meta,
[data-theme="dark"] .legal-intro,
[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section li { color: #cbd5e1; }
[data-theme="dark"] .legal-section code { background: #0f172a; color: #e2e8f0; }

.legal-doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}
.legal-doc-nav a {
    font-size: .82rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    background: #f8f9fa;
}
.legal-doc-nav a:hover { border-color: #28a745; color: #28a745; }
.legal-doc-nav a.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-top: 10px;
}
.legal-table th,
.legal-table td {
    border: 1px solid #e9ecef;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: #f8f9fa;
    color: #1a1a2e;
    font-weight: 600;
}
.legal-sample {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 10px;
    font-size: .9rem;
    line-height: 1.65;
    color: #495057;
}

[data-theme="dark"] .legal-doc-nav { border-bottom-color: #334155; }
[data-theme="dark"] .legal-doc-nav a {
    background: #0f172a;
    border-color: #475569;
    color: #cbd5e1;
}
[data-theme="dark"] .legal-table th,
[data-theme="dark"] .legal-table td { border-color: #334155; }
[data-theme="dark"] .legal-table th { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] .legal-sample {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

/* Auth */
.auth-body { background: #f8f9fa; min-height: 100dvh; overflow-x: hidden; }
.auth-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100dvh;
}
.auth-side {
    display: none;
    background: linear-gradient(160deg, var(--landing-green) 0%, var(--landing-green-dark) 100%);
    color: #fff;
    padding: 48px;
    flex-direction: column;
    justify-content: center;
}
.auth-side-logo {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.auth-side h2 { font-size: 1.6rem; margin-bottom: 10px; }
.auth-side p { opacity: .9; margin-bottom: 20px; line-height: 1.6; font-size: .95rem; }
.auth-side-list { list-style: none; margin-bottom: 24px; }
.auth-side-list li { padding: 6px 0; font-size: .9rem; }
.auth-back { color: #fff; opacity: .85; font-size: .875rem; }
.auth-main {
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.auth-legal-hint {
    margin-top: 16px;
    font-size: .78rem;
    line-height: 1.55;
    color: #6c757d;
    text-align: center;
}
.auth-legal-hint a { color: #28a745; text-decoration: underline; }

.auth-legal-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}
.auth-legal-title {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: 10px;
}
.auth-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.auth-legal-links a {
    font-size: .8rem;
    color: #28a745;
    text-decoration: underline;
    line-height: 1.4;
}
.auth-legal-copy {
    font-size: .75rem;
    color: #adb5bd;
    margin: 0;
}

.auth-form h1 { font-size: 1.35rem; margin-bottom: 4px; color: #1a1a2e; }
.form-sub { color: #6c757d; font-size: .875rem; margin-bottom: 20px; }
.auth-mobile-brand { display: block; text-align: center; margin-bottom: 16px; }
.auth-mobile-logo,
.auth-mobile-brand img {
    height: 56px;
    width: 56px;
    max-width: 56px;
    max-height: 56px;
    display: inline-block;
}
.show-mobile-only { display: none; }

.form-hint {
    font-size: .8rem;
    color: var(--text-muted);
    margin: -4px 0 10px;
    line-height: 1.4;
}

.reg-location-map {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    z-index: 1;
}

.reg-location-status {
    font-size: .8rem;
    color: var(--danger);
    margin: 0 0 10px;
}

.reg-location-status.selected {
    color: var(--success);
}

#restaurantLocationGroup .btn {
    margin-bottom: 4px;
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .8rem; color: #495057;
    margin-bottom: 16px; cursor: pointer; line-height: 1.4;
}
.checkbox-row input { width: auto; min-width: 18px; margin-top: 3px; flex-shrink: 0; }

.role-pills { display: flex; flex-direction: column; gap: 8px; }
.role-pill {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: .9rem;
    transition: all .2s;
}
.role-pill input { display: none; }
.role-pill.active { border-color: var(--landing-green); background: var(--landing-green-light); color: var(--landing-green-dark); }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: .875rem;
    line-height: 1.4;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Buttons */
.landing-page .btn,
.auth-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    transition: background .2s, transform .15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.landing-page .btn-primary,
.auth-body .btn-primary { background: var(--landing-green); color: #fff; border: none; }
.landing-page .btn-primary:hover,
.auth-body .btn-primary:hover { background: var(--landing-green-dark); }
.landing-page .btn-outline {
    border: 2px solid var(--landing-green);
    color: var(--landing-green);
    background: transparent;
}
.landing-page .btn-outline:hover { background: var(--landing-green-light); }
.landing-page .btn-lg { padding: 14px 24px; font-size: 1rem; }
.auth-body input, .auth-body select, .auth-body textarea {
    background: #fff; color: #1a1a2e; border-color: #ced4da;
    font-size: 16px;
}
.auth-body .role-tab.active {
    background: rgba(var(--landing-green-rgb), .12);
    border-color: var(--landing-green);
    color: var(--landing-green);
}

/* ===== TABLET 576px+ ===== */
@media (min-width: 576px) {
    .landing-container { padding: 0 20px; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; }
    .hero-actions .btn { width: auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .role-pills { flex-direction: row; }
    .role-pill { flex: 1; }
    .auth-main { padding: 32px 24px; justify-content: center; }
}

/* ===== TABLET 768px+ ===== */
@media (min-width: 768px) {
    .hide-mobile { display: flex !important; }
    .show-mobile-only { display: none !important; }
    .landing-logo { height: 44px; width: 44px; max-width: 44px; max-height: 44px; }
    .hero-logo-img {
        width: 360px;
        height: 360px;
        max-width: 360px;
        max-height: 360px;
    }
    .hero { padding: 60px 0 72px; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-stats { text-align: left; display: flex; gap: 28px; }
    .landing-section { padding: 64px 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
    .cta-split { grid-template-columns: 1fr auto; text-align: left; gap: 40px; }
    .cta-split.reverse { grid-template-columns: auto 1fr; }
    .cta-split.reverse .cta-content { order: 2; }
    .cta-list { margin-left: 0; margin-right: 0; }
    .auth-layout { grid-template-columns: 1fr 1fr; }
    .auth-side { display: flex; }
    .auth-mobile-brand { display: none; }
    .auth-main { padding: 40px 32px; }
}

/* ===== DESKTOP 1024px+ ===== */
@media (min-width: 1024px) {
    .landing-container { max-width: 1200px; padding: 0 32px; }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .feature-card { padding: 28px; }
    .hero { padding: 72px 0 88px; }
    .hero-float-card { font-size: .8rem; padding: 10px 16px; }
    .landing-section { padding: 72px 0; }
    .nav-actions .btn { padding: 10px 18px; }
    .footer-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 24px;
        text-align: left;
    }
    .footer-inner p { margin: 0; }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 380px) {
    .nav-actions { width: 100%; justify-content: stretch; }
    .nav-actions .btn { flex: 1; font-size: .8rem; padding: 8px 10px; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; gap: 12px; }
}

/* Theme toggle on public pages */
.auth-theme-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.landing-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #495057;
    border: 1px solid #e9ecef;
    background: #fff;
}

/* Landing dark mode */
[data-theme="dark"] .landing-page {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .landing-nav {
    background: rgba(15,23,42,.95);
    border-bottom-color: #334155;
}

[data-theme="dark"] .nav-links a { color: #cbd5e1; }
[data-theme="dark"] .landing-theme-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

[data-theme="dark"] .hero h1 { color: #f1f5f9; }
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero-stats span { color: #94a3b8; }

[data-theme="dark"] .feature-card,
[data-theme="dark"] .step-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .step-card p,
[data-theme="dark"] .section-sub,
[data-theme="dark"] .cta-content p,
[data-theme="dark"] .cta-list li { color: #94a3b8; }

[data-theme="dark"] .landing-section.alt-bg { background: #1e293b; }
[data-theme="dark"] .landing-section h2,
[data-theme="dark"] .cta-content h2,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .step-card h3 { color: #f1f5f9; }

[data-theme="dark"] .landing-footer {
    background: #020617;
    color: #94a3b8;
}

[data-theme="dark"] .footer-links a { color: #cbd5e1; }

[data-theme="dark"] .auth-body { background: #0f172a; }
[data-theme="dark"] .auth-form h1 { color: #f1f5f9; }
[data-theme="dark"] .auth-legal-hint { color: #94a3b8; }
[data-theme="dark"] .auth-legal-footer { border-top-color: #334155; }
[data-theme="dark"] .auth-legal-title { color: #94a3b8; }
[data-theme="dark"] .auth-legal-copy { color: #64748b; }
[data-theme="dark"] .auth-form-wrap {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .landing-page img.brand-logo,
[data-theme="dark"] .landing-page img.landing-logo,
[data-theme="dark"] .landing-page img.footer-logo,
[data-theme="dark"] .landing-page img.hero-logo-img,
[data-theme="dark"] .auth-body img.auth-side-logo,
[data-theme="dark"] .auth-body img.auth-mobile-logo {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

[data-theme="dark"] .landing-page .btn-outline {
    background: transparent;
    color: var(--landing-green);
    border-color: var(--landing-green);
}
