@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

:root {
    color-scheme: light;
    --ff-body: "Nunito Sans", sans-serif;
    --ff-title: "Nunito Sans", sans-serif;
    --ff-p: "Nunito Sans", sans-serif;
    
    --fw-normal: normal;
    --fw-thin: 100;
    --fw-elight: 200;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-sbold: 600;
    --fw-bold: 700;
    --fw-ebold: 800;
    --fw-black: 900;

    --fs-body: 14px;
    --fs-p: 14px;
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 22px;
    --fs-h4: 20px;
    --fs-h5: 18px;
    --fs-h6: 16px;

    --primary-rgb: 79, 70, 229;
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-primary-light: rgba(79, 70, 229, 0.1);
    --color-primary-glow: rgba(79, 70, 229, 0.25);
    
    --secondary-rgb: 254, 187, 123;
    --color-secondary: #FEBB7B;
    --color-gold: #FEBB7B;
    --color-gold-light: rgba(254, 187, 123, 0.15);
    
    --success-rgb: 40, 167, 69;
    --color-success: #28A745;
    --color-success-light: rgba(40, 167, 69, 0.12);
    
    --info-rgb: 20, 147, 255;
    --color-info: #1493FF;
    --color-info-light: rgba(20, 147, 255, 0.12);
    
    --warning-rgb: 255, 131, 15;
    --color-warning: #FF830F;
    --color-warning-light: rgba(255, 131, 15, 0.12);
    
    --danger-rgb: 230, 50, 50;
    --color-danger: #E63232;
    --color-danger-light: rgba(230, 50, 50, 0.12);

    --purple-rgb: 128, 0, 128;
    --color-purple: #800080;
    --color-purple-light: rgba(128, 0, 128, 0.12);

    /* Easis Tango Light Theme (Exact) */
    --bg-body: #F8F7FA;
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-subtle: #F6F5F2;
    --text-heading: #08062D;
    --text-body: #4B5563;
    --text-muted: #8D9EB5;
    --border-color: #DDE4E3;
    --border-subtle: #F0F1F5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(79, 70, 229, 0.08);
}

[data-theme="dark"] {
    color-scheme: dark;
    --color-primary: #818CF8;
    --color-primary-hover: #A5B4FC;
    --color-primary-light: rgba(129, 140, 248, 0.18);
    --color-primary-glow: rgba(129, 140, 248, 0.35);
    
    /* Easis Tango Dark Theme (Exact) */
    --bg-body: #020109;
    --bg-card: #0A0826;
    --bg-header: rgba(2, 1, 9, 0.95);
    --bg-subtle: #121033;
    --text-heading: #FFFFFF;
    --text-body: #E2E8F0;
    --text-muted: #9AA7B3;
    --border-color: #242247;
    --border-subtle: #191738;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body, input, select, textarea, button {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-title);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar / App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/*-----------------------------------------------------------------------------------
    Easis Tango (Dashnix) App Layout Architecture
    Sidebar (260px) + App Header + Content Area
-----------------------------------------------------------------------------------*/

.page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-body);
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.app-sidebar-header,
.main-sidebar-header {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.app-sidebar-header .site-logo,
.main-sidebar-header .site-logo {
    height: 140px;
    max-height: 148px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.app-sidebar-header .site-logo:hover,
.main-sidebar-header .site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 24px rgba(79, 70, 229, 0.35));
}

/* Karanlık tema logo kuralları tek yerde toplandı — dosyanın ilerisindeki
   "beyaz plaka" bloğuna bakınız. */

.app-sidebar-wrapper,
.main-sidebar {
    padding: 1rem 0;
    flex-grow: 1;
    overflow-y: auto;
}

.app-sidebar-main-menu,
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-menu-category,
.slide-category {
    padding: 0.85rem 1.25rem 0.35rem;
    list-style: none;
}

.sidebar-menu-category.collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-menu-category .category-toggle-icon {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.sidebar-menu-category.collapsed .category-toggle-icon {
    transform: rotate(-90deg);
}

.app-sidebar-main-menu li.category-hidden {
    display: none;
}

.sidebar-menu-category .category-name,
.slide-category {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    opacity: 0.85;
}

.slide {
    list-style: none;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    margin: 0.1rem 0.75rem;
    border-radius: 10px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.side-menu-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.side-menu-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.sidebar-menu-label {
    flex-grow: 1;
    font-size: 0.875rem; /* 14px */
    line-height: 1.3;
}

.side-menu-angle {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.slide.open > .sidebar-menu-item .side-menu-angle {
    transform: rotate(180deg);
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active,
.slide.active > .sidebar-menu-item {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar-menu-item:hover .side-menu-icon,
.sidebar-menu-item.active .side-menu-icon,
.slide.active > .sidebar-menu-item .side-menu-icon {
    color: var(--color-primary);
}

.sidebar-menu-item:hover .side-menu-icon svg,
.sidebar-menu-item.active .side-menu-icon svg,
.slide.active > .sidebar-menu-item .side-menu-icon svg {
    fill: var(--color-primary);
}

/* Nested Child Submenu */
.sidebar-menu.child1 {
    list-style: none;
    padding: 0.25rem 0 0.25rem 1.5rem;
    display: none;
}

.sidebar-menu.child1 .sidebar-menu-item {
    padding: 0.5rem 0.85rem;
    font-size: 0.825rem; /* 13px */
    margin: 0.1rem 0.5rem;
}

.main-menu .slide a i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.main-menu .slide a:hover,
.main-menu .slide.active a {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.main-menu .slide a:hover i,
.main-menu .slide.active a i {
    color: var(--color-primary);
}

/* App Header Area */
.app-header-area {
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    height: 80px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: left 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
}

.sidemenu-toggle {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    width: 280px;
}

.header-search i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.header-search input {
    border: none;
    background: transparent;
    color: var(--text-heading);
    outline: none;
    font-size: 0.875rem;
    width: 100%;
}

.header-search {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    padding: 0.5rem 0;
}

.search-results-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-body);
    text-decoration: none;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.focused {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.search-result-item i {
    font-size: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.08);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-title {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--text-heading);
}

.search-result-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Main Content Area */
.app-content-area {
    margin-left: 260px;
    margin-top: 80px;
    flex-grow: 1;
    padding: 2.5rem 2rem;
    width: calc(100% - 260px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Collapsed Sidebar State */
.page.sidebar-collapsed .app-sidebar {
    transform: translateX(-260px);
}

.page.sidebar-collapsed .app-header-area {
    left: 0;
}

.page.sidebar-collapsed .app-content-area {
    margin-left: 0;
    width: 100%;
}

/* Mobile Sidebar Overlay */
.app-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.site-logo {
    height: 88px;
    max-height: 94px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 16px rgba(79, 70, 229, 0.25));
}

[data-theme="dark"] .site-logo {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    height: 80px;
    max-height: 86px;
}

.footer-logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .footer-logo-img {
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
}

.phone-link i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Theme Toggle Switcher */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-heading);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.925rem;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25 ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.btn-dark {
    background-color: #1F2937;
    color: #FFFFFF;
}

.btn-dark:hover {
    background-color: #111827;
    color: #FFFFFF;
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.07) 0%, transparent 60%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.feature-tag.green { color: var(--color-success); border-color: rgba(16, 185, 129, 0.3); }
.feature-tag.blue { color: var(--color-info); border-color: rgba(14, 165, 233, 0.3); }
.feature-tag.purple { color: var(--color-purple); border-color: rgba(147, 51, 234, 0.3); }

/* Decision Helper Card (Hero Right) */
.decision-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.decision-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.decision-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.decision-item {
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
}

.decision-item:hover, .decision-item.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.decision-item p.q {
    font-size: 0.875rem;
    color: var(--text-body);
}

.decision-item p.a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

/* Stat Cards Section */
.stats-section {
    padding: 2.5rem 0;
    background: var(--bg-card);
    border-y: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.avatar-xl {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-radius: 16px;
}

.bg-primary-transparent { background: rgba(79, 70, 229, 0.12); color: var(--color-primary); }
.bg-info-transparent { background: rgba(14, 165, 233, 0.12); color: var(--color-info); }
.bg-success-transparent { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
.bg-warning-transparent { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
.bg-purple-transparent { background: rgba(147, 51, 234, 0.12); color: var(--color-purple); }

.stat-info h2 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Pricing / Company Setup Comparison */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 2rem;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
}

.pricing-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.meta-row span.label {
    color: var(--text-muted);
}

.meta-row span.val {
    font-weight: 700;
    color: var(--text-heading);
}

.meta-row span.val.highlight {
    color: var(--color-primary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.pricing-features li i.ri-check-line {
    color: var(--color-success);
    font-size: 1.1rem;
    font-weight: bold;
}

.pricing-features li i.ri-close-line {
    color: var(--color-danger);
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.service-card.featured-service {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-color: var(--color-primary);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.925rem;
    color: var(--text-body);
    flex-grow: 1;
}

.service-link {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* User Profiles Grid ("Kim Olduğunuzu Seçin") */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.profile-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Founders / Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid var(--border-color);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.team-role {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.team-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.team-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-body);
}

/* Call to Action Banner */
.cta-banner {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    border-radius: 28px;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.cta-banner h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-banner .btn-light {
    background-color: #FFFFFF;
    color: var(--color-primary);
    font-weight: 800;
}

.cta-banner .btn-light:hover {
    background-color: #F3F4F6;
    transform: translateY(-2px);
}

/* Footer (Easis Tango Style) */
.app-footer {
    background-color: #0E1726;
    color: #8D9EB5;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid #1E2842;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.85rem;
}

.copy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #141D2F;
    border: 1px solid #242E4C;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    color: #CBD5E1;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.copy-badge:hover {
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.footer-title {
    color: #FFFFFF;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #8D9EB5;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid #1E2842;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 23, 38, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.5rem;
}

.close-btn {
    background: var(--bg-subtle);
    border: none;
    color: var(--text-heading);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-heading);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Date Input & Calendar Icon Visibility */
input[type="date"] {
    position: relative;
    color-scheme: light;
}

[data-theme="dark"] input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 6px;
    padding: 3px;
    opacity: 0.85;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: var(--color-primary-light);
}

/* Toast alert */
.toast-msg {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--color-success);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid, .why-us-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid, .services-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card.featured-service {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .stats-grid, .profiles-grid {
        grid-template-columns: 1fr;
    }
}

/*-----------------------------------------------------------------------------------
    Easis Tango Dark Mode High-Contrast Component Overrides
-----------------------------------------------------------------------------------*/

[data-theme="dark"] .nav-link {
    color: #E2E8F0;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #818CF8;
}

[data-theme="dark"] .phone-link {
    color: #FFFFFF;
}

[data-theme="dark"] .phone-link i {
    color: #818CF8;
}

[data-theme="dark"] .badge-pill {
    background: rgba(129, 140, 248, 0.15);
    color: #A5B4FC;
    border-color: rgba(129, 140, 248, 0.35);
}

[data-theme="dark"] .hero-subtitle {
    color: #CBD5E1;
}

[data-theme="dark"] .btn-outline-primary {
    color: #FFFFFF;
    border-color: #818CF8;
    background: rgba(129, 140, 248, 0.12);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: #818CF8;
    color: #0A0826;
}

[data-theme="dark"] .feature-tag {
    background: #0A0826;
    border-color: #242247;
}

[data-theme="dark"] .feature-tag.green {
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.4);
}

[data-theme="dark"] .feature-tag.blue {
    color: #818CF8;
    border-color: rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .feature-tag.purple {
    color: #C084FC;
    border-color: rgba(192, 132, 252, 0.4);
}

/* Decision Guide Widget Dark Overrides */
[data-theme="dark"] .decision-card {
    background: #0A0826;
    border-color: #242247;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .decision-card h3 {
    color: #FFFFFF;
}

[data-theme="dark"] .decision-card p {
    color: #9AA7B3;
}

[data-theme="dark"] .decision-item {
    background: #121033;
    border-color: #242247;
}

[data-theme="dark"] .decision-item:hover,
[data-theme="dark"] .decision-item.selected {
    background: rgba(129, 140, 248, 0.18);
    border-color: #818CF8;
}

[data-theme="dark"] .decision-item p.q {
    color: #F8FAFC;
    font-weight: 600;
}

[data-theme="dark"] .decision-item p.a {
    color: #818CF8;
    font-weight: 700;
}

/* Cards & Text Dark Overrides */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .why-item,
[data-theme="dark"] .team-card {
    background: #0A0826;
    border-color: #242247;
}

[data-theme="dark"] .pricing-card.featured {
    border-color: #818CF8;
    box-shadow: 0 10px 30px rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .meta-row span.label {
    color: #9AA7B3;
}

[data-theme="dark"] .meta-row span.val {
    color: #FFFFFF;
}

[data-theme="dark"] .meta-row span.val.highlight {
    color: #818CF8;
}

[data-theme="dark"] .pricing-features li {
    color: #E2E8F0;
}

[data-theme="dark"] .service-desc,
[data-theme="dark"] .profile-desc,
[data-theme="dark"] .team-title,
[data-theme="dark"] .section-subtitle {
    color: #9AA7B3;
}

[data-theme="dark"] .btn-dark {
    background-color: #1F1C4D;
    color: #FFFFFF;
    border: 1px solid #332F73;
}

[data-theme="dark"] .btn-dark:hover {
    background-color: #332F73;
    color: #FFFFFF;
}

[data-theme="dark"] .app-sidebar-header,
[data-theme="dark"] .main-sidebar-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Karanlık temada logo, koyu zeminde okunmuyordu; alt bilgideki çözümün aynısı
   uygulanarak logo beyaz bir plaka üzerine alınır (renkleri bozan invert/parıltı yok). */
[data-theme="dark"] .app-sidebar-header .site-logo,
[data-theme="dark"] .main-sidebar-header .site-logo {
    background: #FFFFFF;
    padding: 10px 18px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
    filter: none;
    height: 116px;
    max-height: 120px;
    max-width: 200px;
}

[data-theme="dark"] .app-sidebar-header .site-logo:hover,
[data-theme="dark"] .main-sidebar-header .site-logo:hover {
    transform: scale(1.04);
    filter: none;
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
}


/*-----------------------------------------------------------------------------------
    Uygulama Kabuğu ve BDP Formları — Mobil / Tablet Uyarlaması
    Not: Sayfaların kendi <style> blokları main.css'ten sonra geldiği için buradaki
    kurallar .bdp-scope / .page gibi bir üst sınıfla yazılır (özgüllük gereği).
-----------------------------------------------------------------------------------*/

/* ---- Tablet ve altı: kenar çubuğu çekmeceye dönüşür ---- */
@media (max-width: 1024px) {
    .page .app-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(15, 23, 42, .18);
    }
    .page.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    .page.sidebar-open .app-offcanvas-overlay {
        display: block;
    }
    .page .app-header-area {
        left: 0;
    }
    .page .app-content-area {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1rem;
    }
    /* çekmecedeki dev logo alanını küçült */
    .page .app-sidebar-header {
        height: 96px;
    }
    .page .app-sidebar-header .site-logo {
        height: 76px;
        max-height: 80px;
    }
    .header-content {
        padding: 0 1rem;
        gap: .75rem;
    }
    /* sol grup (menü düğmesi + başlık) daralabilsin, başlık kısalsın */
    .header-content > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
    }
    .header-content > div:first-child > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-actions {
        gap: .4rem;
        flex-shrink: 0;
        min-width: 0;
    }
    /* telefon numarası bağlantısı dar ekranda simgeye iner */
    .header-actions .phone-link span {
        display: none;
    }
}

/* ---- Telefon: başlık ve üst şerit sadeleşir ---- */
@media (max-width: 640px) {
    .app-header-area {
        height: 64px;
    }
    .app-content-area {
        margin-top: 64px;
        padding: 1rem .75rem;
    }
    .header-content > div:first-child > span {
        font-size: .92rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 45vw;
    }
    .header-actions .btn .btn-label-full {
        display: none;
    }
    .ebyn-top-bar {
        padding: .7rem .9rem !important;
    }
    .ebyn-top-title-group {
        gap: .45rem !important;
    }
    .ebyn-top-title-group > strong {
        font-size: .9rem !important;
        line-height: 1.35;
    }
}

/* ---- BDP form gövdesi: satırlar dikey yığılır, alanlar tam genişlik ---- */
@media (max-width: 780px) {
    .bdp-scope .workspace {
        padding: 1rem .75rem 2rem;
        gap: 14px;
    }
    .bdp-scope .bdp-body {
        padding: 12px;
        min-height: 0;
    }
    .bdp-scope .bdp-fieldset {
        padding: 16px 12px 14px;
    }
    .bdp-scope .bdp-legend {
        font-size: 10.5px;
        line-height: 1.3;
        position: static;
        display: block;
        margin: -6px 0 10px;
        padding: 0;
        background: transparent;
    }
    /* etiket üstte tam satır, alanlar altında akar (telefon gibi ikili alanlar
       yan yana kalabilsin diye column yerine wrap kullanılır) */
    .bdp-scope .bdp-row {
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 12px;
        gap: 4px 6px;
    }
    .bdp-scope .bdp-label,
    .bdp-scope .bdp-label-wide {
        flex: 1 1 100%;
        width: auto;
        margin-bottom: 0;
    }
    /* geniş alanlar tam satır */
    .bdp-scope .bdp-row > input:not(.w-code):not(.w-phone):not(.w-year),
    .bdp-scope .bdp-row > select {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        height: 34px;
        font-size: 16px; /* iOS'ta odaklanınca yakınlaşmayı önler */
    }
    .bdp-scope .w-long,
    .bdp-scope .w-medium,
    .bdp-scope .w-short,
    .bdp-scope .w-full,
    .bdp-scope .w-tiny {
        width: 100%;
        max-width: 100%;
    }
    /* alan kodu – numara ikilisi yan yana kalır */
    .bdp-scope .bdp-row > .w-code {
        flex: 0 0 68px;
        width: 68px;
        height: 34px;
        font-size: 16px;
    }
    .bdp-scope .bdp-row > .w-phone {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 34px;
        font-size: 16px;
    }
    .bdp-scope .bdp-row > .w-year {
        flex: 0 0 96px;
        width: 96px;
        height: 34px;
        font-size: 16px;
    }
    /* tablolar kendi içinde yatay kayar */
    .bdp-scope .tbl-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #D4DAE2;
        border-radius: 4px;
    }
    .bdp-scope .tbl-wrap .bdp-table {
        margin: 0;
        border: none;
    }
    /* toplam satırları taşmasın */
    .bdp-scope .tbl-total {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 4px 8px;
        margin-top: 8px;
    }
    .bdp-scope .tbl-total > input {
        width: 100%;
        max-width: 100%;
    }
    /* sekmeler tek satırda kaydırılabilir */
    .bdp-scope .bdp-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bdp-scope .bdp-tabs::-webkit-scrollbar {
        display: none;
    }
    .bdp-scope .bdp-tab {
        flex: 0 0 auto;
    }
    /* sağ şerit alta iner, düğmeler ızgaraya girer */
    .bdp-scope .rail {
        width: 100% !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .bdp-scope .rail .btn-save {
        flex: 1 1 100%;
        margin-bottom: 0;
    }
    .bdp-scope .rail .rail-link {
        flex: 1 1 calc(50% - 4px);
    }
    .bdp-scope .rail .rail-status,
    .bdp-scope .rail .rail-group-title,
    .bdp-scope .rail .zoom-group,
    .bdp-scope .rail .ver-group,
    .bdp-scope .rail > div[id$="-grid"] {
        flex: 1 1 100%;
    }
    /* ölçek düğmeleri mobilde işlevsiz — başlığıyla birlikte gizle */
    .bdp-scope .rail .zoom-group,
    .bdp-scope .rail .rail-group-title:has(+ .zoom-group) {
        display: none;
    }
    /* arama/seçim kutuları */
    .lookup-modal-dialog {
        max-height: 88vh;
    }
    .lookup-table-wrapper {
        max-height: 50vh;
    }
    .lookup-modal-body,
    .lookup-modal-header,
    .lookup-modal-footer {
        padding: .85rem 1rem;
    }
}

/* ---- Beyanname listesi (ebeyanname.html) ---- */
@media (max-width: 780px) {
    body .ebyn-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.1rem 1.1rem;
    }
    body .ebyn-item {
        flex-wrap: wrap;
        gap: .5rem .7rem;
        padding: .75rem .8rem;
    }
    body .ebyn-item .ebyn-item-desc {
        flex: 1 1 100%;
        order: 3;
        font-size: .8rem;
    }
    body .ebyn-item .ebyn-item-action {
        margin-left: auto;
    }
}

/* ---- Dikey yığılmada (≤1100px) pencere ve şerit tam genişlik olmalı ----
   Sayfaların kendi kuralı .workspace'i column yapıyor ancak align-items:flex-start
   olduğu için çocuklar içerik genişliğine göre büyüyüp taşıyordu. */
@media (max-width: 1100px) {
    .bdp-scope .workspace {
        align-items: stretch;
        max-width: 100%;
    }
    .bdp-scope .workspace > .bdp-window,
    .bdp-scope .workspace > .rail {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }
    .bdp-scope .bdp-window {
        overflow: hidden;
    }
    .bdp-scope .bdp-pane,
    .bdp-scope .bdp-fieldset,
    .bdp-scope .bdp-body {
        min-width: 0;
        max-width: 100%;
    }
}

/* ---- Telefonda üst bar: "Beyanname Listesi" düğmesi simgeye iner ---- */
@media (max-width: 640px) {
    .header-actions .btn-sm {
        font-size: 0;
        gap: 0;
        padding: .5rem .6rem;
        line-height: 1;
    }
    .header-actions .btn-sm i {
        font-size: 1.1rem;
        margin: 0;
    }
    .header-actions .theme-toggle-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
}

/* ---- Hesaplama araçları sayfaları: satır-içi ızgara tanımları mobilde tek sütuna iner
   (grid tanımları HTML'de style="" ile gömülü olduğu için !important gerekiyor) ---- */
@media (max-width: 900px) {
    .app-content-area .calc-grid {
        display: block !important;
        width: 100% !important;
    }
    .app-content-area .calc-grid > * {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .app-content-area .calc-grid > * + * {
        margin-top: 1.25rem;
    }
    .app-content-area .calc-card {
        padding: 1.15rem 1rem;
        width: auto !important;
        max-width: 100%;
    }
}

/* ikili form ızgaraları telefonda alt alta */
@media (max-width: 620px) {
    .app-content-area [style*="grid-template-columns: 1fr 1fr"],
    .app-content-area [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .app-content-area .form-control,
    .app-content-area .form-select {
        font-size: 16px; /* iOS yakınlaştırmasını engeller */
    }
    /* geniş sonuç tabloları kendi içinde kayar */
    .app-content-area .table-calc {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* Karanlık temada beyaz logo plakası, mobil çekmecenin kısa başlığına sığdırılır */
@media (max-width: 1024px) {
    [data-theme="dark"] .page .app-sidebar-header .site-logo {
        height: 58px;
        max-height: 62px;
        padding: 8px 14px;
        border-radius: 12px;
    }
}
