/* Montserrat font loaded via <link> in layout files for better performance and latin-ext support */

/* ===============================================================
   MOREDA DESIGN SYSTEM — public.css
   Landing page, auth pages, public-facing styles
   =============================================================== */

:root {
    --color-primary: #14213D;
    --color-primary-light: #1C2F4A;
    --color-accent: #FF7A1A;
    --color-accent-hover: #E56A10;
    --color-accent-light: #FFF7ED;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-border: #E2E8F0;
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
    --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
    --input-height: 52px; --button-height: 56px;
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-main); font-size: 1rem; line-height: 1.6; color: var(--color-text); background: var(--color-bg); }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* CONTAINER */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-2xl) 0; }
@media (min-width: 768px) { .container { padding: 0 var(--space-xl); } .section { padding: var(--space-3xl) 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-4xl) 0; } }

/* NAVIGATION */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--color-primary); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md);
}
.nav-logo-wrap { display: flex; flex-direction: column; text-decoration: none; }
.nav-logo-wrap:hover { text-decoration: none; }
/* Logo styles handled by _LogoPartial */
.accent-orange { color: var(--color-accent); }
.nav-links { display: none; gap: var(--space-lg); }
.nav-links a { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--color-accent); text-decoration: none; }
.nav-cta { display: none; }
.nav-mobile-btn {
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-mobile-btn span { display: block; width: 24px; height: 2px; background: white; transition: 0.3s; }

/* Mobile menu open state */
.nav.nav-open {
    bottom: 0;
    overflow-y: auto;
}

.nav.nav-open .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    align-content: flex-start;
    padding-bottom: var(--space-xl);
}

.nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 10;
    gap: 0;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav.nav-open .nav-links a {
    padding: var(--space-md);
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav.nav-open .nav-links a:last-child {
    border-bottom: none;
}

.nav.nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    order: 11;
    padding-top: var(--space-md);
    gap: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav.nav-open .nav-cta .btn {
    width: 100%;
    justify-content: center;
}

.nav.nav-open .nav-mobile-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav.nav-open .nav-mobile-btn span:nth-child(2) {
    opacity: 0;
}

.nav.nav-open .nav-mobile-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-inner { padding: 0 var(--space-xl); }
    .nav-links { display: flex; }
    .nav-cta { display: flex; }
    .nav-mobile-btn { display: none; }
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    min-height: var(--button-height); padding: var(--space-md) var(--space-lg);
    font-family: var(--font-main); font-size: 1rem; font-weight: 700;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: white; box-shadow: 0 4px 14px rgba(249,115,22,0.4); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.5); text-decoration: none; }
.btn-secondary { background: white; color: var(--color-primary); border: 2px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; text-decoration: none; }
.btn-sm { min-height: 44px; padding: var(--space-sm) var(--space-md); font-size: 0.875rem; }
.btn-lg { min-height: 60px; padding: var(--space-md) var(--space-xl); font-size: 1.125rem; }
.btn-full { width: 100%; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white; padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -20%;
    width: 70%; height: 140%;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: var(--space-sm) var(--space-md); border-radius: 100px;
    font-size: 0.875rem; font-weight: 600; margin-bottom: var(--space-lg);
}
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: var(--space-md); max-width: 800px; margin-left: auto; margin-right: auto; }
.hero h1 .highlight { color: var(--color-accent); }
.hero-subtitle { font-size: 1.125rem; opacity: 0.9; margin-bottom: var(--space-xl); max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-cta { display: flex; flex-direction: column; gap: var(--space-md); align-items: center; margin-bottom: var(--space-2xl); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); max-width: 600px; margin: 0 auto; }
.hero-stat { text-align: center; padding: var(--space-md); background: rgba(255,255,255,0.1); border-radius: var(--radius-md); backdrop-filter: blur(10px); }
.hero-stat-number { font-size: 1.75rem; font-weight: 800; color: var(--color-accent); }
.hero-stat-label { font-size: 0.75rem; opacity: 0.8; margin-top: var(--space-xs); }
@media (min-width: 768px) {
    .hero { padding: calc(64px + var(--space-4xl)) 0 var(--space-4xl); }
    .hero h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-cta { flex-direction: row; justify-content: center; }
    .hero-stat-number { font-size: 2.5rem; }
    .hero-stat-label { font-size: 0.875rem; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 3.5rem; } }

/* SECTIONS */
.segments-section { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-label {
    display: inline-block; background: var(--color-accent-light); color: var(--color-accent);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-md); border-radius: 100px; margin-bottom: var(--space-sm);
}
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--color-primary); line-height: 1.2; }
.section-subtitle { font-size: 1rem; color: var(--color-text-muted); margin-top: var(--space-sm); max-width: 600px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } .section-subtitle { font-size: 1.125rem; } }

.segments-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 768px) { .segments-grid { grid-template-columns: repeat(3, 1fr); } }
.segment-card {
    background: white; border-radius: var(--radius-lg); padding: var(--space-xl);
    text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.segment-icon {
    width: 64px; height: 64px; margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
}
.segment-icon svg { width: 32px; height: 32px; stroke: white; fill: none; }
.segment-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-sm); }
.segment-card p { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; }

/* PAIN vs SOLUTION */
.pain-solution-section { background: white; }
.pain-solution-grid { display: grid; gap: var(--space-lg); max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .pain-solution-grid { grid-template-columns: 1fr 1fr; } }
.pain-card, .solution-card { padding: var(--space-xl); border-radius: var(--radius-lg); }
.pain-card { background: #FEF2F2; border: 2px solid #FECACA; }
.solution-card { background: #F0FDF4; border: 2px solid #BBF7D0; }
.pain-header, .solution-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.pain-icon { font-size: 1.5rem; }
.solution-icon { font-size: 1rem; background: var(--color-success); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pain-header h3 { font-size: 1.25rem; font-weight: 700; color: #DC2626; }
.solution-header h3 { font-size: 1.25rem; font-weight: 700; color: #16A34A; }
.pain-list, .solution-list { list-style: none; }
.pain-list li, .solution-list li { padding: var(--space-sm) 0; font-size: 0.9375rem; color: var(--color-text); border-bottom: 1px solid rgba(0,0,0,0.05); }
.pain-list li:last-child, .solution-list li:last-child { border-bottom: none; }
.pain-list li strong { color: #DC2626; }
.solution-list li strong { color: #16A34A; }

/* FEATURES */
.features-section { background: white; }
.features-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-bg-alt); transition: transform 0.2s ease; }
.feature-card:hover { transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px; margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; stroke: white; fill: none; }
.feature-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-sm); }
.feature-card p { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; }

/* PRICING */
.pricing-section { background: var(--color-bg-alt); }
.pricing-toggle { display: flex; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-2xl); align-items: center; }
.pricing-toggle-label { font-size: 0.9375rem; color: var(--color-text-muted); }
.pricing-toggle-label.active { color: var(--color-primary); font-weight: 600; }
.pricing-toggle-switch {
    width: 56px; height: 28px; background: var(--color-border); border-radius: 100px;
    position: relative; cursor: pointer; transition: background 0.3s ease;
}
.pricing-toggle-switch.active { background: var(--color-accent); }
.pricing-toggle-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 24px; height: 24px; background: white; border-radius: 50%;
    transition: transform 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.pricing-toggle-switch.active::after { transform: translateX(28px); }
.pricing-save { background: var(--color-success); color: white; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: var(--space-sm); }
.pricing-grid { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
    background: white; border-radius: var(--radius-xl); padding: var(--space-xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: relative;
}
.pricing-card.featured { border: 2px solid var(--color-accent); box-shadow: 0 8px 32px rgba(249,115,22,0.2); }
.pricing-card.featured::before {
    content: 'Najpopularniejszy'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-accent); color: white; font-size: 0.75rem; font-weight: 700;
    padding: 4px 16px; border-radius: 100px;
}
.pricing-name { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-xs); }
.pricing-desc { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.pricing-price { margin-bottom: var(--space-lg); }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--color-primary); }
.pricing-period { font-size: 0.875rem; color: var(--color-text-muted); }
.pricing-features { list-style: none; margin-bottom: var(--space-lg); }
.pricing-features li {
    display: flex; align-items: flex-start; gap: var(--space-sm);
    padding: var(--space-sm) 0; font-size: 0.9375rem; color: var(--color-text);
}
.pricing-features li svg { width: 20px; height: 20px; stroke: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.pricing-features li.disabled { color: var(--color-text-muted); }
.pricing-features li.disabled svg { stroke: var(--color-border); }

/* HOW IT WORKS */
.how-section { background: var(--color-primary); color: white; }
.how-section .section-label { background: rgba(255,255,255,0.2); color: white; }
.how-section .section-title { color: white; }
.how-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-step { text-align: center; }
.how-number {
    width: 48px; height: 48px; margin: 0 auto var(--space-md);
    background: var(--color-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800;
}
.how-step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-sm); }
.how-step p { font-size: 0.9375rem; opacity: 0.8; line-height: 1.6; }

/* CTA PHONE */
.cta-phone-section { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%); color: white; text-align: center; }
.cta-phone-section h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: var(--space-sm); }
.cta-phone-section p { font-size: 1rem; opacity: 0.9; margin-bottom: var(--space-lg); }
.cta-phone-number { font-size: 2rem; font-weight: 800; margin-bottom: var(--space-lg); display: flex; align-items: center; justify-content: center; gap: var(--space-md); }
.cta-phone-number svg { width: 32px; height: 32px; fill: white; }
.cta-phone-number a { color: white; text-decoration: none; }
.cta-phone-number a:hover { text-decoration: underline; }
@media (min-width: 768px) { .cta-phone-section h2 { font-size: 2.25rem; } .cta-phone-number { font-size: 2.5rem; } }

/* CONTACT FORM */
.contact-section { background: var(--color-bg-alt); }
.contact-grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-info h2 { font-size: 1.75rem; font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-md); }
.contact-info > p { font-size: 1rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-xl); }
.contact-item { display: flex; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-lg); }
.contact-item-icon {
    width: 48px; height: 48px; background: var(--color-accent-light); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 24px; height: 24px; stroke: var(--color-accent); fill: none; }
.contact-item h4 { font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-xs); }
.contact-item p { font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.contact-item a { color: var(--color-primary); }
.contact-form-card {
    background: white; border-radius: var(--radius-xl); padding: var(--space-xl);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.form-title { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-lg); text-align: center; }
.form-row { display: grid; gap: var(--space-md); margin-bottom: var(--space-md); }
@media (min-width: 768px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text); margin-bottom: var(--space-sm); }
.form-label .required { color: var(--color-error); }
.form-input, .form-select {
    width: 100%; height: var(--input-height); padding: 0 var(--space-md);
    font-family: var(--font-main); font-size: 16px; color: var(--color-text);
    background: var(--color-bg-alt); border: 2px solid var(--color-border);
    border-radius: var(--radius-sm); transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(249,115,22,0.1); background: white; }
.form-input::placeholder { color: var(--color-text-muted); }
.form-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}
.form-textarea {
    width: 100%; min-height: 120px; padding: var(--space-md);
    font-family: var(--font-main); font-size: 16px; color: var(--color-text);
    background: var(--color-bg-alt); border: 2px solid var(--color-border);
    border-radius: var(--radius-sm); resize: vertical;
}
.form-textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(249,115,22,0.1); background: white; }
.form-checkbox-group { margin: var(--space-lg) 0; }
.form-checkbox-label { display: flex; align-items: flex-start; gap: var(--space-md); cursor: pointer; }
.form-checkbox {
    width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
    -webkit-appearance: none; appearance: none; background: var(--color-bg-alt);
    border: 2px solid var(--color-border); border-radius: 6px;
    cursor: pointer; position: relative; transition: all 0.2s ease;
}
.form-checkbox:checked { background: var(--color-accent); border-color: var(--color-accent); }
.form-checkbox:checked::after {
    content: ''; position: absolute; left: 7px; top: 3px;
    width: 6px; height: 12px; border: solid white;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.form-checkbox-text { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.5; }
.form-checkbox-text a { color: var(--color-accent); font-weight: 600; }
.form-error { display: none; font-size: 0.8125rem; color: var(--color-error); margin-top: var(--space-xs); }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea { border-color: var(--color-error); }

/* Phone input with country code */
.phone-input-group { display: flex; gap: 0; }
.country-code-dropdown { position: relative; flex-shrink: 0; }
.country-code-trigger {
    display: flex; align-items: center; gap: 6px;
    height: var(--input-height); padding: 0 12px;
    background: var(--color-bg-alt); border: 2px solid var(--color-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none; cursor: pointer;
    font-family: var(--font-main); font-size: 15px; color: var(--color-text);
    transition: all 0.2s ease; white-space: nowrap;
}
.country-code-trigger:hover { background: #f1f5f9; }
.country-code-dropdown.open .country-code-trigger { border-color: var(--color-accent); border-right: 2px solid var(--color-accent); margin-right: -2px; position: relative; z-index: 2; background: white; }
.country-code-arrow { color: var(--color-text-muted); transition: transform 0.2s ease; flex-shrink: 0; }
.country-code-dropdown.open .country-code-arrow { transform: rotate(180deg); }
.country-code-trigger .country-flag-img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); vertical-align: middle; }
.country-code-trigger .country-dial { font-weight: 600; font-size: 14px; color: var(--color-text); }
.phone-number-input.form-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex: 1; min-width: 0; }
.phone-input-group .phone-number-input.form-input:focus { z-index: 1; }

.country-code-menu {
    display: none; position: absolute; top: calc(100% + 4px); left: 0;
    width: 320px; max-height: 360px;
    background: white; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 1000; overflow: hidden;
    flex-direction: column;
}
.country-code-menu.open { display: flex; }
.country-code-search-wrap { padding: 10px; border-bottom: 1px solid var(--color-border); }
.country-code-search {
    width: 100%; height: 40px; padding: 0 12px;
    font-family: var(--font-main); font-size: 14px; color: var(--color-text);
    background: var(--color-bg-alt); border: 1.5px solid var(--color-border);
    border-radius: 6px; outline: none; transition: border-color 0.2s;
}
.country-code-search:focus { border-color: var(--color-accent); background: white; }
.country-code-search::placeholder { color: var(--color-text-muted); }
.country-code-list { overflow-y: auto; max-height: 290px; padding: 4px 0; }
.country-code-section-label {
    padding: 8px 14px 4px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--color-text-muted);
}
.country-code-divider { height: 1px; background: var(--color-border); margin: 4px 12px; }
.country-code-option {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 14px; border: none; background: none;
    font-family: var(--font-main); font-size: 14px; color: var(--color-text);
    cursor: pointer; text-align: left; transition: background 0.1s;
}
.country-code-option:hover { background: var(--color-bg-alt); }
.country-code-option .country-flag-img { flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); vertical-align: middle; }
.country-code-option .country-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-code-option .country-dial { color: var(--color-text-muted); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.country-code-empty { padding: 20px 14px; text-align: center; color: var(--color-text-muted); font-size: 14px; }

@media (max-width: 480px) {
    .country-code-menu { width: calc(100vw - 32px); left: 0; }
}

/* FAQ */
.faq-section { background: white; }
.faq-grid { display: grid; gap: var(--space-lg); max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--color-bg-alt); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
    width: 100%; padding: var(--space-lg); font-family: var(--font-main);
    font-size: 1rem; font-weight: 600; color: var(--color-primary);
    background: none; border: none; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
}
.faq-question svg { width: 20px; height: 20px; stroke: var(--color-text-muted); flex-shrink: 0; transition: transform 0.3s ease; fill: none; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-content { padding: 0 var(--space-lg) var(--space-lg); font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.7; }

/* FOOTER */
.footer { background: var(--color-primary); color: white; padding: var(--space-3xl) 0 var(--space-lg); }
.footer-grid { display: grid; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .footer-logo-wrap { margin-bottom: var(--space-md); }
.footer-slogan { font-size: 0.875rem; color: var(--color-accent); font-weight: 600; margin-bottom: var(--space-sm); letter-spacing: 0.5px; }
.footer-brand p { font-size: 0.9375rem; opacity: 0.7; line-height: 1.6; max-width: 300px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-md); opacity: 0.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a { color: white; font-size: 0.9375rem; opacity: 0.8; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copyright { font-size: 0.875rem; opacity: 0.6; }
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { color: white; font-size: 0.875rem; opacity: 0.6; }
.footer-legal a:hover { opacity: 1; }

/* UTILITIES */
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: block; } .mobile-only { display: none; } }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after { content: ''; position: absolute; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: var(--space-2xl); }
.form-success.show { display: block; }
.form-success-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); }
.form-success-icon svg { width: 32px; height: 32px; stroke: white; fill: none; }
.form-success h3 { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-sm); }
.form-success p { color: var(--color-text-muted); }

/* ===============================================================
   AUTH LAYOUT
   =============================================================== */
.auth-page {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--space-lg);
}
.auth-logo { margin-bottom: var(--space-xl); text-align: center; }
.auth-logo a { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.auth-logo .moreda-logo-text { font-size: 2rem !important; }
.auth-logo .moreda-logo-slogan { font-size: 0.7rem !important; margin-top: 4px !important; }
.auth-card {
    width: 100%; max-width: 460px;
    background: white; border-radius: var(--radius-xl);
    padding: var(--space-2xl); box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-xs); }
.auth-subtitle { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.auth-links { text-align: center; margin-top: var(--space-lg); font-size: 0.875rem; color: var(--color-text-muted); }
.auth-links a { color: var(--color-accent); font-weight: 600; }
.auth-links p { margin-top: var(--space-sm); }
.auth-footer { margin-top: var(--space-xl); }
.auth-footer a { color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; }
.auth-footer a:hover { color: white; text-decoration: none; }

/* Auth form validation (ASP.NET MVC) */
.field-validation-error { display: block; font-size: 0.8125rem; color: var(--color-error); margin-top: var(--space-xs); }
.input-validation-error { border-color: var(--color-error) !important; }
.validation-summary-errors { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-sm); padding: var(--space-md); margin-bottom: var(--space-lg); }
.validation-summary-errors ul { list-style: none; }
.validation-summary-errors li { font-size: 0.875rem; color: #DC2626; }

/* Auth success message */
.auth-message { text-align: center; }
.auth-message-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); }
.auth-message-icon.success { background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%); }
.auth-message-icon svg { width: 32px; height: 32px; stroke: white; fill: none; stroke-width: 2; }
.auth-message h1 { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-sm); }
.auth-message p { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-lg); }

/* ===============================================================
   LEGAL PAGES — Privacy Policy & Terms of Service
   =============================================================== */
.legal-section { padding: var(--space-4xl) 0; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-sm); }
.legal-updated { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-3xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.legal-content p { font-size: 0.9375rem; color: var(--color-text); line-height: 1.8; margin-bottom: var(--space-md); }
.legal-content ul, .legal-content ol { font-size: 0.9375rem; color: var(--color-text); line-height: 1.8; margin-bottom: var(--space-md); padding-left: var(--space-lg); }
.legal-content li { margin-bottom: var(--space-xs); }
.legal-content li ul, .legal-content li ol { margin-top: var(--space-xs); margin-bottom: var(--space-xs); }
.legal-content a { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { font-weight: 600; color: var(--color-primary); }
.legal-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-lg); font-size: 0.875rem; }
.legal-table th, .legal-table td { padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.legal-table th { background: var(--color-bg-alt); font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.legal-table td { color: var(--color-text); line-height: 1.6; }
@media (max-width: 768px) {
    .legal-section { padding: var(--space-3xl) 0; }
    .legal-content h1 { font-size: 1.5rem; }
    .legal-table { font-size: 0.8125rem; }
    .legal-table th, .legal-table td { padding: var(--space-xs) var(--space-sm); }
    .legal-table th { white-space: normal; }
}
