/* LogicForge - Kullanıcı Menüsü, Koyu Tema, Giriş/Kayıt, Premium ve Admin Paneli Stilleri
   main.css ve calisma.css'ten SONRA yüklenmelidir. */

:root {
    --lf-surface: rgba(25, 38, 22, 0.94);
    --lf-surface-solid: #23341f;
    --lf-surface-alt: #2e4529;
    --lf-header-bg: rgb(57, 85, 48);
    --lf-body-bg: #433e3e;
    --lf-text: #ffffff;
    --lf-text-muted: #d2ddd0;
    --lf-accent: #ffc800;
    --lf-accent-border: #b8860b;
    --lf-danger: #e05252;
    --lf-success: #46c26e;
    --lf-border: rgba(184, 134, 11, 0.45);
    --lf-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --lf-ui-font: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

/* ================= KOYU TEMA ================= */
html[data-theme="dark"] {
    --lf-surface: rgba(18, 22, 20, 0.96);
    --lf-surface-solid: #151a18;
    --lf-surface-alt: #1f2723;
    --lf-header-bg: #111614;
    --lf-body-bg: #0c0f0e;
    --lf-text: #eef3ef;
    --lf-text-muted: #9eb0a5;
    --lf-border: rgba(255, 200, 0, 0.25);
}

html[data-theme="dark"] body {
    background-color: var(--lf-body-bg);
    color: var(--lf-text);
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .header-giris {
    background-color: var(--lf-header-bg);
    border-bottom: 1px solid rgba(255, 200, 0, 0.2);
}

html[data-theme="dark"] .home {
    background-image: linear-gradient(rgba(8, 12, 10, 0.80), rgba(8, 12, 10, 0.88)), url(../images/arka-plan.png);
    background-size: cover;
    background-position: center;
}

html[data-theme="dark"] .home .content h3,
html[data-theme="dark"] .home .content p,
html[data-theme="dark"] .home .content a {
    color: var(--lf-text);
}

html[data-theme="dark"] .btn-calisma,
html[data-theme="dark"] .geri-butonu {
    background-color: #1b221f;
    border-color: rgba(255, 200, 0, 0.45);
    color: #f4f7f5;
}

html[data-theme="dark"] .btn-calisma:hover,
html[data-theme="dark"] .geri-butonu:hover {
    background-color: var(--lf-accent);
    color: #111;
}

html[data-theme="dark"] .calisma-buton {
    background-color: rgba(20, 26, 23, 0.82);
    border-color: rgba(255, 200, 0, 0.35);
}

html[data-theme="dark"] .calisma-buton:hover {
    background-color: rgba(30, 40, 35, 0.96);
    border-color: var(--lf-accent);
}

html[data-theme="dark"] .header .auth-buttons .btn-login {
    background-color: #1c2420;
    border-color: rgba(255, 200, 0, 0.35);
}

/* Okunabilir UI alanlarında main.css'in capitalize + oblique kuralını sıfırla */
.lf-ui,
.lf-ui *,
.auth-card,
.auth-card *,
.user-menu-wrap,
.user-menu-wrap *,
.lf-modal-overlay,
.lf-modal-overlay *,
.premium-section,
.premium-section *,
.admin-layout,
.admin-layout *,
.workspace-banner,
.workspace-banner * {
    font-family: var(--lf-ui-font);
    font-style: normal;
    text-transform: none;
}

/* ================= SAĞ ÜST KULLANICI MENÜSÜ ================= */
.user-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1400;
}

/* Çalışma sayfası gibi header olmayan sayfalarda sağ üstte sabit durur */
.user-menu-wrap.user-menu-floating {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 1600;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    background-color: rgba(20, 32, 18, 0.85);
    color: #fff;
    border: 2px solid var(--lf-accent-border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .user-menu-trigger {
    background-color: #19201d;
    border-color: rgba(255, 200, 0, 0.45);
}

.user-menu-trigger:hover {
    border-color: var(--lf-accent);
    background-color: rgba(34, 52, 29, 0.96);
}

html[data-theme="dark"] .user-menu-trigger:hover {
    background-color: #232d28;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lf-accent);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-trigger-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-crown {
    color: var(--lf-accent);
    font-size: 14px;
}

.user-caret {
    font-size: 11px;
    opacity: 0.85;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--lf-surface-solid);
    border: 1.5px solid var(--lf-border);
    border-radius: 12px;
    box-shadow: var(--lf-shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    color: var(--lf-text);
}

.user-menu-wrap.open .user-dropdown {
    display: flex;
}

.user-dropdown-head {
    padding: 10px 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.user-dropdown-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.user-dropdown-email {
    font-size: 12.5px;
    color: var(--lf-text-muted);
    word-break: break-all;
    margin-bottom: 8px;
}

.plan-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e6eee4;
}

.plan-badge.is-premium {
    background: rgba(255, 200, 0, 0.18);
    color: var(--lf-accent);
    border: 1px solid rgba(255, 200, 0, 0.45);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--lf-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--lf-accent);
}

.user-dropdown-item.item-premium {
    color: var(--lf-accent);
    font-weight: 600;
}

.user-dropdown-item.item-sub {
    padding-left: 24px;
    font-size: 13.5px;
    color: #f3e4a8;
}

.user-dropdown-item.item-admin {
    color: #7ee2ff;
    font-weight: 600;
}

.user-dropdown-item.item-danger {
    color: #ff8c8c;
}

.user-dropdown-item.item-danger:hover {
    background: rgba(224, 82, 82, 0.18);
    color: #ffb3b3;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 4px;
}

.theme-row {
    padding: 8px 10px;
}

.theme-row-label {
    font-size: 12px;
    color: var(--lf-text-muted);
    margin-bottom: 6px;
    display: block;
}

.theme-switch-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.theme-opt-btn {
    padding: 7px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--lf-text);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.theme-opt-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-opt-btn.active {
    background: var(--lf-accent);
    color: #111;
    border-color: var(--lf-accent);
}

/* ================= GİRİŞ / KAYIT SAYFASI ================= */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    min-height: calc(100vh - 96px);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--lf-surface);
    border: 2px solid var(--lf-border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--lf-shadow);
    color: var(--lf-text);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 22px;
}

.auth-tab {
    padding: 10px;
    border-radius: 7px;
    background: transparent;
    color: var(--lf-text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-tab.active {
    background: var(--lf-accent);
    color: #111;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--lf-text-muted);
    margin-bottom: 18px;
}

.lf-field {
    margin-bottom: 14px;
    text-align: left;
}

.lf-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lf-text-muted);
    margin-bottom: 6px;
}

.lf-input,
.lf-select {
    width: 100%;
    padding: 11px 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 15px;
}

.lf-select option {
    background: #1b241d;
    color: #fff;
}

.lf-input:focus,
.lf-select:focus {
    border-color: var(--lf-accent);
    background: rgba(255, 255, 255, 0.13);
}

.lf-btn-primary {
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--lf-accent);
    color: #111;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
}

.lf-btn-primary:hover {
    background: #ffd633;
}

.lf-btn-secondary {
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lf-alert {
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 14px;
    display: none;
    line-height: 1.4;
}

.lf-alert.show {
    display: block;
}

.lf-alert.error {
    background: rgba(224, 82, 82, 0.18);
    border: 1px solid rgba(224, 82, 82, 0.55);
    color: #ffb8b8;
}

.lf-alert.success {
    background: rgba(70, 194, 110, 0.18);
    border: 1px solid rgba(70, 194, 110, 0.55);
    color: #b7f5ca;
}

.auth-demo-hint {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 200, 0, 0.1);
    border: 1px dashed rgba(255, 200, 0, 0.4);
    font-size: 12.5px;
    color: #f2e4a7;
    line-height: 1.5;
    display: none;
}

/* ================= MODAL (KOD AKTİVASYON & SATIN ALMA) ================= */
.lf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2500;
}

.lf-modal-overlay.open {
    display: flex;
}

.lf-modal-box {
    width: 100%;
    max-width: 440px;
    background: var(--lf-surface-solid);
    border: 2px solid var(--lf-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--lf-shadow);
    color: var(--lf-text);
    position: relative;
}

.lf-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.lf-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lf-modal-box h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--lf-accent);
}

.lf-modal-box p {
    font-size: 14px;
    color: var(--lf-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.code-input-big {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase !important;
}

/* ================= PREMIUM SAYFASI ================= */
.premium-section {
    padding: 50px 7% 80px;
    color: var(--lf-text);
    min-height: calc(100vh - 96px);
}

.premium-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 38px;
}

.premium-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--lf-accent);
    margin-bottom: 10px;
}

.premium-hero p {
    font-size: 16px;
    color: var(--lf-text-muted);
    line-height: 1.6;
}

.premium-status-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    font-size: 14px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
}

.premium-card {
    background: var(--lf-surface);
    border: 2px solid var(--lf-border);
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--lf-shadow);
}

.premium-card.featured {
    border-color: var(--lf-accent);
    transform: translateY(-6px);
}

.premium-ribbon {
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--lf-accent);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}

.premium-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.premium-duration {
    font-size: 13px;
    color: var(--lf-text-muted);
    margin-bottom: 16px;
}

.premium-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--lf-accent);
    margin-bottom: 18px;
}

.premium-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--lf-text-muted);
}

.premium-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.premium-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--lf-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-features li::before {
    content: "✓";
    color: var(--lf-accent);
    font-weight: 800;
}

.premium-code-cta {
    max-width: 720px;
    margin: 36px auto 0;
    padding: 20px 24px;
    border-radius: 14px;
    background: var(--lf-surface);
    border: 1.5px dashed var(--lf-accent-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================= ADMIN PANELİ ================= */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 96px);
    color: var(--lf-text);
}

.admin-sidebar {
    background: var(--lf-surface);
    border-right: 1.5px solid var(--lf-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase !important;
    color: var(--lf-text-muted);
    padding: 0 10px 8px;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--lf-text);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav-btn.active {
    background: var(--lf-accent);
    color: #111;
}

.admin-main {
    padding: 28px 32px;
    background: rgba(12, 16, 13, 0.65);
    overflow-x: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-heading {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}

.admin-sub {
    font-size: 14px;
    color: var(--lf-text-muted);
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    border-radius: 12px;
    padding: 18px 20px;
}

.stat-label {
    font-size: 13px;
    color: var(--lf-text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--lf-accent);
}

.admin-card {
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--lf-accent);
}

.duration-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.duration-pill {
    padding: 12px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.duration-pill small {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.duration-pill.active {
    background: rgba(255, 200, 0, 0.2);
    border-color: var(--lf-accent);
    color: var(--lf-accent);
}

.code-form-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 12px;
    align-items: end;
}

.created-codes-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(70, 194, 110, 0.12);
    border: 1px solid rgba(70, 194, 110, 0.45);
    display: none;
}

.created-codes-box.show {
    display: block;
}

.created-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 8px;
    margin-top: 8px;
}

.code-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--lf-accent);
    font-size: 14.5px;
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--lf-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--lf-accent);
    color: #111;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th,
.admin-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    white-space: nowrap;
}

.admin-table th {
    color: var(--lf-text-muted);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase !important;
}

.badge-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-unused {
    background: rgba(70, 194, 110, 0.2);
    color: #79f29e;
}

.badge-used {
    background: rgba(255, 255, 255, 0.12);
    color: #bbb;
}

.badge-admin {
    background: rgba(94, 211, 255, 0.18);
    color: #7ee2ff;
}

.badge-user {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

.btn-mini {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    margin-right: 4px;
}

.btn-mini:hover {
    background: var(--lf-accent);
    color: #111;
}

.btn-mini.danger {
    background: rgba(224, 82, 82, 0.22);
    color: #ff9c9c;
}

.btn-mini.danger:hover {
    background: var(--lf-danger);
    color: #fff;
}

.panel-plan-pill {
    display: inline-block;
    margin-bottom: 20px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    font-size: 15px;
}

@media (max-width: 860px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        border-right: none;
        border-bottom: 1.5px solid var(--lf-border);
        flex-direction: row;
        flex-wrap: wrap;
    }
    .admin-sidebar-title {
        width: 100%;
    }
    .admin-nav-btn {
        width: auto;
    }
    .duration-pills {
        grid-template-columns: repeat(2, 1fr);
    }
    .code-form-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .user-trigger-name {
        display: none;
    }
    .user-dropdown {
        width: 250px;
    }
    .user-menu-wrap.user-menu-floating {
        top: 16px;
        right: 16px;
    }
}

/* ================= ANA SAYFA, HAKKINDA, İLETİŞİM & FOOTER ================= */
.auth-footer-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12.5px;
    color: var(--lf-text-muted);
    line-height: 1.5;
}

.lf-landing,
.lf-subpage {
    padding: 56px 7% 72px;
    min-height: calc(100vh - 96px);
    color: var(--lf-text);
}

.lf-container {
    max-width: 1180px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
    margin-bottom: 56px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 200, 0, 0.14);
    border: 1px solid rgba(255, 200, 0, 0.45);
    color: var(--lf-accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.14;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--lf-text-muted);
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.lf-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 10px;
    background: var(--lf-accent);
    color: #111111;
    font-size: 15.5px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(255, 200, 0, 0.22);
}

.lf-hero-btn-primary:hover {
    background: #ffd633;
    transform: translateY(-2px);
}

.lf-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid var(--lf-border);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 600;
}

.lf-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--lf-accent);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metric strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--lf-accent);
}

.hero-metric span {
    font-size: 13px;
    color: var(--lf-text-muted);
}

/* Sağ taraf devre önizleme kartı */
.circuit-showcase {
    background: var(--lf-surface);
    border: 2px solid var(--lf-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--lf-shadow);
}

.showcase-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.34);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
}

.showcase-dots {
    display: flex;
    gap: 6px;
}

.showcase-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.showcase-dots span:first-child { background: #e05252; }
.showcase-dots span:nth-child(2) { background: #ffc800; }
.showcase-dots span:nth-child(3) { background: #46c26e; }

.showcase-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 12.5px;
    color: var(--lf-text-muted);
}

.showcase-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #79f29e;
    background: rgba(70, 194, 110, 0.14);
    padding: 3px 9px;
    border-radius: 999px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #46c26e;
}

.showcase-canvas {
    padding: 14px;
}

.showcase-canvas svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Özellik Kartları */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: var(--lf-shadow);
}

.feature-card:hover {
    border-color: var(--lf-accent);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 200, 0, 0.14);
    border: 1px solid rgba(255, 200, 0, 0.35);
    color: var(--lf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--lf-text-muted);
}

/* Alt Sayfalar (Hakkında & İletişim) */
.subpage-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 42px;
}

.subpage-hero h1 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.subpage-hero p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--lf-text-muted);
}

.about-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    margin-bottom: 34px;
    align-items: stretch;
}

.about-card,
.about-visual-card {
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--lf-shadow);
}

.about-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--lf-accent);
    margin-bottom: 14px;
}

.about-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--lf-text-muted);
    margin-bottom: 12px;
}

.about-visual-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.about-visual-card svg {
    width: 100%;
    height: auto;
    display: block;
}

/* İletişim Sayfası */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    align-items: start;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--lf-surface);
    border: 1.5px solid var(--lf-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--lf-shadow);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 200, 0, 0.14);
    border: 1px solid rgba(255, 200, 0, 0.35);
    color: var(--lf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 15px;
    font-weight: 600;
    color: var(--lf-accent);
    margin-bottom: 4px;
}

.contact-info-card small {
    font-size: 13px;
    color: var(--lf-text-muted);
}

.contact-form-card {
    background: var(--lf-surface);
    border: 2px solid var(--lf-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--lf-shadow);
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lf-textarea {
    resize: vertical;
    min-height: 118px;
    line-height: 1.5;
}

/* Footer */
.lf-footer {
    background: var(--lf-header-bg);
    border-top: 1px solid var(--lf-border);
    color: var(--lf-text-muted);
    padding: 20px 7%;
    font-size: 13.5px;
}

.lf-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lf-footer-inner strong {
    color: #ffffff;
}

.lf-footer-links {
    display: flex;
    gap: 18px;
}

.lf-footer-links a {
    color: var(--lf-text-muted);
}

.lf-footer-links a:hover {
    color: var(--lf-accent);
}

@media (max-width: 960px) {
    .hero-grid,
    .about-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 34px;
    }
    .subpage-hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

/* ================= YENİ ADMIN ÖZELLİKLERİ (KURUCU, TEK TUŞ PREMİUM, KOD İPTAL) ================= */
.badge-super {
    background: rgba(255, 200, 0, 0.22);
    color: var(--lf-accent);
    border: 1px solid rgba(255, 200, 0, 0.55);
}

.badge-cancelled {
    background: rgba(224, 82, 82, 0.22);
    color: #ff9c9c;
    border: 1px solid rgba(224, 82, 82, 0.45);
}

.code-cancelled {
    text-decoration: line-through;
    opacity: 0.6;
}

.user-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.prem-grant-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 200, 0, 0.08);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 7px;
    padding: 2px 3px 2px 6px;
}

.prem-select-mini {
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 2px;
    cursor: pointer;
}

.prem-select-mini option {
    background: #1b241d;
    color: #fff;
}

.btn-mini.gold {
    background: var(--lf-accent);
    color: #111;
    margin-right: 0;
}

.btn-mini.gold:hover {
    background: #ffd633;
}

.btn-mini.warn {
    background: rgba(255, 168, 38, 0.2);
    color: #ffd080;
}

.btn-mini.warn:hover {
    background: #f09c2b;
    color: #111;
}

.lock-pill {
    display: inline-block;
    font-size: 11.5px;
    color: var(--lf-text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

/* ================= KAPSAMLI MOBİL & TABLET UYUMLULUK ================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.header .logo,
.header-giris .logo {
    font-size: clamp(26px, 4.6vw, 56px);
    line-height: 1.08;
    flex-shrink: 0;
}

.header .auth-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Mobil hamburger butonu (masaüstünde gizli) */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid var(--lf-border);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.header.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .header {
        padding: 12px 4%;
        gap: 10px;
    }

    .header-giris {
        padding: 12px 4%;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .header .logo {
        order: 1;
        margin-right: auto;
    }

    .header .auth-buttons {
        order: 2;
    }

    .header .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lf-surface-solid);
        border-bottom: 2px solid var(--lf-border);
        box-shadow: var(--lf-shadow);
        flex-direction: column;
        padding: 10px 16px 14px;
        z-index: 1200;
    }

    .header.nav-open .navbar {
        display: flex;
    }

    .header .navbar a {
        margin: 0;
        padding: 12px 10px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header .navbar a:last-child {
        border-bottom: none;
    }

    .header .navbar .active,
    .header .navbar a:hover {
        padding-bottom: 12px;
        border-bottom-color: var(--lf-accent);
        color: var(--lf-accent);
    }

    .header .auth-buttons .btn-login,
    .header .auth-buttons .btn-register {
        font-size: 15px;
        padding: 7px 12px;
        margin-left: 0;
    }

    .user-dropdown {
        width: min(280px, calc(100vw - 24px));
    }
}

/* Mobil Kart Tablo Görünümü (Admin Paneli) */
@media (max-width: 760px) {
    .admin-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 12px;
    }

    .admin-sidebar-title {
        grid-column: 1 / -1;
        padding: 0 4px 4px;
    }

    .admin-nav-btn {
        justify-content: center;
        text-align: center;
        padding: 10px 6px;
        font-size: 12.5px;
        gap: 4px;
    }

    .admin-main {
        padding: 18px 12px 32px;
    }

    .admin-heading {
        font-size: 22px;
    }

    .admin-card {
        padding: 16px 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .admin-table.responsive-table thead {
        display: none;
    }

    .admin-table.responsive-table,
    .admin-table.responsive-table tbody,
    .admin-table.responsive-table tr,
    .admin-table.responsive-table td {
        display: block;
        width: 100%;
    }

    .admin-table.responsive-table tr {
        background: rgba(0, 0, 0, 0.24);
        border: 1px solid var(--lf-border);
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .admin-table.responsive-table tr.empty-row {
        background: transparent;
        border: none;
    }

    .admin-table.responsive-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        white-space: normal;
        word-break: break-word;
        text-align: right;
    }

    .admin-table.responsive-table tr.empty-row td {
        display: block;
        text-align: center;
        border-bottom: none;
    }

    .admin-table.responsive-table td:last-child {
        border-bottom: none;
    }

    .admin-table.responsive-table td::before {
        content: attr(data-label);
        font-size: 11.5px;
        font-weight: 700;
        color: var(--lf-text-muted);
        text-transform: uppercase;
        text-align: left;
        flex-shrink: 0;
    }

    .admin-table.responsive-table tr.empty-row td::before {
        display: none;
    }

    .admin-table.responsive-table td.actions-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 10px;
    }

    .admin-table.responsive-table td.actions-cell .user-actions-wrap {
        width: 100%;
    }
}

/* Çalışma Alanı, Giriş, Landing, Hakkında, İletişim & Premium Mobil Ayarları */
@media (max-width: 700px) {
    .calisma-sayfa {
        padding: 92px 18px 48px;
    }

    .calisma-sayfa h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .calisma-sayfa p {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .btn-calisma {
        font-size: 19px;
        padding: 10px 18px;
    }

    .geri-butonu {
        top: 16px;
        left: 14px;
        font-size: 16px;
        padding: 8px 14px;
    }

    .calisma-sayfa.iki-bolme {
        min-height: calc(100vh - 68px);
    }

    .calisma-yarim {
        padding: 26px 16px;
    }

    .calisma-buton {
        width: min(260px, 100%);
        min-height: 175px;
        font-size: 19px;
    }

    .calisma-buton svg {
        width: 86px;
        height: 70px;
    }

    .lf-landing,
    .lf-subpage,
    .premium-section {
        padding: 32px 16px 56px;
    }

    .hero-text h1 {
        font-size: 29px;
    }

    .hero-desc {
        font-size: 15px;
    }

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

    .lf-hero-btn-primary,
    .lf-hero-btn-secondary {
        width: 100%;
    }

    .hero-metrics {
        gap: 18px;
        justify-content: space-between;
    }

    .showcase-topbar {
        flex-wrap: wrap;
    }

    .subpage-hero h1,
    .premium-hero h1 {
        font-size: 28px;
    }

    .about-card,
    .contact-form-card,
    .auth-card {
        padding: 20px 16px;
    }

    .premium-card.featured {
        transform: none;
    }

    .premium-code-cta {
        padding: 18px 16px;
    }

    .premium-code-cta .lf-btn-secondary {
        width: 100%;
    }

    .lf-modal-box {
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px 16px;
    }

    /* iOS Safari'de input'a tıklayınca ekran yakınlaştırmasını önler */
    .lf-input,
    .lf-select,
    .lf-textarea {
        font-size: 16px;
    }

    .lf-footer {
        padding: 18px 16px;
    }

    .lf-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .header .auth-buttons .btn-login,
    .header .auth-buttons .btn-register {
        font-size: 13.5px;
        padding: 6px 9px;
    }

    .user-menu-trigger {
        padding: 5px 10px 5px 6px;
        gap: 6px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12.5px;
    }
}

/* ================= HEADER GÖRSEL LOGOSU ================= */
.header {
    padding: 10px 7%;
}

.header-giris {
    padding: 10px 7%;
}

.header .logo,
.header-giris .logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    font-size: 0;
    padding: 2px 0;
}

.site-logo-img {
    height: 62px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-giris .site-logo-img {
    height: 68px;
}

.header .logo:hover .site-logo-img,
.header-giris .logo:hover .site-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 3px 10px rgba(255, 200, 0, 0.35));
}

@media (max-width: 900px) {
    .header,
    .header-giris {
        padding: 8px 4%;
    }
    .site-logo-img,
    .header-giris .site-logo-img {
        height: 48px;
    }
}

@media (max-width: 420px) {
    .site-logo-img,
    .header-giris .site-logo-img {
        height: 40px;
    }
}
