:root {
      --primary: #6366f1;
      --primary-dark: #4f46e5;
      --success: #10b981;
      --danger: #ef4444;
      --warning: #f59e0b;
      --glass-bg: rgba(255, 255, 255, 0.85);
      --glass-border: rgba(255, 255, 255, 1);
      --text-muted: #64748b;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

    body {
      background: #f8fafc;
      background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.12), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.12), transparent 25%);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 40px 20px 60px 20px;
      color: #0f172a;
      position: relative;
    }



    .auth-card {
      width: 100%;
      max-width: 1200px;
      margin: auto; /* Ensure short panels stay vertically centered */
      background: var(--glass-bg);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid var(--glass-border);
      border-radius: 28px;
      box-shadow: 0 32px 64px -12px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(0,0,0,0.02);
      overflow: visible;
      position: relative;
      z-index: 1;
      animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
      transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(32px) scale(0.97); }
      to   { opacity: 1; transform: none; }
    }

    /* Hareketli Fırsat Kartı */
    .floating-offer-badge {
      position: absolute;
      bottom: -15px;
      right: -15px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 1);
      padding: 12px 24px;
      border-radius: 100px;
      font-weight: 800;
      font-size: 15px;
      color: #ef4444;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15), 0 0 0 6px rgba(255,255,255,0.4);
      animation: floatBadgeAnim 4s ease-in-out infinite;
      z-index: 20;
    }
    @keyframes floatBadgeAnim {
      0% { transform: translateY(0) rotate(-2deg); }
      50% { transform: translateY(-12px) rotate(3deg); }
      100% { transform: translateY(0) rotate(-2deg); }
    }

    /* Panel geçiş mekanizması */
    .panels-wrapper {
      display: flex;
      align-items: flex-start; /* Yüksekliklerin kendi içeriğine göre kalması için */
      width: 100%;
      transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
    }

    .panel {
      width: 100%;
      flex-shrink: 0;
      padding: 32px 36px;
    }

    /* Portal Grid ve Kart Tasarımları (Dinamik Çapraz Deste) */
    .portal-grid {
      position: relative;
      width: 100%;
      height: 600px;
      margin-top: 40px;
      margin-bottom: 40px;
    }

    .portal-landing-card {
      position: absolute;
      top: 0;
      left: 0;
      width: calc(100% - 220px);
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 24px;
      display: flex;
      flex-direction: row;
      overflow: hidden;
      box-shadow: 0 15px 35px rgba(0,0,0,0.4);
      transition: transform 0.6s cubic-bezier(0.25, 1, 0.4, 1), opacity 0.6s ease, z-index 0s, box-shadow 0.6s ease;
      cursor: pointer;
    }
    
    .portal-landing-card:hover {
      box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    }

    /* Dinamik Pozisyonlar */
    .portal-landing-card[data-pos="0"] {
      transform: translate(0px, 0px) scale(1);
      z-index: 10;
      opacity: 1;
      border-color: #c7d2fe;
      box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15), 0 0 0 2px rgba(99, 102, 241, 0.2);
      cursor: default;
    }
    .portal-landing-card[data-pos="1"] {
      transform: translate(70px, 70px) scale(0.98);
      z-index: 9;
      opacity: 0.9;
    }
    .portal-landing-card[data-pos="2"] {
      transform: translate(140px, 140px) scale(0.96);
      z-index: 8;
      opacity: 0.75;
    }
    .portal-landing-card[data-pos="3"] {
      transform: translate(210px, 210px) scale(0.94);
      z-index: 7;
      opacity: 0.6;
    }

    .portal-landing-card.coming-soon[data-pos="0"] { opacity: 1; }
    .portal-landing-card.coming-soon[data-pos="1"] { opacity: 0.7; }
    .portal-landing-card.coming-soon[data-pos="2"] { opacity: 0.5; }
    .portal-landing-card.coming-soon[data-pos="3"] { opacity: 0.4; }

    .plc-image {
      width: 50%;
      min-height: 350px;
      background-size: cover;
      background-position: center;
      position: relative;
    }

    /* Resmin altına karartma efekti (yazının okunması için) */
    .plc-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
      pointer-events: none;
      z-index: 1;
    }

    /* Resim altındaki filigran başlık */
    .plc-image-label {
      position: absolute;
      bottom: 24px;
      left: 30px;
      font-size: 18px;
      font-weight: 800;
      color: rgba(255, 255, 255, 0.9);
      letter-spacing: 1.5px;
      pointer-events: none;
      z-index: 2;
    }

    .plc-content {
      width: 50%;
      padding: 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: left;
    }

    .plc-icon-box {
      width: 44px;
      height: 44px;
      background: rgba(79, 70, 229, 0.15);
      color: #818cf8;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
    }

    .plc-title {
      font-size: 26px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 12px;
      letter-spacing: -0.5px;
    }

    .plc-desc {
      font-size: 14px;
      color: #475569;
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .plc-features {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 30px;
    }

    .plc-feature-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #334155;
      font-weight: 500;
    }

    .plc-feature-item .material-icons {
      color: var(--primary);
      font-size: 18px;
    }

    /* Portal Footer Linkleri */
    .portal-footer-links {
      display: flex;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 20px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #e2e8f0;
    }
    .portal-footer-links a {
      color: #64748b;
      text-decoration: none;
      font-size: 13px;
      transition: color 0.3s ease;
    }
    .portal-footer-links a:hover {
      color: #0f172a;
    }

    .plc-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .plc-btn {
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 100px;
      padding: 12px 28px;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }
    
    .plc-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    }

    .portal-badge {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 20px;
      letter-spacing: 0.5px;
    }

    .portal-badge.soon {
      background: rgba(245, 158, 11, 0.15);
      color: #f59e0b;
      border: 1px solid rgba(245, 158, 11, 0.25);
    }

    .portal-badge.free {
      background: rgba(16, 185, 129, 0.15);
      color: #10b981;
      border: 1px solid rgba(16, 185, 129, 0.25);
    }

    @media (max-width: 800px) {
      .portal-grid {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
      }
      .portal-landing-card {
        position: static;
        width: 100%;
        flex-direction: column;
        opacity: 1;
        transform: none !important;
      }
      .plc-image, .plc-content {
        width: 100%;
      }
      .plc-image {
        min-height: 220px;
      }
      .plc-features {
        grid-template-columns: 1fr;
      }
      .plc-content {
        padding: 30px 20px;
      }
    }

    /* Logo */
    .logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 20px;
    }

    .logo-text {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.5px;
      background: linear-gradient(to right, #0f172a, #475569);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    
    .logo-sub { color: #64748b; font-size: 13px; margin-top: -2px; }
    .module-badge {
      display: inline-block; padding: 4px 12px;
      background: rgba(79, 70, 229, 0.15);
      border: 1px solid rgba(79, 70, 229, 0.3);
      color: #818cf8; border-radius: 100px; font-size: 11px; font-weight: 600;
      letter-spacing: 0.08em; margin-top: 4px;
    }

    /* Panel başlığı */
    .panel-header { text-align: center; margin-bottom: 20px; }
    .panel-header h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
    .panel-header p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

    /* Form elemanları */
    .form-group { margin-bottom: 14px; }
    .form-group label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 7px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-wrapper > .material-icons {
      position: absolute;
      left: 13px;
      font-size: 19px;
      color: #475569;
      pointer-events: none;
      transition: color 0.2s;
      z-index: 2;
    }

    .input-wrapper input, .input-wrapper textarea {
      width: 100%;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 11px 40px 11px 42px;
      color: #0f172a;
      font-size: 14px;
      transition: all 0.25s;
    }

    .input-wrapper input::placeholder, .input-wrapper textarea::placeholder { color: #94a3b8; }

    .input-wrapper input:focus, .input-wrapper textarea:focus {
      outline: none;
      border-color: var(--primary);
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    .input-wrapper input:focus + .material-icons,
    .input-wrapper textarea:focus + .material-icons,
    .input-wrapper:focus-within .material-icons { color: var(--primary); }

    /* Şifre göster/gizle toggle */
    .pw-toggle {
      position: absolute;
      right: 12px;
      background: none;
      border: none;
      color: #475569;
      cursor: pointer;
      font-size: 19px;
      padding: 4px;
      display: flex;
      align-items: center;
      transition: color 0.2s;
      z-index: 10;
    }
    .pw-toggle:hover { color: #94a3b8; }

    /* Ana buton */
    .btn-primary {
      width: 100%;
      background: linear-gradient(135deg, var(--primary), #7c3aed);
      color: white;
      border: none;
      border-radius: 12px;
      padding: 13px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s;
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
    }

    .btn-primary:active { transform: translateY(0); }
    .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    /* İkincil link-butonlar */
    .link-btn {
      background: none;
      border: none;
      color: var(--primary);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
      text-decoration: none;
      transition: color 0.2s;
    }
    .link-btn:hover { color: #818cf8; text-decoration: underline; }

    /* Alt bar: Hesabın yok mu? */
    .panel-footer {
      text-align: center;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid #e2e8f0;
      font-size: 13px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    /* "Şifremi unuttum" satırı */
    .forgot-row {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 8px;
    }

    /* Dropdown Menü Stilleri */
    .dropdown {
      position: relative;
      display: inline-block;
    }
    /* Görünmez fare köprüsü */
    .dropdown::after {
      content: "";
      position: absolute;
      top: 100%;
      left: -10px;
      width: calc(100% + 20px);
      height: 20px;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      left: -10px;
      background-color: #ffffff;
      min-width: 240px;
      box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      z-index: 100;
      padding: 8px 0;
      margin-top: 16px;
      opacity: 0;
      transform: translateY(-10px);
      transition: opacity 0.2s, transform 0.2s;
    }
    .dropdown:hover .dropdown-content {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
    /* Bir üçgen ok ekleyelim */
    .dropdown-content::before {
      content: "";
      position: absolute;
      top: -6px;
      left: 24px;
      width: 12px;
      height: 12px;
      background-color: #ffffff;
      border-left: 1px solid #e2e8f0;
      border-top: 1px solid #e2e8f0;
      transform: rotate(45deg);
    }
    .dropdown-content a {
      color: #475569;
      padding: 12px 20px;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 500;
      transition: background 0.2s, color 0.2s;
      position: relative;
      z-index: 2;
    }
    .dropdown-content a:hover {
      background-color: #f8fafc;
      color: #0f172a;
    }
    .dropdown-content .material-icons {
      font-size: 18px;
      color: #94a3b8;
      transition: color 0.2s;
    }
    .dropdown-content a:hover .material-icons {
      color: var(--primary);
    }

    /* Mesaj kutuları */
    .msg-box {
      padding: 11px 14px;
      border-radius: 10px;
      font-size: 13px;
      margin-bottom: 16px;
      display: none;
      line-height: 1.4;
    }
    .msg-box.error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.2);  color: #ef4444; }
    .msg-box.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #10b981; }
    .msg-box.info    { background: rgba(79,70,229,0.1);  border: 1px solid rgba(79,70,229,0.2);  color: #818cf8; }

    /* Şifre sıfırlama adım göstergesi */
    .steps-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 24px;
      justify-content: center;
    }
    .step-dot {
      width: 28px;
      height: 6px;
      border-radius: 3px;
      background: #e2e8f0;
      transition: all 0.3s;
    }
    .step-dot.active { background: var(--primary); width: 40px; }
    .step-dot.done   { background: var(--success); }

    /* Sıfırlama kodu kutusu */
    .code-display {
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      margin-bottom: 20px;
    }
    .code-display .code-label { font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
    .code-display .code-value { font-size: 32px; font-weight: 800; letter-spacing: 8px; color: #1e293b; font-family: monospace; }
    .code-display .code-note  { font-size: 11px; color: #64748b; margin-top: 6px; }

    /* Hero Slider Styles */
    .hero-slider-container {
      position: relative;
      width: 100%;
      min-height: 480px;
      overflow: hidden;
      padding: 40px 40px 60px 40px;
    }
    
    .hero-slide {
      position: absolute;
      top: 30px;
      left: 40px;
      right: 40px;
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      align-items: flex-start;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      pointer-events: none;
      z-index: 1;
      /* Geçiş YOK → aktifliğini kaybeden slayt anında gizlenir (crossfade hayaleti önlenir) */
    }

    .hero-slide.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
      z-index: 2;
      /* Geçiş sadece içeri girerken → yalnızca yeni slayt yumuşakça belirir */
      transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .slider-dots {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }
    
    .slider-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #cbd5e1;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .slider-dot.active {
      background: var(--primary);
      width: 24px;
      border-radius: 6px;
    }

    @media (max-width: 800px) {
      .hero-slide { position: static; opacity: 1; visibility: visible; transform: none; display: none; margin-bottom:30px; }
      .hero-slide.active { display: flex; flex-direction: column; }
      .hero-slider-container { padding: 30px 20px; min-height: auto; }
    }

    /* ── Mobil Navigasyon (Hamburger) ── */
    .nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #1e293b; padding: 4px; line-height: 0; }
    .nav-toggle .material-icons { font-size: 30px; }
    @media (max-width: 800px) {
      .main-navbar { flex-wrap: wrap; padding: 18px 20px !important; }
      .nav-toggle { display: inline-flex; align-items: center; }
      #nav-menu {
        display: none !important;
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        margin-top: 12px;
      }
      #nav-menu.open { display: flex !important; }
      #nav-menu > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        width: 100%;
      }
      #nav-menu a, #nav-menu .dropdown > span {
        padding: 12px 10px !important;
        border-radius: 10px;
        font-size: 15px !important;
      }
      #nav-menu a:hover { background: #f1f5f9; }
      #nav-menu .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }
      /* Ürünler alt menüsü mobilde hover yerine açık liste */
      #nav-menu .dropdown { display: block; }
      #nav-menu .dropdown::after { display: none; }
      #nav-menu .dropdown-content::before { display: none !important; }
      #nav-menu .dropdown-content {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 0 4px 0 !important;
        padding: 0 0 0 12px !important;
        min-width: 0 !important;
        background: transparent !important;
      }
    }

    /* ── Vitrin içeriği mobilde (index.html'deki inline stilleri ezer) ── */
    @media (max-width: 800px) {
      #panel-portal > div { padding-left: 20px !important; padding-right: 20px !important; }
      /* Hero'nun iki sütunu: sabit 320px yerine alt alta tam genişlik */
      #panel-portal [style*="min-width:320px"] { min-width: 0 !important; flex-basis: 100% !important; }
      #panel-portal h1 { font-size: 34px !important; letter-spacing: -0.5px !important; }
      #panel-portal h2 { font-size: 24px !important; }
    }

    /* ── Zengin Footer sütun linkleri ── */
    .footer-col-link { display: block; font-size: 13px; color: #64748b; text-decoration: none; padding: 5px 0; transition: color 0.2s; }
    .footer-col-link:hover { color: #6366f1; }