/**
 * 23G — Yalnızca telefon & tablet (≤1024px).
 * Masaüstü (≥1025px) bu dosyadan etkilenmez.
 * Ölçek: clamp + vw — ekrana göre küçülür, dokunma hedefleri korunur.
 */

@media (max-width: 1024px) {
  :root {
    --touch-pad-page: clamp(0.55rem, 2.2vw, 1rem);
    --touch-pad-card: clamp(0.65rem, 2vw, 0.95rem);
    --touch-gap: clamp(0.38rem, 1.4vw, 0.65rem);
    --touch-gap-lg: clamp(0.55rem, 2vw, 0.85rem);
    --touch-radius: clamp(10px, 1.8vw, 14px);
    --touch-radius-lg: clamp(12px, 2.2vw, 16px);
    --touch-fs-xs: clamp(0.68rem, 2.2vw, 0.76rem);
    --touch-fs-sm: clamp(0.76rem, 2.6vw, 0.86rem);
    --touch-fs-md: clamp(0.84rem, 2.9vw, 0.94rem);
    --touch-fs-lg: clamp(0.94rem, 3.4vw, 1.08rem);
    --touch-fs-xl: clamp(1.02rem, 4vw, 1.28rem);
    --touch-fs-name: clamp(1.12rem, 4.8vw, 1.42rem);
    --touch-fs-metric: clamp(1.2rem, 5vw, 1.55rem);
    --touch-fs-weather: clamp(1.65rem, 7vw, 2.15rem);
    --touch-btn-min: clamp(2.35rem, 6.2vw, 2.6rem);
    --touch-input-min: max(1rem, clamp(0.84rem, 2.8vw, 0.94rem));
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  html.lenis,
  html.lenis body {
    height: auto !important;
    overflow-y: auto !important;
  }

  /* —— Genel buton & form —— */
  .btn,
  .btn-dash,
  a.btn-dash {
    font-size: var(--touch-fs-sm);
    padding: clamp(0.42rem, 1.6vw, 0.55rem) clamp(0.7rem, 2.8vw, 1rem);
    min-height: var(--touch-btn-min);
  }

  .btn-sm {
    font-size: var(--touch-fs-xs);
    min-height: clamp(2.1rem, 5.5vw, 2.35rem);
    padding: 0.35rem 0.65rem;
  }

  .form-group {
    margin-bottom: var(--touch-gap);
  }

  .form-group label {
    font-size: var(--touch-fs-xs);
    margin-bottom: 0.22rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: var(--touch-input-min);
    padding: clamp(0.42rem, 1.5vw, 0.52rem) clamp(0.5rem, 2vw, 0.65rem);
    border-radius: var(--touch-radius);
  }

  .sub,
  .hint {
    font-size: var(--touch-fs-xs);
    line-height: 1.42;
  }

  /* —— Üst menü (hamburger açık) —— */
  #nav-guest,
  #dash-actions-menu {
    gap: var(--touch-gap) !important;
    padding: var(--touch-gap) !important;
    border-radius: var(--touch-radius-lg) !important;
    max-height: calc(100svh - 4.8rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #nav-guest .btn-dash,
  #nav-guest a.btn-dash,
  #dash-actions-menu .btn-dash,
  #dash-actions-menu a.btn-dash,
  #dash-actions-menu .status-pill {
    font-size: var(--touch-fs-sm);
    min-height: var(--touch-btn-min);
    padding: clamp(0.4rem, 1.5vw, 0.52rem) clamp(0.65rem, 2.5vw, 0.85rem);
    justify-content: center;
    text-align: center;
  }

  #nav-guest .lang-switcher-container,
  #dash-actions-menu .lang-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #nav-guest .lang-switcher-wrap,
  #dash-actions-menu .lang-switcher-wrap {
    margin-left: 0 !important;
  }

  .status-pill {
    font-size: var(--touch-fs-xs);
    padding: clamp(0.35rem, 1.2vw, 0.45rem) clamp(0.6rem, 2.2vw, 0.8rem);
  }

  .dash-topbar,
  .app-header {
    padding-block: clamp(0.45rem, 1.5vw, 0.65rem) !important;
    gap: var(--touch-gap);
  }

  .dash-brand h1,
  .dash-brand h2,
  .brand-text {
    font-size: var(--touch-fs-lg) !important;
  }

  /* —— Dashboard gövde —— */
  .dash-wrap {
    padding: var(--touch-pad-page);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .welcome-hero {
    padding: var(--touch-pad-card);
    margin-bottom: var(--touch-gap-lg);
    border-radius: var(--touch-radius-lg);
    gap: var(--touch-gap);
  }

  .welcome-hero h2 {
    font-size: var(--touch-fs-xl);
    margin-bottom: 0.15rem;
  }

  .welcome-hero .tagline {
    font-size: var(--touch-fs-sm);
    line-height: 1.4;
  }

  .dash-hero {
    margin-bottom: var(--touch-gap-lg);
  }

  .dash-hero-text {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2.2vw, 0.75rem);
  }

  .dash-hero h1 {
    font-size: var(--touch-fs-xl);
    font-weight: 700;
    line-height: 1.3;
    font-family: inherit;
    margin: 0;
  }

  .dash-hero p.dash-hero-user {
    font-size: var(--touch-fs-name);
    font-weight: 700;
    line-height: 1.3;
    font-family: inherit;
    margin: 0;
    color: var(--text, #e8f4ef);
    letter-spacing: 0;
  }

  .dash--premium .dash-hero h1,
  .dash--premium .dash-hero p.dash-hero-user {
    background: linear-gradient(120deg, #f5e6b8, #d4a853, #f0d78c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .dash-hero-desc,
  .dash-hero p.dash-hero-desc {
    font-size: var(--touch-fs-sm);
    line-height: 1.5;
    margin: clamp(0.2rem, 1vw, 0.35rem) 0 0;
    padding-top: clamp(0.25rem, 1.2vw, 0.45rem);
  }

  .dash-hero p:not(.dash-hero-user):not(.dash-hero-desc) {
    font-size: var(--touch-fs-sm);
    line-height: 1.5;
  }

  .dash-weather-zone__content {
    padding: clamp(0.4rem, 1.6vw, 0.65rem) 0 clamp(0.3rem, 1.2vw, 0.5rem);
  }

  .section-label {
    margin: clamp(0.75rem, 2.8vw, 1.1rem) 0 clamp(0.4rem, 1.6vw, 0.55rem);
    font-size: var(--touch-fs-xs);
  }

  .plant-select,
  .plant-select-wrap select {
    font-size: var(--touch-input-min);
    padding: clamp(0.4rem, 1.4vw, 0.5rem) clamp(0.5rem, 2vw, 0.62rem);
    margin-top: clamp(0.2rem, 1vw, 0.35rem);
    margin-bottom: var(--touch-gap-lg);
    border-radius: var(--touch-radius);
  }

  .metrics-grid {
    gap: var(--touch-gap);
    margin-bottom: var(--touch-gap-lg);
  }

  .metric-card {
    padding: var(--touch-pad-card);
    border-radius: var(--touch-radius-lg);
  }

  .metric-card .label {
    font-size: var(--touch-fs-xs);
    margin-bottom: 0.22rem;
  }

  .metric-card .value {
    font-size: var(--touch-fs-metric);
    min-height: auto;
    line-height: 1.15;
  }

  .metric-card .sub {
    font-size: var(--touch-fs-xs);
    padding-top: 0.18rem;
  }

  .two-col {
    gap: var(--touch-gap);
    margin-bottom: var(--touch-gap-lg);
  }

  .panel {
    padding: var(--touch-pad-card);
    border-radius: var(--touch-radius-lg);
  }

  .panel h3 {
    font-size: var(--touch-fs-md);
    margin-bottom: var(--touch-gap);
  }

  .sensor-row {
    padding: clamp(0.45rem, 1.5vw, 0.58rem) clamp(0.5rem, 1.8vw, 0.65rem);
    gap: var(--touch-gap);
    font-size: var(--touch-fs-sm);
  }

  .fuel-box {
    padding: var(--touch-gap);
    margin-top: var(--touch-gap);
  }

  .fuel-box h4 {
    font-size: var(--touch-fs-sm);
  }

  .timer-controls {
    gap: var(--touch-gap);
    margin-top: var(--touch-gap);
  }

  .timer-controls input[type="number"] {
    width: clamp(72px, 18vw, 88px);
    font-size: var(--touch-input-min);
    padding: clamp(0.38rem, 1.3vw, 0.48rem);
  }

  .timer-display {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  }

  /* —— Hava durumu —— */
  .dash-weather-zone {
    margin-bottom: var(--touch-gap-lg);
    border-radius: var(--touch-radius-lg);
  }

  .panel--weather {
    margin-bottom: var(--touch-gap-lg) !important;
    min-height: auto !important;
  }

  .weather-panel__title {
    font-size: var(--touch-fs-md);
  }

  .weather-panel__time {
    font-size: var(--touch-fs-xs);
    padding: 0.14rem 0.42rem;
  }

  .weather-main-row {
    gap: var(--touch-gap-lg);
  }

  .weather-temp-big {
    font-size: var(--touch-fs-weather);
  }

  .weather-desc-big {
    font-size: var(--touch-fs-md);
  }

  .weather-details-big {
    font-size: var(--touch-fs-sm);
  }

  .weather-forecast-container {
    gap: var(--touch-gap);
  }

  .forecast-card,
  .weather-forecast-card {
    min-width: 0;
  }

  /* —— AI teşhis —— */
  .upload-zone {
    padding: var(--touch-pad-card);
    border-radius: var(--touch-radius);
  }

  .ai-upload-toolbar {
    gap: var(--touch-gap);
  }

  .btn-ai-run,
  .btn-ai-chip {
    min-height: var(--touch-btn-min);
    font-size: var(--touch-fs-sm);
    padding: clamp(0.4rem, 1.5vw, 0.52rem) clamp(0.55rem, 2vw, 0.75rem);
  }

  .ai-photo-guide {
    padding: var(--touch-gap) var(--touch-pad-card);
    font-size: var(--touch-fs-xs);
  }

  .ai-quota-badge {
    font-size: var(--touch-fs-xs);
    padding: clamp(0.28rem, 1vw, 0.38rem) clamp(0.45rem, 1.8vw, 0.62rem);
    border-radius: var(--touch-radius);
    min-width: 0;
    max-width: 100%;
  }

  .tobacco-ai-head {
    gap: var(--touch-gap);
    margin-bottom: var(--touch-gap);
  }

  /* —— Tohum paneli —— */
  .seed-market-panel,
  .corp-wrapper {
    margin-bottom: var(--touch-gap-lg);
  }

  .seed-panel-head {
    margin-bottom: var(--touch-gap);
  }

  .seed-panel-head h3 {
    font-size: var(--touch-fs-md);
    margin-bottom: 0.15rem;
  }

  .seed-panel-head .sub {
    font-size: var(--touch-fs-xs);
    line-height: 1.38;
  }

  .seed-panel-toolbar {
    gap: var(--touch-gap);
    margin-bottom: var(--touch-gap);
  }

  .seed-view-tab {
    font-size: var(--touch-fs-xs);
    padding: clamp(0.34rem, 1.2vw, 0.42rem) clamp(0.48rem, 1.8vw, 0.58rem);
    min-height: var(--touch-btn-min);
  }

  .seed-metric-card {
    padding: var(--touch-gap) var(--touch-pad-card);
    border-radius: var(--touch-radius);
  }

  /* —— Hesap planı / profil —— */
  .prof-plan-box {
    padding: var(--touch-pad-card);
    border-radius: var(--touch-radius);
  }

  .prof-plan-box strong {
    font-size: var(--touch-fs-md);
  }

  .prof-plan-actions {
    gap: var(--touch-gap);
    margin-top: var(--touch-gap);
  }

  .prof-plan-actions .btn {
    font-size: var(--touch-fs-sm);
    min-height: var(--touch-btn-min);
    padding: clamp(0.38rem, 1.4vw, 0.48rem) clamp(0.5rem, 2vw, 0.7rem);
    justify-content: center;
    text-align: center;
  }

  .plan-expiry-banner {
    padding: var(--touch-pad-card);
    margin-bottom: var(--touch-gap);
    border-radius: var(--touch-radius);
  }

  .plan-expiry-banner__inner p {
    font-size: var(--touch-fs-sm);
    line-height: 1.4;
  }

  /* —— Modallar —— */
  .modal-overlay {
    padding: var(--touch-gap);
  }

  .modal-overlay__box {
    padding: var(--touch-pad-card);
    border-radius: var(--touch-radius-lg);
    max-height: min(92vh, 720px);
    max-height: min(92svh, 720px);
  }

  .modal-overlay__box h2,
  .modal-overlay__box h3 {
    font-size: var(--touch-fs-lg);
  }

  .prof-hr {
    margin: var(--touch-gap) 0;
  }

  /* —— Akıllı takvim —— */
  .smart-cal-card,
  .panel--farm-calendar {
    padding: var(--touch-pad-card);
    border-radius: var(--touch-radius-lg);
  }

  .cal-add-row {
    gap: var(--touch-gap);
  }

  .cal-add-btn {
    min-height: var(--touch-btn-min);
    font-size: var(--touch-fs-sm);
  }

  /* —— Mesajlar —— */
  .msg-sidebar__head,
  .msg-main__head {
    padding: var(--touch-gap) var(--touch-pad-card);
    font-size: var(--touch-fs-sm);
  }

  .msg-conv-item {
    padding: var(--touch-gap) var(--touch-pad-card);
  }

  /* —— Toast & FAB —— */
  .toast {
    font-size: var(--touch-fs-sm);
    padding: var(--touch-gap) var(--touch-pad-card);
    border-radius: var(--touch-radius);
  }

  .issue-report-fab {
    font-size: var(--touch-fs-xs);
    padding: clamp(0.4rem, 1.4vw, 0.5rem) clamp(0.55rem, 2vw, 0.75rem);
    min-height: var(--touch-btn-min);
  }

  /* —— Mağaza / auth (tablet yatay) —— */
  .auth-card {
    padding: var(--touch-pad-card);
  }

  .auth-card h1 {
    font-size: var(--touch-fs-xl);
  }

  /* —— Yönetici paneli (tablet) —— */
  body.spa-view-admin .issue-report-fab {
    display: none !important;
  }

  .admin-wrapper {
    position: relative;
    z-index: 2;
    padding: var(--touch-pad-page);
    padding-bottom: clamp(3.5rem, 12vw, 5rem);
  }

  .admin-header {
    flex-wrap: wrap;
    gap: var(--touch-gap);
    padding: var(--touch-pad-card);
    margin-bottom: var(--touch-gap-lg);
  }

  .admin-header-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--touch-gap);
  }

  .admin-header-right .btn-dash {
    flex: 1 1 calc(50% - var(--touch-gap));
    min-height: var(--touch-btn-min);
    justify-content: center;
  }

  .admin-main-tabs {
    flex-direction: column;
    gap: var(--touch-gap);
    margin-bottom: var(--touch-gap-lg);
  }

  .admin-main-tab,
  .admin-tab-btn,
  .admin-toolbar .btn,
  .admin-settings-section .btn,
  .btn-admin,
  .admin-header .btn-dash,
  .admin-table .btn-dash,
  .admin-corp-sales-actions .btn-dash {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: var(--touch-btn-min);
    cursor: pointer;
  }

  .admin-main-tab {
    flex: none;
    width: 100%;
    padding: clamp(0.55rem, 2vw, 0.75rem) var(--touch-pad-card);
    font-size: var(--touch-fs-sm);
    justify-content: flex-start;
  }

  .admin-tabs {
    flex-wrap: wrap;
    gap: var(--touch-gap);
  }

  .admin-tab-btn {
    flex: 1 1 calc(50% - var(--touch-gap));
    min-width: calc(50% - var(--touch-gap));
    padding: clamp(0.45rem, 1.6vw, 0.55rem) clamp(0.55rem, 2vw, 0.75rem);
    font-size: var(--touch-fs-xs);
    text-align: center;
  }

  .admin-toolbar {
    flex-direction: column;
    gap: var(--touch-gap);
  }

  .admin-search,
  .admin-filter-select,
  .admin-fetch-input {
    width: 100%;
    min-height: var(--touch-btn-min);
    font-size: var(--touch-input-min);
  }

  .admin-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .admin-table .btn-dash,
  .admin-table .btn-admin {
    min-height: var(--touch-btn-min);
    padding: clamp(0.38rem, 1.4vw, 0.48rem) clamp(0.55rem, 2vw, 0.7rem);
    margin: 0.12rem 0;
  }

  .btn-dash--sm {
    min-height: var(--touch-btn-min);
    padding: clamp(0.38rem, 1.4vw, 0.48rem) clamp(0.55rem, 2vw, 0.7rem);
    font-size: var(--touch-fs-xs);
  }
}

/* Telefon — daha sıkı ölçek */
@media (max-width: 768px) {
  :root {
    --touch-pad-page: clamp(0.44rem, 2.6vw, 0.68rem);
    --touch-pad-card: clamp(0.52rem, 2.35vw, 0.76rem);
    --touch-gap: clamp(0.32rem, 1.7vw, 0.5rem);
    --touch-gap-lg: clamp(0.44rem, 2.2vw, 0.68rem);
    --touch-btn-min: clamp(2.25rem, 6vw, 2.45rem);
  }

  .app-header,
  .dash-topbar {
    padding: 0.45rem 0.58rem !important;
    min-height: auto;
  }

  .mobile-menu-toggle {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
  }

  #nav-guest,
  #dash-actions-menu {
    gap: 0.34rem !important;
    padding: 0.42rem !important;
  }

  #nav-guest .btn-dash,
  #nav-guest a.btn-dash,
  #dash-actions-menu .btn-dash,
  #dash-actions-menu a.btn-dash,
  #dash-actions-menu .status-pill {
    border-radius: 14px;
    min-height: var(--touch-btn-min);
    line-height: 1.2;
    white-space: normal;
  }

  .dash-brand,
  .brand {
    gap: 0.45rem;
  }

  .dash-brand-logo {
    width: 34px;
    height: 34px;
  }

  .dash-brand h2,
  .brand-text {
    font-size: clamp(0.82rem, 3.4vw, 0.95rem) !important;
  }

  .metrics-grid {
    gap: clamp(0.42rem, 2vw, 0.55rem);
  }

  .metric-card::before {
    width: clamp(56px, 16vw, 72px);
    height: clamp(56px, 16vw, 72px);
  }

  .dash-actions:not(#dash-actions-menu) .btn-dash {
    font-size: var(--touch-fs-xs);
    padding: 0.38rem 0.65rem;
    min-height: 2.35rem;
  }

  .weather-main-row {
    flex-direction: column;
  }

  .weather-forecast-container {
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: var(--touch-gap);
    justify-content: space-between;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-current {
    gap: var(--touch-gap);
  }

  .prof-plan-box {
    text-align: center;
  }

  .prof-plan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .prof-plan-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .ai-quota-badge {
    width: fit-content;
    align-self: center;
  }

  .ai-quota-badge__row {
    justify-content: center;
  }

  .toast-container {
    left: var(--touch-gap);
    right: var(--touch-gap);
    bottom: var(--touch-gap);
    max-width: none;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: var(--touch-gap);
  }

  .modal-overlay__box {
    border-radius: var(--touch-radius-lg) var(--touch-radius-lg) 10px 10px;
    width: 100%;
    max-width: 100%;
  }

  .modal-overlay__close {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .seed-metric-grid--2,
  .seed-metric-grid--3 {
    gap: var(--touch-gap);
  }

  .tobacco-ai-head {
    grid-template-columns: 1fr;
  }

  .tobacco-ai-head__photo {
    min-height: clamp(88px, 28vw, 110px);
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Kısa telefon ekranları: yükseklik azsa daha sıkı ama kullanılabilir. */
@media (max-width: 768px) and (max-height: 740px) {
  :root {
    --touch-pad-page: 0.42rem;
    --touch-pad-card: 0.5rem;
    --touch-gap: 0.3rem;
    --touch-gap-lg: 0.42rem;
    --touch-btn-min: 2.18rem;
    --touch-fs-xs: 0.66rem;
    --touch-fs-sm: 0.74rem;
    --touch-fs-md: 0.82rem;
    --touch-fs-lg: 0.9rem;
    --touch-fs-xl: 1rem;
    --touch-fs-metric: 1.14rem;
    --touch-fs-weather: 1.45rem;
  }

  .dash-hero-text {
    gap: 0.42rem;
  }

  .dash-hero-desc,
  .dash-hero p.dash-hero-desc {
    padding-top: 0.2rem;
  }

  .section-label {
    margin-top: 0.65rem;
  }

  .panel h3,
  .seed-panel-head,
  .weather-panel__head {
    margin-bottom: 0.32rem;
  }

  .weather-wind-chip,
  .ai-photo-guide,
  .ai-photo-tips {
    margin-top: 0.35rem;
  }

  .metric-card .label {
    margin-bottom: 0.14rem;
  }

  .prof-hr {
    margin: 0.42rem 0;
  }
}

/* Küçük telefon */
@media (max-width: 480px) {
  :root {
    --touch-fs-metric: clamp(1.1rem, 5.5vw, 1.35rem);
    --touch-fs-weather: clamp(1.45rem, 8vw, 1.85rem);
  }

  .metrics-grid > .metric-card:nth-child(5) {
    grid-column: span 1 !important;
  }

  .btn-ai-chip {
    flex: 1 1 calc(50% - var(--touch-gap));
  }

  .weather-forecast-container {
    grid-template-columns: 1fr 1fr;
  }

  .prof-plan-actions {
    grid-template-columns: 1fr;
  }

  .prof-plan-actions .btn:last-child {
    grid-column: auto;
  }

  .dash-brand .mark {
    min-width: 36px;
    height: 34px;
    font-size: 0.68rem;
  }

  .dash-brand-logo {
    width: 34px;
    height: 34px;
  }
}

/* Tablet — biraz daha ferah, yine kompakt */
@media (min-width: 769px) and (max-width: 1024px) {
  .dash-wrap {
    max-width: 920px;
    padding: clamp(0.75rem, 2vw, 1rem);
  }

  .plant-select {
    max-width: min(360px, 100%);
  }

  .weather-main-row {
    flex-wrap: wrap;
  }

  .weather-forecast-container {
    padding-left: clamp(0.65rem, 2vw, 0.85rem);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1 1 200px;
  }

  .prof-plan-actions .btn {
    min-width: clamp(7.5rem, 22vw, 9rem);
  }
}

/* —— Giriş / kayıt / auth (yalnızca telefon & küçük tablet, ≤900px) —— */
@media (max-width: 900px) {
  .app-body main {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.spa-view-auth .app-header,
  body.spa-view-auth .dash-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    flex-wrap: wrap;
    align-items: center;
  }

  body.spa-view-auth .auth-page,
  .auth-page--login,
  .corp-reg-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: auto !important;
    padding: var(--touch-pad-page) var(--touch-pad-page) clamp(4.5rem, 14vw, 6rem);
    box-sizing: border-box;
    gap: var(--touch-gap-lg);
  }

  body.spa-view-auth .auth-page > *,
  .auth-page--login > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.spa-view-auth .auth-card__brand {
    margin: 0 0 var(--touch-gap);
    padding: 0;
    text-align: center;
    font-size: clamp(0.58rem, 2.2vw, 0.7rem);
    line-height: 1.4;
    letter-spacing: 0.07em;
    word-break: break-word;
  }

  .login-type-tabs,
  .login-type-tabs--triple {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--touch-gap);
    width: 100%;
    max-width: 100% !important;
    margin: 0 0 var(--touch-gap-lg) !important;
    padding: 0;
    box-sizing: border-box;
  }

  .login-type-tab {
    flex: unset !important;
    min-width: 0;
    width: 100%;
    padding: clamp(0.48rem, 2vw, 0.65rem) clamp(0.3rem, 1.4vw, 0.45rem);
    font-size: var(--touch-fs-xs);
    gap: 0.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--touch-radius);
    line-height: 1.2;
  }

  .login-type-tab span:not(.login-type-icon) {
    display: block;
    max-width: 100%;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
  }

  .login-type-icon {
    font-size: clamp(1rem, 4.2vw, 1.22rem);
    line-height: 1;
    flex-shrink: 0;
  }

  body.spa-view-auth .login-panel,
  body.spa-view-auth .login-eye-wrap,
  body.spa-view-auth .auth-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .login-eye-wrap,
  .login-eye-outer {
    max-width: 100%;
  }

  .auth-footer {
    font-size: var(--touch-fs-xs);
    line-height: 1.45;
    text-align: center;
    word-break: break-word;
  }

  .auth-footer a {
    display: inline-block;
    margin: 0.12rem 0.2rem;
  }

  .site-footer--wide {
    padding: var(--touch-pad-card) var(--touch-pad-page) clamp(4.25rem, 14vw, 5.5rem);
  }

  .footer-inner {
    max-width: 100%;
    padding: 0 var(--touch-gap);
  }

  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin: 0.35rem 0;
  }

  .footer-legal a {
    font-size: var(--touch-fs-xs);
    line-height: 1.35;
  }

  .footer-tag {
    font-size: var(--touch-fs-xs);
    margin: 0.35rem 0 0.75rem;
  }

  .about-toggle,
  .about-more-toggle {
    max-width: 100%;
    font-size: var(--touch-fs-sm);
    padding: clamp(0.5rem, 2vw, 0.6rem) var(--touch-pad-card);
  }

  .issue-report-fab {
    right: var(--touch-gap);
    bottom: clamp(0.65rem, 3vw, 1rem);
    max-width: calc(100vw - 2 * var(--touch-gap));
    white-space: nowrap;
  }

  body.spa-view-auth .site-footer--wide + .issue-report-fab,
  body.spa-view-auth .issue-report-fab {
    bottom: clamp(0.75rem, 3.5vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .login-type-tabs--triple {
    grid-template-columns: 1fr 1fr;
  }

  .login-type-tabs--triple .login-type-tab:last-child {
    grid-column: 1 / -1;
  }

  .login-type-tabs--triple .login-type-tab:last-child {
    flex-direction: row;
    justify-content: center;
    gap: 0.45rem;
  }
}

@media (max-width: 400px) {
  .login-type-tabs,
  .login-type-tabs--triple {
    grid-template-columns: 1fr;
  }

  .login-type-tabs--triple .login-type-tab:last-child {
    grid-column: auto;
  }

  .login-type-tab {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.55rem 0.75rem;
    min-height: var(--touch-btn-min);
  }
}

/* Büyük tablet (landscape) dahil — dokunmatik kaydırma */
@media (pointer: coarse), (hover: none) {
  html,
  body {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
    height: auto !important;
  }

  html.lenis,
  html.lenis body {
    overflow-y: auto !important;
    overscroll-behavior: auto;
  }
}
