:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --accent: #3498db;
    --error: #e74c3c;
    --warning: #f1c40f;
    --muted: #7f8c8d;
    --font-sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    margin: 0;
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #1a252f 100%);
    color: #333;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    min-height: 88px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    gap: 12px;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.nav-logo {
    height: 72px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}
@media (max-width: 768px) {
    .nav-logo {
        height: 56px;
        max-width: 180px;
    }
}
.nav-toggle {
    display: none;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: auto;
}
.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-links a, .nav-links button {
    color: white;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.nav-links .btn-nav {
    background: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.nav-links .btn-nav:hover { background: var(--primary-dark); text-decoration: none; }
@media (max-width: 960px) {
    .nav { padding: 10px 16px; min-height: 72px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% - 4px);
        right: 16px;
        left: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(26, 37, 47, 0.98);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.28);
        z-index: 1000;
    }
    .nav-links.open { display: flex; }
    .nav-links a, .nav-links button {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }
    .nav-links .btn-nav { justify-content: center; }
    .nav-user, .nav-logout { display: none !important; }
}
.nav-user {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    white-space: nowrap;
}
.nav-logout {
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.page { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }

.hero {
    text-align: center;
    color: white;
    padding: 60px 20px;
}
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.85; max-width: 600px; margin: 0 auto 32px; }
.hero-badge {
    display: inline-block;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--accent); color: white; }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.card h3 { margin-top: 0; color: var(--dark); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.plan-card { text-align: center; position: relative; }
.plan-card.featured { border: 2px solid var(--primary); transform: scale(1.02); }
.plan-price { font-size: 36px; font-weight: bold; color: var(--dark); }
.plan-price span { font-size: 14px; color: var(--muted); }
.plan-features { list-style: none; padding: 0; text-align: left; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid #eee; }
.plan-features li::before { content: "✓ "; color: var(--primary); }

.home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.home-layout--full {
    grid-template-columns: 1fr;
}
.home-main {
    min-width: 0;
}
.home-auth {
    position: sticky;
    top: 20px;
    margin: 0;
    max-width: none;
}
.home-auth .auth-title {
    text-align: center;
    margin: 0 0 20px;
    font-size: 20px;
}
.auth-forms {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-forms h3 {
    margin: 0 0 12px;
    font-size: 16px;
}
.auth-divider {
    height: 1px;
    background: #eee;
}
.auth-container {
    max-width: 420px;
    margin: 40px auto;
}
@media (max-width: 960px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    .home-auth {
        position: static;
        order: -1;
        max-width: 480px;
        margin: 0 auto 32px;
    }
}
.input-group { margin-bottom: 16px; }
.input-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #555; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
button, input, select, textarea {
    font-family: inherit;
}
.input-group input:focus { border-color: var(--accent); outline: none; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: #fdecea; color: var(--error); border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.usage-bar {
    background: #eee;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-top: 8px;
}
.usage-bar-fill {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.sidebar { position: sticky; top: 20px; }
.stat-pill {
    display: inline-block;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.stat-pill.pro { background: #d5f5e3; color: #1e8449; }
.stat-pill.enterprise { background: #fdebd0; color: #b7950b; }
.stat-pill.free { background: #ebf5fb; color: #2471a3; }

.results-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; text-align: center; }
.result-circle { position: relative; width: 100px; height: 100px; margin: 0 auto 10px; }
.result-percent {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px; font-weight: bold;
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px; padding: 16px; text-align: center;
}
.stat-box .stat-title { font-size: 12px; color: #888; text-transform: uppercase; }
.stat-box .stat-value { font-size: 26px; font-weight: bold; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 15px; flex-wrap: wrap; }
.tab-btn {
    padding: 10px 16px; background: none; border: none;
    border-bottom: 3px solid transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #999;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; white-space: pre-wrap; line-height: 1.7; font-size: 14px; }
.tab-content.active { display: block; }
.tab-locked { color: var(--muted); font-style: italic; padding: 20px; text-align: center; }

.history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px; margin-bottom: 6px; background: #f8f9fa;
    border-radius: 8px; cursor: pointer; font-size: 13px;
}
.history-item:hover { background: #e8f4fd; }
.history-load-more {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px dashed #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.history-load-more:hover { background: #e8f4fd; border-color: #3498db; }

.match-result-box {
    text-align: center;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}
.match-result-box.found {
    background: #e8f8f0;
    color: #27ae60;
    border: 1px solid #2ecc71;
}
.match-result-box.pending {
    background: #fef9e7;
    color: #f39c12;
    border: 1px solid #f1c40f;
    font-size: 14px;
    font-weight: 600;
}
.match-result-box.loading {
    background: #ecf0f1;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
}

.chart-container { position: relative; height: 220px; }

.footer {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 32px;
    font-size: 12px;
}
.footer a { color: rgba(255,255,255,0.7); }

/* Ana sayfa analiz bölümleri */
.home-section { margin-bottom: 40px; }
.section-title {
    color: white;
    font-size: 24px;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.empty-state { text-align: center; color: #666; }
.featured-analysis { margin-bottom: 0; }
.match-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}
.team-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team-logo {
    width: 72px; height: 72px; object-fit: contain;
    border-radius: 50%; background: #f8f9fa; padding: 8px;
    border: 2px solid #eee;
}
.team-logo.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #bbb;
}
.team-name { font-weight: 700; font-size: 16px; color: var(--dark); }
.match-meta { text-align: center; }
.match-vs { font-size: 20px; font-weight: bold; color: var(--muted); }
.match-league { font-size: 13px; color: var(--accent); margin-top: 4px; }
.match-date { font-size: 12px; color: #999; margin-top: 4px; }
.analysis-tabs {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: 2px solid #eee; margin-bottom: 16px;
}
.analysis-tab-btn {
    padding: 10px 16px; background: none; border: none;
    border-bottom: 3px solid transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #999;
}
.analysis-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.analysis-tab-panel {
    display: none; white-space: pre-wrap; line-height: 1.7;
    font-size: 14px; color: #444; min-height: 80px;
}
.analysis-tab-panel.active { display: block; }
.match-result-box {
    margin-top: 24px; padding: 16px; background: #f0faf4;
    border-radius: 10px; border-left: 4px solid var(--primary);
}
.match-result-box h4 { margin: 0 0 8px; color: var(--dark); }
.match-result-box p { margin: 0; line-height: 1.6; }
.muted { color: #999; font-style: italic; }
.past-list { display: flex; flex-direction: column; gap: 12px; }
.past-item {
    display: block; text-decoration: none; color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.past-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); text-decoration: none; }
.past-teams {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-weight: 600; color: var(--dark);
}
.past-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.past-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: #888; }
.has-result { color: var(--primary); font-weight: 600; }
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.page-info { color: white; font-size: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

@media (max-width: 600px) {
    .match-header { grid-template-columns: 1fr; }
    .match-meta { order: -1; }
}

/* Profilim */
.profile-body { background: #ecf0f1; }
.profile-page { max-width: 960px; padding-top: 24px; padding-bottom: 40px; }
.profile-title { margin: 0 0 8px; font-size: 28px; color: var(--dark); }
.profile-lead { margin: 0 0 24px; color: var(--muted); }
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
@media (max-width: 800px) {
    .profile-grid { grid-template-columns: 1fr; }
}
.profile-card { margin-bottom: 0; }
.profile-card--wide { margin-top: 24px; }
.profile-card h2 { margin: 0 0 16px; font-size: 20px; color: var(--dark); }
.profile-upgrade-btn {
    width: 100%;
    margin-top: 16px;
    text-align: center;
    display: block;
}
.profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.profile-info-row span { color: var(--muted); }
.profile-table-wrap { overflow-x: auto; }
.profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.profile-table th,
.profile-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.profile-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
}
.profile-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.profile-status--paid { background: #d4edda; color: #155724; }
.profile-analyses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.profile-analyses-header h2 { margin: 0; }
.profile-analyses-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.profile-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.profile-analyses-list { display: flex; flex-direction: column; gap: 10px; }
.profile-analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}
.profile-analysis-main { min-width: 0; flex: 1; }
.profile-analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}
.profile-analysis-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .profile-analyses-header { align-items: flex-start; }
    .profile-analysis-item {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-analysis-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
.profile-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.profile-page-info { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

.checkout-card { max-width: 480px; margin: 40px auto; }
.demo-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    text-align: center;
    margin: 16px 0;
}

/* Bilgi sayfaları */
.info-page { padding-top: 24px; padding-bottom: 40px; }
.info-card { max-width: 920px; margin: 0 auto; padding: 32px; }
.info-title { margin: 0 0 12px; font-size: 32px; color: var(--dark); }
.info-lead { font-size: 18px; color: #555; line-height: 1.6; margin: 0 0 28px; }
.info-content h2 { margin: 28px 0 12px; font-size: 22px; color: var(--dark); }
.info-content p, .info-content li { line-height: 1.75; color: #444; }
.info-content ul { padding-left: 20px; }
.info-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.guide-step { margin-bottom: 36px; }
.guide-figure { margin: 16px 0 0; }
.guide-figure img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.guide-figure--compact img { max-width: 360px; }
.guide-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}
.guide-tip { padding: 20px; border-radius: 12px; margin-top: 24px; }
.guide-tip h3 { margin: 0 0 8px; }
.support-form { max-width: 640px; }
.support-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}
.support-form textarea:focus { border-color: var(--accent); outline: none; }
.support-contact-box a { color: var(--accent); text-decoration: none; }
.support-contact-box a:hover { text-decoration: underline; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card h2 { margin: 0 0 8px; font-size: 18px; }
.contact-card p { margin: 0 0 12px; color: #666; font-size: 14px; }
.contact-email {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
}
.contact-email:hover { text-decoration: underline; }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s;
}
.social-btn:hover { opacity: 0.9; text-decoration: none; }
.social-icon { font-size: 18px; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-facebook { background: #1877f2; }
.social-youtube { background: #ff0000; }