:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Eski .nav-logo sınıfı (sunucuda kalmış olabilir) */
.nav-logo,
img.nav-logo {
    display: block !important;
    height: 40px !important;
    max-height: 40px !important;
    max-width: 155px !important;
    width: auto !important;
    object-fit: contain !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    padding-top: env(safe-area-inset-top);
    height: calc(80px + env(safe-area-inset-top));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    /* Safari fixed + notch */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nav-brand {
    flex-shrink: 0;
    z-index: 1001;
}

/* Navbar: tam logo (ikon + yazı) */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0.2rem 0.35rem;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: none;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
}

.logo-container:hover {
    transform: scale(1.03);
    filter: brightness(1.08);
    box-shadow: none;
}

.nav-logo-full,
.auth-logo-full,
.footer-logo-full {
    display: block;
    height: 58px;
    width: auto;
    max-width: min(280px, 70vw);
    object-fit: contain;
}

.auth-logo-full {
    height: 72px;
    max-width: 320px;
    margin: 0 auto;
}

.footer-logo-full {
    height: 48px;
    max-width: 220px;
}

.footer-brand {
    display: inline-block;
    text-decoration: none;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.logo-icon-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon-wrap .nav-logo-img,
.nav-logo-img {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    position: static !important;
    border-radius: 50%;
}

/* Eski sunucu / logo.png kurallarını geçersiz kıl */
.navbar .nav-brand img.nav-logo-img,
.navbar .nav-brand img.nav-logo-full {
    position: static !important;
    top: auto !important;
    left: auto !important;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: visible;
    display: inline-block;
    padding: 0.12em 0;
    vertical-align: middle;
}

.brand-web,
.brand-wex {
    color: #f1f5f9;
}

.brand-nova,
.brand-lyra {
    display: inline-block;
    padding: 0.06em 0;
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 55%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

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

/* Profil açılır menü */
.nav-profile {
    position: relative;
}

.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem 0.4rem 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(56, 189, 248, 0.85));
    color: #fff;
    cursor: pointer;
    font: inherit;
    max-width: min(260px, 48vw);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-profile-btn--user {
    background: rgba(30, 41, 59, 0.85);
    border-color: var(--glass-border);
    color: var(--text-main);
}

.nav-profile-btn--user:hover,
.nav-profile.is-open .nav-profile-btn--user {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.nav-profile-btn:hover {
    transform: translateY(-1px);
}

.nav-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    flex-shrink: 0;
}

.nav-profile-btn > .ri-user-line {
    font-size: 1.15rem;
}

.nav-profile-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
    text-align: left;
}

.nav-profile-btn__text strong {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.nav-profile-btn__text small {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 400;
}

.nav-profile-caret {
    font-size: 1.1rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.nav-profile.is-open .nav-profile-caret {
    transform: rotate(180deg);
}

.nav-profile-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 260px;
    max-width: min(320px, 92vw);
    padding: 0.45rem 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    display: none;
    z-index: 1200;
}

.nav-profile.is-open .nav-profile-dropdown {
    display: block;
    animation: fadeIn 0.18s ease;
}

.nav-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    color: var(--text-main) !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-profile-dropdown a i {
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 1.25rem;
    text-align: center;
}

.nav-profile-dropdown a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #fff !important;
}

.nav-profile-dropdown a:hover i {
    color: var(--primary);
}

.nav-profile-sep {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--glass-border);
}

.nav-profile-meta {
    margin-left: auto;
    color: var(--success);
    font-size: 0.78rem;
}

.nav-profile-logout {
    color: #fca5a5 !important;
}

.nav-profile-logout i {
    color: #fca5a5 !important;
}

.main-content {
    margin-top: calc(100px + env(safe-area-inset-top));
    flex: 1 0 auto;
    width: 100%;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.animate { animation: fadeIn 0.8s ease forwards; }

/* Glassmorphism Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1);
}

/* Typography & Layout */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; }
.highlight { background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: var(--warning);
    color: #0f172a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

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

.w-100 { width: 100%; }

/* Dashboard Sidebar & Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: auto;
    align-items: start;
}

.sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    position: sticky;
    top: 90px;
    height: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: start;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: 0.3s;
    cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.sidebar-link i { font-size: 1.2rem; }

.dashboard-main { padding: 3rem; }

/* Dashboard v2 — kart menü + profil sekmeleri */
.dashboard-v2 {
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: rgba(11, 15, 25, 0.35);
    border-top: 1px solid var(--glass-border);
}

.dash-sidebar {
    padding: 1.25rem 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.98);
}

.dash-user-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.75rem 1.15rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #e0e7ff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(56, 189, 248, 0.55));
    border: 2px solid rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.dash-avatar.has-img {
    background: transparent;
    padding: 0;
}
.dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nav-profile-avatar {
    overflow: hidden;
}
.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.dash-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dash-user-meta strong {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-meta small {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dash-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-sidebar .sidebar-link {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dash-sidebar a.sidebar-link {
    text-decoration: none;
}

.dash-page-head {
    margin-bottom: 1.25rem;
}

.dash-page-head h2 {
    margin-bottom: 0.35rem;
    font-size: 1.65rem;
}

.dash-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 20;
    pointer-events: auto;
    isolation: isolate;
}

.dash-subtab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 21;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn-link-withdraw {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    touch-action: manipulation;
}
.btn-link-withdraw:hover {
    color: #a5b4fc;
}

.dash-subtab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.dash-subtab.active {
    color: #fff;
    background: var(--primary);
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.dash-alert i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dash-alert p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.dash-alert > div {
    flex: 1;
    min-width: 0;
}

.dash-alert--warn {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.dash-profile-panel {
    display: none;
}

.dash-profile-panel.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

.dash-form-card {
    padding: 1.5rem;
}

.dash-section-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.dash-section-desc {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.dash-form-span {
    grid-column: 1 / -1;
}

.req-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }

/* Admin & Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Badge System */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
}
.badge.Tamamlandı { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge.Ödendi { background: rgba(99, 102, 241, 0.2); color: var(--primary); }
.badge.Onay-Bekliyor { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge.Fiyat-Bekliyor { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge.Ödendi { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge.Açık { background: rgba(99, 102, 241, 0.2); color: var(--primary); }
.badge.Yanıtlandı { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge.Beklemede { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge.Kapalı { background: rgba(148, 163, 184, 0.25); color: var(--text-muted); }

.badge-hero {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
    transition: 0.5s;
}

.flash-message.error { border-left-color: var(--danger); }
.flash-message.success { border-left-color: var(--success); }
.flash-message.warning { border-left-color: var(--warning); }

.auth-message {
    display: none;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}

/* Giriş / Kayıt sayfaları */
.auth-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 4rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card.glass-card:hover {
    transform: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 1.25rem;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: none;
}

.auth-brand .logo-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.auth-brand .brand-name {
    font-size: 1.25rem;
}

.auth-brand .nav-logo-full,
.auth-brand .auth-logo-full {
    height: 72px;
    max-width: 320px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.form-label-row label {
    margin-bottom: 0;
}

.forgot-password-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.forgot-panel {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.forgot-panel[hidden],
#loginForm[hidden] {
    display: none !important;
}

.forgot-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.forgot-panel p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.forgot-back-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-back-link:hover {
    color: var(--primary);
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.field-hint {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.field-hint strong {
    color: var(--primary);
    font-weight: 600;
}

.required-mark {
    color: var(--danger);
    font-weight: 700;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding-left: 2.75rem;
}

.auth-card .btn-primary.w-100 {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: white;
    outline: none;
    transition: 0.3s;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.15rem !important;
    height: 1.15rem !important;
    min-width: 1.15rem !important;
    max-width: 1.15rem !important;
    padding: 0 !important;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    border-radius: 4px;
}

select option {
    background-color: #0f172a;
    color: white;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

/* Grid Utilities */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.iban-number-display {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    margin: 0.5rem 0;
    white-space: nowrap;
    overflow-x: auto;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #e2e8f0;
}

.iban-holder-display {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

#iban_fields .glass-card {
    overflow-x: auto;
    padding: 1.25rem 1rem;
}

.admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-stats-grid .stat-card--money .info-value {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    white-space: nowrap;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.admin-stats-grid .stat-card--money-main {
    min-width: 320px;
}

@media (min-width: 1100px) {
    .admin-stats-grid .stat-card--money-main {
        grid-column: span 2;
    }

    .admin-stats-grid .stat-card--money-main .info-value {
        font-size: 3rem;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 500px;
}

/* Landing Page Specific */
.hero {
    height: auto;
    min-height: calc(90vh - env(safe-area-inset-top));
    min-height: calc(90dvh - env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0 3rem;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; }

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* Size uygun tasarımlar — gerçek önizleme kartları */
.design-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}
.design-gallery-loading {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}
.design-card {
    background: var(--bg-card, rgba(30, 41, 59, 0.55));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.design-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.design-card-preview {
    position: relative;
    background: #0b1220;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}
.design-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
    background: #e2e8f0;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
}
.design-card-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.design-card-frame iframe {
    width: 1280px;
    height: 900px;
    border: 0;
    transform: scale(0.28);
    transform-origin: top left;
    background: #fff;
}
.design-card-hit {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.design-card-main {
    display: block;
    color: inherit;
    text-decoration: none;
}
.design-card-main:hover h3 {
    color: #a5b4fc;
}
.design-card-body {
    padding: 1.15rem 1.2rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.design-card-style {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary, #6366f1);
    margin: 0;
}
.design-card-body h3 {
    margin: 0;
    font-size: 1.25rem;
}
.design-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    flex: 1;
}
.design-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: auto;
    padding: 0 1.2rem 1.25rem;
}
.design-btn {
    text-align: center;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.design-card .btn-outline.design-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: inherit;
    background: transparent;
}
.design-card .btn-outline.design-btn:hover {
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
}

/* template_preview light surface uyumu */
.preview-container .design-card,
#template-preview-root .design-card {
    background: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
#template-preview-root .design-card-desc {
    color: #64748b;
}
#template-preview-root .design-card .btn-outline.design-btn {
    border-color: #cbd5e1;
    color: #0f172a;
}
#template-preview-root .design-gallery-wrap {
    padding: 2.5rem 5%;
    background: #f8fafc;
}
#template-preview-root .design-gallery-wrap .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}
#template-preview-root .design-gallery-wrap .section-header h2 {
    color: #0f172a;
    font-size: 1.75rem;
}
#template-preview-root .design-gallery-wrap .section-header p {
    color: #64748b;
}

@media (max-width: 640px) {
    .design-card-actions {
        grid-template-columns: 1fr;
    }
    .design-card-frame iframe {
        transform: scale(0.24);
    }
}

/* Mağaza kurulum sihirbazı */
.store-setup {
    margin-bottom: 2rem;
}
.setup-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.setup-dot {
    width: 28%;
    max-width: 72px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
}
.setup-dot.is-current,
.setup-dot.is-done {
    background: var(--primary, #6366f1);
}
.setup-title {
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
}
.setup-sub {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}
.sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.sell-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.35);
    color: inherit;
    text-align: left;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.sell-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.5);
}
.sell-chip.is-active {
    border-color: var(--primary, #6366f1);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}
.sell-ico { font-size: 1.4rem; line-height: 1; }
.sell-label { font-weight: 600; font-size: 0.92rem; }
.setup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.setup-actions-split {
    justify-content: space-between;
}
.setup-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.setup-span-2 { grid-column: 1 / -1; }
.setup-logo-upload {
    display: block;
    cursor: pointer;
}
.setup-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.25);
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}
.setup-logo-upload:hover .setup-logo-box {
    border-color: var(--primary, #6366f1);
    background: rgba(99, 102, 241, 0.08);
}
.setup-logo-placeholder {
    color: var(--text-muted);
    font-weight: 600;
}
.setup-logo-preview {
    max-width: 100%;
    max-height: 112px;
    object-fit: contain;
}
.setup-logo-upload small {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Siteni Oluştur — marka formu */
.setup-create-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 1.35rem 1.4rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%),
      rgba(15, 23, 42, 0.55);
}
.setup-create-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}
.setup-create-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.setup-create-rule {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148,163,184,0.45), transparent);
}
.setup-create-form .setup-field {
    margin-bottom: 1rem;
}
.setup-create-form .setup-field > label,
.setup-create-form .setup-field-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.setup-field-ico {
    font-size: 1rem;
    line-height: 1;
}
.setup-create-form input[type="text"],
.setup-create-form input[type="tel"],
.setup-create-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.45);
    color: inherit;
    font: inherit;
}
.setup-create-form input:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.setup-create-form .setup-logo-box {
    min-height: 96px;
}
.setup-color-pick {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.45);
    cursor: pointer;
}
.setup-color-pick input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
}
.setup-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.setup-color-text {
    font-weight: 600;
    font-size: 0.92rem;
}
.setup-color-hex {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: transparent;
}
.setup-create-foot {
    margin-top: 1.35rem;
}
.setup-create-foot .setup-create-rule {
    margin: 0.35rem 0 0.85rem;
}
.setup-create-actions {
    margin: 0.25rem 0 0.5rem;
}
.setup-create-next {
    min-width: 9.5rem;
}

.setup-design-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.store-setup .glass-card,
.glass-card .store-setup {
    /* nested comfortable padding handled by parent */
}
@media (max-width: 640px) {
    .setup-fields-grid { grid-template-columns: 1fr; }
    .setup-span-2 { grid-column: auto; }
    .setup-actions-split { flex-direction: column-reverse; }
    .setup-actions-split .btn-primary,
    .setup-actions-split .btn-outline { width: 100%; }
}



/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Footer — sayfanın altına yaslanır */
footer,
.site-footer {
    padding: 3rem 1.25rem 2.5rem;
    background: rgba(15, 23, 42, 0.65);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 1.5rem 2rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.site-footer-grid h4 {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer-grid a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.site-footer-grid a:hover {
    color: var(--primary);
}

.site-footer-copy {
    text-align: center;
    margin: 1.25rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 800px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

.legal-page {
    max-width: 760px;
    padding: 2rem 1.25rem 3rem;
}

.legal-page h1 {
    margin-bottom: 0.35rem;
}

.legal-page h2 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
}

.legal-page ul {
    padding-left: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-page p {
    line-height: 1.7;
    color: var(--text-muted);
}

.legal-page a {
    color: var(--primary);
}

.wn-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.wn-cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wn-cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.wn-cookie-banner a {
    color: var(--primary);
}

.wn-cookie-banner__btn {
    flex-shrink: 0;
}

.consent-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 1rem 0 0.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.consent-check input[type="checkbox"] {
    margin-top: 0.2rem;
    flex: 0 0 1.15rem;
}

.consent-check > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.consent-check a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Yasal metin modal (küçük pencere) */
.modal-overlay[hidden] {
    display: none !important;
}

.modal-overlay:not([hidden]) {
    display: flex;
}

.legal-modal-dialog {
    width: min(560px, 100%);
    max-height: min(82vh, 82dvh);
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.legal-modal-dialog .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.legal-modal-dialog .modal-head h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.legal-modal-dialog .modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.legal-modal-dialog .modal-body {
    padding: 1rem 1.15rem;
    overflow-y: auto;
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
    -webkit-overflow-scrolling: touch;
}

.legal-modal-dialog .modal-body h1,
.legal-modal-dialog .modal-body h2,
.legal-modal-dialog .modal-body h3 {
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
    font-size: 1.05rem;
}

.legal-modal-dialog .modal-body p,
.legal-modal-dialog .modal-body li {
    margin-bottom: 0.65rem;
}

.legal-modal-dialog .modal-body a {
    color: var(--primary);
}

.legal-modal-dialog .modal-foot {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .legal-modal-dialog {
        width: 100%;
        max-height: min(88vh, 88dvh);
        border-radius: 16px 16px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Panel sayfalarında footer sayfanın altına yapışır (yukarı çekilmez) */
.main-content:has(.dashboard-container) + footer.site-footer,
.main-content:has(.dashboard-container) + footer {
    margin-top: auto;
    padding: 3rem 1.25rem 2.75rem;
}

.main-content:has(.dashboard-container) {
    padding-bottom: 2rem;
    flex: 1 0 auto;
}

.designer-apply-card {
    max-width: 720px;
    padding: 1.75rem;
}

.designer-apply-card .form-group {
    margin-bottom: 1.15rem;
}

.designer-apply-card input[type="file"] {
    width: 100%;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.45);
    color: var(--text-main);
}

/* ——— Anasayfa düzeni ——— */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    opacity: 0.9;
}

.hero-stats > div {
    text-align: center;
    min-width: 100px;
}

.section-pad {
    padding: clamp(3rem, 8vw, 8rem) 0;
}

.flex-split {
    display: flex;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    flex-wrap: wrap;
}

.flex-split > * {
    flex: 1 1 280px;
    min-width: 0;
}

/* İletişim: etiket kesilmesin + harita */
#contact .glass-card {
    overflow: visible;
    padding-top: 2.25rem;
}

#contact .contact-form-card form > .form-group:first-of-type,
#contact .contact-form-card form > div[style*="margin-bottom"]:first-of-type {
    margin-top: 0.15rem;
}

.contact-map-wrap {
    margin-top: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
    aspect-ratio: 16 / 11;
    min-height: 220px;
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.15) contrast(1.05);
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.contact-map-link:hover {
    text-decoration: underline;
}

.pricing-featured {
    transform: scale(1.05);
    position: relative;
    overflow: hidden;
}

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

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

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

/* Mobil menü */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1002;
    transition: 0.2s;
}

.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-toggle i {
    font-size: 1.5rem;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(15, 23, 42, 0.65);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

/* Tablo yatay kaydırma */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .admin-table {
    min-width: 560px;
}

/* Domain kartları (dashboard) */
.domain-option-card input {
    display: none;
}

.domain-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.domain-option-card input:checked + .domain-card-content {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.domain-card-content i {
    font-size: 2rem;
    color: var(--primary);
}

.domain-card-content span {
    font-weight: 700;
    font-size: 1rem;
}

.domain-card-content small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ——— Tablet (≤1024px) ——— */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1.25rem;
        padding-top: env(safe-area-inset-top);
        height: calc(64px + env(safe-area-inset-top));
    }

    .main-content {
        margin-top: calc(84px + env(safe-area-inset-top));
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: calc(64px + env(safe-area-inset-top));
        right: 0;
        width: min(320px, 88vw);
        height: calc(100vh - 64px - env(safe-area-inset-top));
        height: calc(100dvh - 64px - env(safe-area-inset-top));
        padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        border-left: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 999;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-links {
        position: static;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        margin-top: auto;
    }

    .nav-actions .btn-primary {
        width: 100%;
        text-align: center;
    }

    .nav-profile {
        width: 100%;
    }

    .nav-profile-btn {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }

    .nav-profile-btn__text strong {
        max-width: none;
    }

    .nav-profile-dropdown {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
        max-width: none;
        box-shadow: none;
    }

    .nav-profile.is-open .nav-profile-dropdown {
        display: block;
    }

    .logo-container {
        height: auto;
        min-height: 42px;
        padding: 0.15rem 0.25rem;
    }

    .nav-logo-full {
        height: 48px;
        max-width: min(220px, 62vw);
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 84px);
        min-height: calc(100dvh - 84px);
        padding: 2rem 0 3rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem;
    }

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

    .dashboard-v2 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        max-height: none;
        position: static;
        display: block;
        overflow: visible;
        padding: 1rem;
    }

    .sidebar-link {
        margin-bottom: 0;
        white-space: nowrap;
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }

    .sidebar-link span {
        font-size: 0.9rem;
    }

    .dash-form-grid {
        grid-template-columns: 1fr;
    }

    .dash-alert {
        flex-wrap: wrap;
    }

    .dashboard-main {
        padding: 1.25rem 1rem 2rem;
    }

    .dashboard-main h2 {
        font-size: 1.35rem;
    }

    .glass-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .info-value {
        font-size: 2rem;
    }

    .pricing-featured {
        transform: none;
    }

    .responsive-grid-3 {
        grid-template-columns: 1fr;
    }

    .flash-messages {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    #toast-container {
        left: 1rem;
        right: 1rem;
        top: 76px;
    }

    .toast {
        padding: 0.85rem 1rem;
    }
}

/* ——— Telefon (≤640px) ——— */
@media (max-width: 640px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .hero-stats h2 {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card img {
        height: 200px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .flex-split {
        flex-direction: column;
    }

    .responsive-grid-2,
    .domain-pref-grid {
        grid-template-columns: 1fr;
    }

    .req-actions {
        flex-direction: column;
    }

    .req-actions .btn-primary,
    .req-actions .btn-outline {
        width: 100%;
    }

    .auth-container {
        padding: 1rem 1rem 2.5rem;
        min-height: calc(100vh - 120px);
        min-height: calc(100dvh - 120px);
    }

    .auth-header h2 {
        font-size: 1.45rem;
    }

    .modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-card {
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }

    .dashboard-main .glass-card > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* ——— Geniş masaüstü ——— */
@media (min-width: 1025px) {
    .nav-menu {
        display: contents;
    }
}

/* ——— Orta tablet (641–1024) ——— */
@media (min-width: 641px) and (max-width: 1024px) {
    .responsive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .responsive-grid-3 > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ——— Site içi bildirim / onay (alert & confirm yerine) ——— */
.wn-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.wn-toast {
    pointer-events: auto;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    animation: wn-toast-in 0.25s ease;
}

.wn-toast--ok {
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wn-toast--err {
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wn-toast--hide {
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.3s, transform 0.3s;
}

@keyframes wn-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ——— Destek sekmeleri ——— */
.support-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
}

.support-subtab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.support-subtab:hover {
    border-color: rgba(99, 102, 241, 0.45);
    color: inherit;
}

.support-subtab--active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.55);
    color: #fff;
}

.support-panel {
    display: none;
}

.support-panel--active {
    display: block;
}

.support-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .support-request-grid {
        grid-template-columns: 1fr;
    }
}

.support-request-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-request-card {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.support-request-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.support-request-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-request-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ——— Destek sohbeti ——— */
.support-layout {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 1rem;
    min-height: 420px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .support-layout {
        grid-template-columns: 1fr;
    }
}

.support-threads {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
    border-radius: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.5rem;
}

.support-thread-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    margin-bottom: 0.35rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.support-thread-item:hover,
.support-thread-item--active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

.support-thread-item__title {
    font-weight: 600;
    font-size: 0.85rem;
}

.support-thread-item__preview {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.support-chat-panel {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
    border-radius: 12px;
    min-height: 420px;
}

.support-chat-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border, rgba(148, 163, 184, 0.15));
}

.support-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 320px;
    min-height: 200px;
}

.support-chat-bubble {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.support-chat-bubble--mine {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.85));
    color: #fff;
}

.support-chat-bubble--other {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-chat-bubble__meta {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-bottom: 0.35rem;
}

.support-chat-compose {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border, rgba(148, 163, 184, 0.15));
}

.support-chat-compose textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
}

.support-new-thread {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .support-new-thread {
        grid-template-columns: 1fr;
    }
}

.reviews-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, rgba(148, 163, 184, 0.15));
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0 1rem;
}

.review-star {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.review-star--on {
    color: #facc15;
}

.review-card {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0.75rem;
}

.review-card__stars {
    color: #facc15;
    margin-bottom: 0.35rem;
}

.review-card__text {
    margin: 0 0 0.5rem;
    font-style: italic;
}

.review-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.backup-bulk-toolbar input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.admin-table .backup-row-check {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.wn-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.wn-dialog {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.wn-dialog--danger .wn-dialog__confirm {
    background: var(--danger, #ef4444);
    border-color: var(--danger, #ef4444);
}

.wn-dialog__title {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    color: var(--text, #f1f5f9);
}

.wn-dialog__text {
    margin: 0 0 1.25rem;
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.wn-dialog__actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}


.nav-logo-circle {
    display: none;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 640px) {
    .nav-logo-full { display: none; }
    .nav-logo-circle { display: block; }
}

/* Admin sipariş detay modal */
.admin-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 0.85rem 1rem;
    margin-bottom: 1rem;
}
.admin-order-field small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.admin-order-field strong {
    font-size: 0.95rem;
    word-break: break-word;
}
.admin-order-note {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.15rem;
    border-radius: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.admin-order-form {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin / ayar kart ızgarası (inline min-width yerine) */
.settings-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}
.settings-cards > .glass-card {
    flex: none;
    min-width: 0;
    width: 100%;
}
.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem 2rem;
    width: 100%;
}
.profile-cards > .glass-card {
    flex: none;
    min-width: 0;
    width: 100%;
}

/* Mobil: blur azalt (GPU) + dokunma */
@media (max-width: 640px) {
    .navbar,
    .glass-card,
    .toast,
    .nav-menu,
    .modal-card,
    .wn-dialog {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .nav-toggle,
    .btn-primary,
    .btn-outline,
    .sidebar-link {
        min-height: 44px;
    }

    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body.is-touch .nav-links a,
body.is-touch .sidebar-link,
body.is-touch .dash-subtab {
    min-height: 44px;
}

/* ——— Safari (iPhone) + Opera mobil uyumluluk ——— */
input,
select,
textarea,
button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
}

.table-scroll,
.nav-menu,
.dash-sidebar,
.wn-livechat-panel,
.modal-card {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Safari sticky hover bug: dokununca hover kalmasın */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-outline:hover,
    .sidebar-link:hover,
    .nav-links a:hover {
        filter: none;
        transform: none;
    }
}

/* iOS Safari: fixed navbar altında içerik */
@supports (-webkit-touch-callout: none) {
    .main-content {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .site-footer,
    footer {
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    }

    body.nav-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}

/* Opera / WebKit: flex min-size taşması */
.glass-card,
.settings-cards > *,
.profile-cards > *,
.dashboard-main,
.flex-split > * {
    min-width: 0;
}

img {
    -webkit-user-drag: none;
}

a,
button,
.sidebar-link,
.nav-toggle {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

body.is-safari .navbar,
body.is-opera .navbar {
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
}

@media (max-width: 640px) {
    body.is-safari .navbar,
    body.is-opera .navbar,
    body.is-safari .glass-card,
    body.is-opera .glass-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.98);
    }

    body.is-safari .glass-card,
    body.is-opera .glass-card {
        background: rgba(30, 41, 59, 0.95);
    }
}

/* ——— Panel / admin mobil: animasyonlu arka plan + çekmece menü ——— */
.panel-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.panel-fx-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: panelGridDrift 28s linear infinite;
    opacity: 0.55;
}

.panel-fx-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: panelBlobFloat 14s ease-in-out infinite alternate;
}

.panel-fx-blob.a {
    width: min(55vw, 420px);
    height: min(55vw, 420px);
    top: -8%;
    right: -12%;
    background: rgba(99, 102, 241, 0.55);
}

.panel-fx-blob.b {
    width: min(48vw, 360px);
    height: min(48vw, 360px);
    bottom: 5%;
    left: -15%;
    background: rgba(168, 85, 247, 0.4);
    animation-duration: 18s;
    animation-delay: -4s;
}

.panel-fx-blob.c {
    width: min(35vw, 260px);
    height: min(35vw, 260px);
    top: 42%;
    left: 35%;
    background: rgba(56, 189, 248, 0.28);
    animation-duration: 12s;
    animation-delay: -2s;
}

@keyframes panelGridDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(48px, 48px, 0); }
}

@keyframes panelBlobFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(24px, -30px, 0) scale(1.08); }
}

body.has-panel-layout .navbar,
body.has-panel-layout .main-content {
    position: relative;
    z-index: 2;
}

.panel-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 0.35rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1002;
    transition: 0.2s;
}

.panel-nav-toggle:hover,
.panel-nav-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.panel-nav-toggle i {
    font-size: 1.35rem;
}

.panel-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: calc(64px + env(safe-area-inset-top));
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.panel-sidebar-overlay.is-visible {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .panel-nav-toggle {
        display: inline-flex;
    }

    body.has-panel-layout .nav-menu {
        width: 100%;
        max-width: none;
        left: 0;
        right: 0;
        border-left: 0;
        background:
            radial-gradient(ellipse at 80% 0%, rgba(99, 102, 241, 0.22), transparent 50%),
            rgba(10, 14, 28, 0.98);
        transform: translateY(-12px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
        padding: 1.5rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom));
    }

    body.has-panel-layout .nav-menu.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    body.has-panel-layout .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        padding: 1rem 0.25rem;
        opacity: 0;
        transform: translateX(12px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
    }

    body.has-panel-layout .nav-menu.is-open .nav-links a {
        opacity: 1;
        transform: none;
    }

    body.has-panel-layout .nav-menu.is-open .nav-links a:nth-child(1) { transition-delay: 0.04s; }
    body.has-panel-layout .nav-menu.is-open .nav-links a:nth-child(2) { transition-delay: 0.08s; }
    body.has-panel-layout .nav-menu.is-open .nav-links a:nth-child(3) { transition-delay: 0.12s; }
    body.has-panel-layout .nav-menu.is-open .nav-links a:nth-child(4) { transition-delay: 0.16s; }
    body.has-panel-layout .nav-menu.is-open .nav-links a:nth-child(5) { transition-delay: 0.2s; }

    body.has-panel-layout .nav-overlay {
        top: calc(64px + env(safe-area-inset-top));
        background: rgba(2, 6, 23, 0.82);
        z-index: 998;
    }

    body.has-panel-layout .dashboard-container .sidebar,
    body.has-panel-layout .dashboard-container .dash-sidebar {
        position: fixed;
        top: calc(64px + env(safe-area-inset-top));
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        max-height: none;
        height: auto;
        z-index: 1001;
        transform: translateX(-108%);
        transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
        padding: 1rem 0.85rem calc(1.25rem + env(safe-area-inset-bottom));
        border-right: 1px solid var(--glass-border);
        background:
            radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.18), transparent 55%),
            rgba(11, 16, 32, 0.98);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    body.has-panel-layout .dashboard-container .sidebar.is-open,
    body.has-panel-layout .dashboard-container .dash-sidebar.is-open {
        transform: translateX(0);
    }

    body.has-panel-layout .sidebar-link {
        margin-bottom: 0.35rem;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        white-space: normal;
        opacity: 0;
        transform: translateX(-10px);
        transition: background 0.2s, color 0.2s, opacity 0.28s ease, transform 0.28s ease;
    }

    body.has-panel-layout .sidebar.is-open .sidebar-link,
    body.has-panel-layout .dash-sidebar.is-open .sidebar-link {
        opacity: 1;
        transform: none;
    }

    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(1) { transition-delay: 0.03s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(2) { transition-delay: 0.05s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(3) { transition-delay: 0.07s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(4) { transition-delay: 0.09s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(5) { transition-delay: 0.11s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(6) { transition-delay: 0.13s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(7) { transition-delay: 0.15s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(8) { transition-delay: 0.17s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(9) { transition-delay: 0.19s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(10) { transition-delay: 0.21s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(11) { transition-delay: 0.23s; }
    body.has-panel-layout .sidebar.is-open .sidebar-link:nth-child(12) { transition-delay: 0.25s; }

    body.has-panel-layout.nav-open .sidebar,
    body.has-panel-layout.nav-open .dash-sidebar {
        transform: translateX(-108%) !important;
        pointer-events: none;
    }

    body.has-panel-layout.panel-nav-open {
        overflow: hidden;
    }

    body.has-panel-layout .dashboard-main {
        padding-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-fx-grid,
    .panel-fx-blob,
    body.has-panel-layout .nav-menu,
    body.has-panel-layout .nav-links a,
    body.has-panel-layout .sidebar,
    body.has-panel-layout .dash-sidebar,
    body.has-panel-layout .sidebar-link {
        animation: none !important;
        transition: none !important;
    }
}
/* === Site builder (dashboard Siteniz sekmesi) === */
.tab-content--site-editor.active {
  display: block;
  margin: -1.5rem -1.5rem 0;
}
.dashboard-main:has(#site-editor.active) {
  padding: 0;
  max-width: none;
}
.site-editor-root {
  --sb-primary: #6366f1;
  --sb-accent: #22d3ee;
  min-height: calc(100vh - 5rem);
}
.site-builder {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  min-height: calc(100vh - 5rem);
  background: linear-gradient(145deg, #0b1220 0%, #111827 50%, #0f172a 100%);
  border: 1px solid rgba(148,163,184,0.12);
  overflow: hidden;
  isolation: isolate;
}
.sb-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(148,163,184,0.14);
  background: rgba(15,23,42,0.92);
  position: relative;
  z-index: 2;
  min-width: 0;
}
.sb-left-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(148,163,184,0.1);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
}
.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sb-nav-item:hover { background: rgba(255,255,255,0.04); }
.sb-nav-item.is-active {
  background: rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.35);
  color: #fff;
}
.sb-nav-ico { font-size: 1.1rem; width: 1.5rem; text-align: center; }
.sb-panel-wrap {
  flex: 1;
  overflow: auto;
  padding: 0.25rem 1.15rem 1rem;
}
.sb-panel h4 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.05rem;
}
.sb-left-foot {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid rgba(148,163,184,0.1);
}
.sb-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed rgba(148,163,184,0.35);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  color: #94a3b8;
}
.sb-logo-box img { max-width: 100%; max-height: 120px; object-fit: contain; }
.sb-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.sb-color-row input[type="color"] {
  width: 48px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.sb-product-row {
  display: grid;
  grid-template-columns: 1fr 70px auto;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.sb-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--sb-primary) 28%, transparent), transparent 55%),
    radial-gradient(ellipse at 90% 20%, color-mix(in srgb, var(--sb-accent) 22%, transparent), transparent 50%),
    #020617;
}
.sb-right-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(148,163,184,0.12);
  background: rgba(2,6,23,0.65);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
}
.sb-right-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sb-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}
.sb-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
  display: block;
  position: relative;
  z-index: 0;
}
.sb-overlay-card {
  position: absolute;
  left: auto;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(420px, calc(100% - 2.5rem));
  width: max-content;
  min-width: 260px;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(15,23,42,0.94);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  color: #f8fafc;
  pointer-events: none;
  z-index: 5;
}
.sb-overlay-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.sb-overlay-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.sb-overlay-card p { margin: 0.25rem 0; font-size: 0.92rem; }
.sb-overlay-meta { font-size: 0.78rem; color: #94a3b8; margin-top: 0.55rem !important; }
.sb-overlay-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.sb-chip {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sb-primary) 35%, rgba(255,255,255,0.06));
  font-size: 0.75rem;
}
@media (max-width: 960px) {
  .site-builder { grid-template-columns: 1fr; }
  .sb-left { border-right: 0; border-bottom: 1px solid rgba(148,163,184,0.14); max-height: none; }
  .sb-nav { flex-direction: row; flex-wrap: wrap; }
  .sb-nav-item { flex: 1 1 auto; min-width: 7.5rem; }
  .sb-frame-wrap, .sb-frame-wrap iframe { min-height: 420px; }
  .sb-overlay-card {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-width: none;
    min-width: 0;
  }
}

/* Öztürk panel iframe içinde gömülü görünüm */
html.wex-embed body.wex-embed .navbar,
html.wex-embed .navbar[hidden] {
  display: none !important;
}
html.wex-embed body.wex-embed .main-content {
  padding-top: 0.75rem !important;
}
html.wex-embed body.wex-embed .dashboard-container {
  grid-template-columns: minmax(200px, 260px) 1fr;
  min-height: calc(100vh - 1.5rem);
}
html.wex-embed body.wex-embed .sidebar {
  top: 0.5rem;
  max-height: calc(100vh - 1rem);
  position: sticky;
}
html.wex-embed body.wex-embed .site-footer,
html.wex-embed body.wex-embed footer.site-footer {
  display: none !important;
}
@media (max-width: 960px) {
  html.wex-embed body.wex-embed .dashboard-container {
    grid-template-columns: 1fr;
  }
}

.demo-strip {
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  padding: 0.55rem 1rem;
  background: rgba(14, 165, 233, 0.18);
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
  font-size: 0.9rem;
}
.demo-strip a { color: #7dd3fc; font-weight: 700; }
