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

:root {
    /* Corporate Color Palette */
    --primary-900: #1e3a5f;
    --primary-800: #1e40af;
    --primary-700: #1d4ed8;
    --primary-600: #2563eb;
    --primary-500: #3b82f6;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --success-600: #059669;
    --success-500: #10b981;
    --success-100: #d1fae5;

    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Border radius - sharp for corporate */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--slate-100);
    min-height: 100vh;
    padding: 10px;
    color: var(--slate-700);
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 64px;
    line-height: 1.5;
}

/* RTL Support for Farsi */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .container {
    direction: rtl;
}

html[dir="rtl"] .field-label,
html[dir="rtl"] label,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    text-align: right;
}

html[dir="rtl"] .menu-stats {
    direction: rtl;
}

html[dir="rtl"] .results-grid {
    direction: rtl;
}

html[dir="rtl"] .grid {
    direction: rtl;
}

html[dir="rtl"] .radio-group {
    direction: rtl;
}

html[dir="rtl"] .tabs-navigation {
    direction: rtl;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

/* Mobile-first: Small screens */
@media (min-width: 768px) {
    body {
        padding-right: 24px;
        padding-bottom: 24px;
        padding-left: 24px;
        padding-top: 64px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow-x: hidden;
    overflow-y: visible;
    border: 1px solid var(--slate-200);
}

.preview-mode-badge {
    position: fixed;
    top: 72px;
    right: 12px;
    z-index: 2000;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    box-shadow: var(--shadow-sm);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

html[dir="rtl"] .preview-mode-badge {
    right: auto;
    left: 12px;
}

@media (min-width: 768px) {
    .container {
        box-shadow: var(--shadow-lg);
    }
}

.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (min-width: 768px) {
    .menu-content {
        gap: 20px;
    }
}

.menu-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .menu-title {
        font-size: 1.25rem;
        letter-spacing: 0.75px;
    }
}

.menu-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 768px) {
    .menu-stats {
        gap: 40px;
        width: auto;
        flex-wrap: nowrap;
    }
}

.menu-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .menu-stat-item {
        flex: 0 1 auto;
    }
}

.menu-stat-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--slate-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}

@media (min-width: 768px) {
    .menu-stat-label {
        font-size: 0.75rem;
    }
}

.menu-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: right;
}

@media (min-width: 768px) {
    .menu-stat-value {
        font-size: 1.75rem;
        min-width: 120px;
    }
}

/* Tabs Navigation - Traditional Tab Style */
.tabs-navigation {
    display: flex;
    gap: 2px;
    background: var(--slate-100);
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-300);
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

@media (min-width: 768px) {
    .tabs-navigation {
        gap: 2px;
    }
}

/* Floating Results Bar */
.floating-results-bar {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--slate-800);
    color: var(--white);
    z-index: 1000;
    padding: 10px 15px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
    border-bottom: 2px solid var(--primary-600);
}

/* Top Menu - Corporate Header */
/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-nav-brand {
    color: var(--primary-700);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.top-nav-brand:hover {
    color: var(--primary-800);
}

.top-nav-links {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

@media (min-width: 640px) {
    .top-nav-links {
        display: flex;
    }
}

.top-nav-link {
    padding: 8px 16px;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.top-nav-link:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

.top-nav-link.active {
    color: var(--primary-700);
    background: var(--primary-50);
}

.top-nav-auth {
    margin-left: 8px;
    background: var(--primary-600);
    color: var(--white);
}

.top-nav-auth:hover {
    background: var(--primary-700);
    color: var(--white);
}

.top-nav-user {
    position: relative;
    margin-left: 8px;
}

.top-nav-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.top-nav-user-btn:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.top-nav-user-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.top-nav-user.open .top-nav-user-arrow {
    transform: rotate(180deg);
}

.top-nav-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 120px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
    z-index: 1000;
}

.top-nav-user.open .top-nav-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-nav-user-menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--slate-700);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.top-nav-user-menu-item:hover {
    background: var(--slate-100);
}

.top-nav-user-menu-item:only-child {
    border-radius: 7px;
}

.top-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.top-nav-toggle:hover {
    background: var(--slate-100);
}

.top-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 1px;
}

@media (min-width: 640px) {
    .top-nav-toggle {
        display: none;
    }
}

/* Mobile Drawer */
.top-nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 2090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.top-nav-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.top-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2100;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.top-nav-drawer.open {
    transform: translateX(0);
}

.top-nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--slate-200);
}

.top-nav-drawer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-700);
}

.top-nav-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-nav-drawer-close:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

.top-nav-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
}

.top-nav-drawer-link {
    display: block;
    padding: 12px 16px;
    color: var(--slate-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.top-nav-drawer-link:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.top-nav-drawer-auth {
    margin-top: 8px;
    background: var(--primary-600);
    color: var(--white);
    text-align: center;
}

.top-nav-drawer-auth:hover {
    background: var(--primary-700);
    color: var(--white);
}

.top-nav-drawer-user {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.top-nav-drawer-greeting {
    display: block;
    padding: 8px 16px;
    color: var(--slate-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.top-nav-drawer-logout {
    margin-top: 8px;
    background: var(--slate-600);
    color: var(--white);
    text-align: center;
    border: none;
    cursor: pointer;
}

.top-nav-drawer-logout:hover {
    background: var(--slate-700);
    color: var(--white);
}

.hidden {
    display: none !important;
}

.floating-results-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .floating-results-bar {
        padding: 12px 20px;
    }
}

.floating-results-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .floating-results-content {
        gap: 30px;
        flex-wrap: nowrap;
    }
}

.floating-result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .floating-result-item {
        flex: 0 1 auto;
        align-items: flex-end;
    }
}

.floating-result-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (min-width: 768px) {
    .floating-result-label {
        font-size: 0.7rem;
    }
}

.floating-result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-500);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .floating-result-value {
        font-size: 1.25rem;
    }
}

/* Tab Buttons - Traditional Tab Style */
.tab-button {
    flex: 0 1 auto;
    min-width: fit-content;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

@media (min-width: 768px) {
    .tab-button {
        padding: 14px 32px;
        font-size: 0.875rem;
    }
}

.tab-button:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--slate-700);
}

.tab-button.active {
    color: var(--primary-700);
    background: var(--white);
    border-bottom-color: var(--primary-600);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--white);
}

.tab-button.disabled,
.tab-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tab-button.disabled:hover,
.tab-button:disabled:hover {
    background: transparent;
    color: var(--slate-500);
}

/* Tab Content Container */
.tab-content-container {
    position: relative;
    overflow-y: visible;
}

.tab-content {
    display: none;
    overflow: visible;
}

.tab-content.active {
    display: block;
    overflow: visible;
}

/* Loan Overview - Corporate Header */
.loan-overview {
    background: var(--primary-800) !important;
    color: var(--white) !important;
    padding: 16px;
    margin-bottom: 0;
    border: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .loan-overview {
        padding: 20px 24px;
    }
}

.loan-overview .loan-overview-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .loan-overview .loan-overview-wrapper {
        gap: 16px;
    }
}

.loan-overview .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.loan-overview .menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.loan-overview .menu-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .loan-overview .menu-title {
        font-size: 1.25rem;
        letter-spacing: 0.75px;
    }
}

.loan-overview .menu-stats {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .loan-overview .menu-stats {
        gap: 40px;
        flex-wrap: nowrap;
    }
}

.loan-overview .menu-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-item {
        flex: 0 1 auto;
    }
}

.loan-overview .menu-stat-item-separated {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-item-separated {
        margin-left: auto;
        padding-left: 40px;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
}

.loan-overview .menu-stat-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    align-self: flex-start;
    width: 100%;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-section {
        width: auto;
    }
}

.loan-overview .menu-stat-section .menu-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-section .menu-title {
        font-size: 0.75rem;
    }
}

.loan-overview .menu-stat-items-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-end;
    width: 100%;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-items-group {
        gap: 30px;
        width: auto;
        justify-content: flex-end;
    }
}

.loan-overview .menu-stat-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--primary-100) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-label {
        font-size: 0.875rem;
    }
}

.loan-overview .menu-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white) !important;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: right;
}

@media (min-width: 768px) {
    .loan-overview .menu-stat-value {
        font-size: 1.75rem;
        min-width: 120px;
    }
}

main {
    padding: 20px 16px;
    position: relative;
}

@media (min-width: 768px) {
    main {
        padding: 24px;
    }
}

/* Sections - Corporate Card Style */
.section {
    margin-bottom: 24px;
    padding: 20px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .section {
        margin-bottom: 28px;
        padding: 24px;
    }
}

.section h2 {
    color: var(--slate-800);
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-600);
    padding-bottom: 10px;
    letter-spacing: 0.25px;
}

@media (min-width: 768px) {
    .section h2 {
        margin-bottom: 20px;
        font-size: 1.25rem;
        padding-bottom: 12px;
    }
}

.subsection {
    background: var(--slate-50);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-600);
}

@media (min-width: 768px) {
    .subsection {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.subsection h3 {
    color: var(--slate-700);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .subsection h3 {
        margin-bottom: 14px;
        font-size: 1.1rem;
    }
}

.form-group {
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .form-group {
        margin-bottom: 20px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--slate-700);
    font-size: 0.9rem;
    position: relative;
}

@media (min-width: 768px) {
    .form-group label {
        font-size: 0.95rem;
    }
}

/* Allow inline info icon in labels */
.form-group label .info-icon-wrapper {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
}

/* Specific styling for number of children input */
#numberOfChildrenGroup input[type="number"] {
    width: 100%;
}

@media (min-width: 992px) {
    #numberOfChildrenGroup input[type="number"] {
        width: 150px;
    }
}

/* Grid layout */
.grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
    }
}

/* Two-column layout for sections on larger screens */
@media (min-width: 992px) {
    .section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .section h2 {
        grid-column: 1 / -1;
    }

    /* Lebenshaltungskosten section - allow row layout */
    .section:has(#numberOfChildrenGroup) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .section:has(#numberOfChildrenGroup) h2 {
        grid-column: 1 / -1;
    }

    .section:has(#numberOfChildrenGroup) .form-group {
        grid-column: span 1;
    }

    /* Other sections with form-groups - display vertically */
    .section.loan-parameters-section,
    .section:has(.form-group):not(:has(.grid)):not(:has(#numberOfChildrenGroup)),
    .section:has(h2[translate-key="income-title"]),
    .section:has(#income-applicant) {
        display: block;
    }

    /* Make grid in Einkommensverhältnisse section single column */
    .section:has(h2[translate-key="income-title"]) .grid,
    .section:has(#income-applicant) .grid {
        grid-template-columns: 1fr;
    }

    /* Subsections should be in columns */
    .section > .subsection {
        grid-column: span 1;
    }

    /* Form groups within subsections should span full width */
    .subsection .form-group {
        grid-column: 1 / -1;
    }

    /* Radio groups should span full width */
    .radio-group {
        grid-column: 1 / -1;
    }

    /* Exception: radio group in Lebenshaltungskosten stays in its column */
    .section:has(#numberOfChildrenGroup) .radio-group {
        grid-column: span 1;
    }

    /* Ratenkredite container should span full width */
    #ratenkrediteContainer {
        grid-column: 1 / -1;
    }

    .add-ratenkredit-btn {
        grid-column: 1 / -1;
    }
}

/* Content area */
.content {
    padding: 16px;
}

@media (min-width: 768px) {
    .content {
        padding: 20px;
    }
}

/* Field styling - Corporate */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    transition: all 0.15s ease;
}

@media (min-width: 768px) {
    .field {
        flex-direction: row;
        align-items: center;
        padding: 16px;
    }
}

.field:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-sm);
}

.field-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .field-label {
        font-size: 0.95rem;
    }
}

.field-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .field-value {
        font-size: 1.05rem;
    }
}

.field-value.euro::before {
    content: "€ ";
}

/* Input fields - Corporate Style */
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    padding: 10px 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--slate-700);
    background: var(--white);
    transition: all 0.15s ease;
    width: 100%;
    font-family: inherit;
}

@media (min-width: 768px) {
    input[type="number"],
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        width: 150px;
        flex-shrink: 0;
    }
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-100);
}

/* Number input styling improvements for mobile */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

/* Radio group - Corporate */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 480px) {
    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 1;
    min-width: 0;
}

@media (min-width: 480px) {
    .radio-label {
        flex: 0 1 auto;
        min-width: 150px;
    }
}

.radio-label:hover {
    border-color: var(--primary-500);
    background: var(--slate-50);
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-600);
}

label:has(input[type="radio"]:checked) {
    border-color: var(--primary-500) !important;
    background: var(--primary-50) !important;
}

label:has(input[type="radio"]:checked) span {
    font-weight: 600;
    color: var(--slate-800);
}

/* Results grid - Corporate Dark */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.result-item {
    background: var(--slate-800);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-700);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-item label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .result-item label {
        font-size: 0.8rem;
    }
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-500);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .result-value {
        font-size: 1.4rem;
    }
}

/* Highlight boxes - Corporate */
.highlight-box {
    background: var(--slate-50);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    border-left: 3px solid var(--primary-600);
    margin-top: 16px;
}

@media (min-width: 768px) {
    .highlight-box {
        margin-top: 20px;
    }
}

.highlight-box h3 {
    color: var(--primary-700);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .highlight-box h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Buttons - Corporate */
button, .button {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    font-family: inherit;
    min-height: 44px;
    font-weight: 500;
}

@media (min-width: 768px) {
    button, .button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

.add-ratenkredit-btn {
    background: var(--primary-600);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

@media (min-width: 768px) {
    .add-ratenkredit-btn {
        width: auto;
    }
}

.add-ratenkredit-btn:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-md);
}

.remove-ratenkredit-btn {
    background: #dc2626;
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    display: none;
}

@media (min-width: 768px) {
    .remove-ratenkredit-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.remove-ratenkredit-btn:hover {
    background: #b91c1c;
}

/* Help button - Corporate */
.help-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-600);
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .help-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

.help-button:hover {
    background: var(--primary-700);
    transform: scale(1.05);
}

/* Modal - Corporate */
.input-edit-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.input-edit-modal-content {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.2s ease-out;
    border: 1px solid var(--slate-200);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .input-edit-modal-content {
        padding: 28px;
    }
}

.input-edit-modal-header {
    margin-bottom: 20px;
}

.input-edit-modal-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    display: block;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .input-edit-modal-label {
        font-size: 1.2rem;
    }
}

.input-edit-modal-input {
    width: 100%;
    padding: 14px;
    font-size: 1.2rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--slate-700);
    transition: all 0.15s ease;
}

@media (min-width: 768px) {
    .input-edit-modal-input {
        font-size: 1.3rem;
        padding: 16px;
    }
}

.input-edit-modal-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-100);
}

.input-edit-modal-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

@media (min-width: 480px) {
    .input-edit-modal-buttons {
        flex-direction: row;
    }
}

.input-edit-modal-button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .input-edit-modal-button {
        padding: 14px 24px;
    }
}

.input-edit-modal-button.cancel {
    background: var(--slate-200);
    color: var(--slate-700);
}

.input-edit-modal-button.cancel:hover {
    background: var(--slate-300);
}

.input-edit-modal-button.confirm {
    background: var(--primary-600);
    color: var(--white);
}

.input-edit-modal-button.confirm:hover {
    background: var(--primary-700);
}

/* Contact Form - Corporate */
.contact-form {
    margin-top: 20px;
}

/* WhatsApp Contact Section */
.whatsapp-contact-section {
    background: var(--success-600);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.whatsapp-contact-section h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .whatsapp-contact-section h3 {
        font-size: 1.35rem;
    }
}

.whatsapp-contact-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--success-600);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.whatsapp-icon {
    flex-shrink: 0;
}

/* Contact Divider */
.contact-divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--slate-300);
}

.contact-divider::before {
    left: 0;
}

.contact-divider::after {
    right: 0;
}

.contact-divider span {
    background: var(--slate-50);
    padding: 0 16px;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--slate-700);
    background: var(--white);
    transition: all 0.15s ease;
    font-family: inherit;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-100);
}

.contact-submit-btn {
    background: var(--primary-600);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .contact-submit-btn {
        width: auto;
        min-width: 180px;
    }
}

.contact-submit-btn:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-md);
}

/* Total display */
.total-display {
    font-size: 1.25rem;
    text-align: center;
    color: var(--slate-800);
    font-weight: 700;
}

@media (min-width: 768px) {
    .total-display {
        font-size: 1.4rem;
    }
}

/* Yield value color coding */
.yield-value {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

@media (min-width: 768px) {
    .yield-value {
        font-size: 1rem;
    }
}

.yield-value.green {
    background-color: var(--success-100);
    color: var(--success-600);
}

.yield-value.yellow {
    background-color: #fef3c7;
    color: #b45309;
}

.yield-value.red {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Info icon & tooltip */
.field-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* When inside a field label */
.field-label .field-label-wrapper {
    display: flex;
    width: 100%;
    pointer-events: auto;
}

/* Info icon should be clearly tappable */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
    padding: 4px;
    margin: -4px;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.info-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: var(--primary-600);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    transition: all 0.15s;
}

@media (min-width: 768px) {
    .info-symbol {
        width: 18px;
        height: 18px;
    }
}

.info-symbol:hover {
    transform: scale(1.1);
    background-color: var(--primary-700);
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--slate-800);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    font-weight: normal;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    line-height: 1.4;
}

/* On mobile, position tooltip differently to avoid overflow */
@media (max-width: 767px) {
    .tooltip-text {
        width: 180px;
        font-size: 0.8rem;
        left: auto;
        right: 0;
        transform: none;
    }

    .tooltip-text::after {
        left: auto;
        right: 20px;
    }
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--slate-800) transparent transparent transparent;
}

.info-icon-wrapper:hover .tooltip-text,
.info-icon-wrapper:active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Menu title wrapper */
.menu-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .menu-title-wrapper {
        gap: 14px;
    }
}

/* Hidden sections */
.loan-parameters-section,
.results-section {
    display: none;
}

/* Field label without flex */
.field-label-no-flex {
    flex: initial;
}

/* Highlight box spacing */
.highlight-box-spacing {
    margin-top: 16px;
}

@media (min-width: 768px) {
    .highlight-box-spacing {
        margin-top: 20px;
    }
}

/* Affordability box styling */
.highlight-box-affordability {
    margin-top: 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.affordability-title {
    color: var(--slate-700);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .affordability-title {
        margin-bottom: 12px;
    }
}

.affordability-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .affordability-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

.affordability-item {
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
}

.affordability-label {
    display: block;
    margin-bottom: 4px;
    color: var(--slate-600);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .affordability-label {
        font-size: 0.85rem;
    }
}

.affordability-value {
    font-size: 1.05rem;
    color: var(--slate-800);
    font-weight: 600;
}

@media (min-width: 768px) {
    .affordability-value {
        font-size: 1.15rem;
    }
}

/* Loan overview spacer */
.loan-overview-spacer {
    display: none;
    height: 0;
    width: 100%;
    transition: height 0.2s ease;
    visibility: hidden;
}

.loan-overview.sticky ~ .content .loan-overview-spacer,
.content:has(.loan-overview.sticky) .loan-overview-spacer {
    display: block;
    visibility: visible;
}

.loan-overview-spacer.visible {
    display: block;
    visibility: visible;
}

/* Ratenkredit items - Corporate */
.ratenkredit-item {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .ratenkredit-item {
        padding: 18px;
        gap: 12px;
    }
}

.ratenkredit-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .ratenkredit-fields {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
}

/* Results section - Corporate Dark */
.results-section {
    padding: 20px 16px;
    background: var(--slate-800) !important;
    border: 1px solid var(--slate-700) !important;
    box-shadow: var(--shadow-md);
    margin: 0 0 24px 0;
    border-radius: var(--radius-md);
}

@media (min-width: 768px) {
    .results-section {
        padding: 24px;
        margin: 0 0 28px 0;
    }
}

.results-section h2 {
    color: var(--white) !important;
    border-bottom-color: var(--slate-600) !important;
}

/* Submit button general styling */
.submit-button {
    background: var(--primary-600);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

@media (min-width: 768px) {
    .submit-button {
        width: auto;
        padding: 12px 36px;
        font-size: 1rem;
    }
}

.submit-button:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-md);
}

/* Message containers */
#contact-message-container {
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: none;
    font-size: 0.95rem;
}

#contact-message-container.success {
    background: var(--success-100);
    color: var(--success-600);
    border: 1px solid #a7f3d0;
}

#contact-message-container.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Section headers */
.section h3 {
    color: var(--slate-700);
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .section h3 {
        margin-bottom: 14px;
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        padding: 0;
        background: white;
    }

    .tabs-navigation,
    .help-button,
    button:not(.no-print) {
        display: none !important;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Footer - Corporate */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .footer {
        padding: 24px 40px;
        font-size: 0.9rem;
    }
}

.footer p {
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Find a Flat (front-only MVP) */
.find-flat-results {
    margin-top: 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--slate-50);
    padding: 14px;
}

.find-flat-placeholder,
.find-flat-empty {
    color: var(--slate-600);
    margin: 0;
}

.find-flat-empty {
    color: #b45309;
}

.find-flat-summary {
    font-size: 0.9rem;
    color: var(--slate-700);
    margin-bottom: 12px;
}

.find-flat-ticket-table-wrap {
    overflow-x: auto;
}

.find-flat-ticket-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.find-flat-ticket-table th,
.find-flat-ticket-table td {
    border: 1px solid var(--slate-200);
    padding: 8px;
    font-size: 0.82rem;
    text-align: left;
    vertical-align: top;
}

.find-flat-ticket-table th {
    background: var(--slate-100);
    color: var(--slate-700);
    font-weight: 600;
}

.find-flat-status {
    font-weight: 700;
}

.find-flat-status-new {
    color: #1d4ed8;
}

.find-flat-status-in_progress {
    color: #b45309;
}

.find-flat-status-done {
    color: #059669;
}

.find-flat-status-rejected {
    color: #dc2626;
}

.find-flat-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .find-flat-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.find-flat-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.find-flat-card h3 {
    margin: 0 0 8px 0;
    color: var(--slate-800);
    font-size: 0.95rem;
}

.find-flat-card p {
    margin: 0 0 4px 0;
    color: var(--slate-600);
    font-size: 0.85rem;
}

/* =============================================
   GUEST LANDING PAGE
   ============================================= */

.guest-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* Hero */
.landing-hero {
    text-align: center;
    padding: 64px 24px 48px;
}

.landing-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .landing-hero-title { font-size: 2.5rem; }
}

.landing-hero-subtitle {
    font-size: 1rem;
    color: var(--slate-600);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.landing-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-600);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s;
}

.landing-btn-primary:hover { background: var(--primary-700); }

.landing-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary-600);
    border: 1.5px solid var(--primary-600);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.landing-btn-outline:hover {
    background: var(--primary-50);
}

/* Section title */
.landing-section-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .landing-section-title { font-size: 1.6rem; }
}

/* Services */
.landing-services {
    padding: 0 0 48px;
}

.landing-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .landing-services-grid { grid-template-columns: repeat(3, 1fr); }
}

.landing-service-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.landing-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    color: var(--primary-600);
    margin-bottom: 16px;
}

html[dir="rtl"] .landing-service-icon { margin-right: 0; }

.landing-service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.landing-service-card p {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* Pricing table */
.landing-pricing {
    padding: 0 0 16px;
}

.pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 480px;
}

.pricing-table thead th {
    padding: 16px 20px 12px;
    text-align: center;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    vertical-align: bottom;
}

.pricing-table thead th:first-child {
    text-align: start;
    background: transparent;
    border: none;
}

.pricing-col-popular {
    background: var(--primary-50) !important;
    border-color: var(--primary-500) !important;
}

.pricing-popular-badge {
    display: inline-block;
    background: var(--primary-600);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.pricing-plan-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.pricing-plan-price {
    font-size: 0.82rem;
    color: var(--slate-500);
    white-space: nowrap;
}

.pricing-table tbody tr:nth-child(even) td {
    background: var(--slate-50);
}

.pricing-table tbody tr:nth-child(even) .pricing-col-popular {
    background: var(--primary-100) !important;
}

.pricing-table tbody td {
    padding: 12px 20px;
    border: 1px solid var(--slate-200);
    text-align: center;
    color: var(--slate-700);
}

.pricing-table tbody td:first-child {
    text-align: start;
    font-weight: 500;
    color: var(--slate-700);
}

.pricing-check {
    color: var(--success-600);
    font-weight: 700;
    font-size: 1rem;
}

.pricing-dash {
    color: var(--slate-300);
}

.pricing-table tfoot td {
    padding: 16px 20px;
    text-align: center;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.pricing-table tfoot td:first-child {
    background: transparent;
    border: none;
}

.pricing-table tfoot .pricing-col-popular {
    background: var(--primary-50) !important;
}

.pricing-register-btn {
    display: inline-block;
    padding: 9px 18px;
    border: 1.5px solid var(--primary-600);
    color: var(--primary-600);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.pricing-register-btn:hover {
    background: var(--primary-50);
}

.pricing-register-btn-popular {
    background: var(--primary-600);
    color: var(--white);
}

.pricing-register-btn-popular:hover {
    background: var(--primary-700);
    color: var(--white);
}

html[dir="rtl"] .pricing-table tbody td:first-child,
html[dir="rtl"] .pricing-table thead th:first-child {
    text-align: right;
}
