:root {
  --accent: #7c3aed;
  --accent-600: #6d28d9;
  --accent-50: #f3e8ff;
  --pink: #db2777;
  --ok: #16a34a;
  --ok-50: #dcfce7;
  --bad: #dc2626;
  --bad-50: #fee2e2;
  --warn: #b45309;
  --warn-50: #fef3c7;
  --muted: #6b7280;
  --line: #ebe8f3;
  --bg: #f6f5fb;
  --card: #fff;
  --ink: #1f1b2e;
  --radius: 16px;
}

html { font-size: 15px; }
body { color: var(--ink); background: var(--bg); }

.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { color: var(--accent-600); text-decoration: underline; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-50); }
.form-control:focus, .form-select:focus, .btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(124, 58, 237, .18); }

/* ---- Uygulama iskeleti ---- */
body.app { display: flex; flex-direction: column; min-height: 100vh; }
body.app > main { flex: 1; }
.app-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.app-header .navbar { padding: .6rem 0; }
.brand-logo { height: 38px; width: auto; }
.main-nav .nav-link { color: var(--muted); font-weight: 500; border-radius: 10px; padding: .45rem .8rem !important; }
.main-nav .nav-link:hover { color: var(--ink); background: var(--bg); }
.main-nav .nav-link.active { color: var(--accent); background: var(--accent-50); }
.app-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .85rem; padding: 1rem 0; }
.app-footer a { color: inherit; }
#appToast { background: var(--ink); color: #fff; }

.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-title { font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; margin: 0; }
.page-sub { color: var(--muted); margin: .25rem 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel-title { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.panel-title i { color: var(--accent); }

/* ---- Giriş / şifre sayfaları (place.codestup.com ile aynı düzen) ---- */
body.auth { --accent: #db2777; --accent-600: #be185d; --accent-50: #fdf2f8; background: #fff; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 3rem;
  background:
    radial-gradient(1000px 600px at -10% -10%, rgba(219, 39, 119, .5), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(14, 165, 233, .35), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(245, 158, 11, .25), transparent 60%),
    #0b0f19;
}
.auth-hero-inner { max-width: 460px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: -.01em; }
.brand strong { font-weight: 800; }
.brand-lg { font-size: 1.35rem; }
.brand-lg .brand-mark { width: 48px; height: 48px; object-fit: contain; }
.auth-hero h1 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 4rem; letter-spacing: .02em; line-height: 1; margin: 2.5rem 0 1rem; }
.auth-hero p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; line-height: 1.6; }
.auth-features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.auth-features li { display: flex; gap: .7rem; align-items: center; color: rgba(255, 255, 255, .85); }
.auth-features i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #f9a8d4; flex-shrink: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { display: block; width: 120px; height: auto; margin: 0 auto 1.75rem; }
.auth-title { font-weight: 700; font-size: 1.6rem; margin-bottom: .35rem; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-50); color: var(--accent); margin-bottom: 1.25rem; }
.auth-icon.success { background: var(--ok-50); color: var(--ok); }
.auth .form-control:focus, .auth .form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(219, 39, 119, .2); }
.auth .form-label { font-weight: 600; font-size: .88rem; }
.auth .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding: .7rem .9rem .7rem 2.5rem; border-radius: 10px; }
.btn-eye { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: .25rem .5rem; }
.auth .btn { border-radius: 10px; }

@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 2rem 1.5rem; }
  .auth-hero h1 { font-size: 2.8rem; margin-top: 1.5rem; }
  .auth-features { display: none; }
}

/* ---- Uygulama ---- */
body.app { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.brand-name { font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.brand-name strong { font-weight: 800; }
.user-menu .dropdown-toggle { color: var(--ink); font-weight: 500; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* ---- Haftalık fikstür ---- */
.week-nav { display: flex; gap: .4rem; }
.week-nav .btn { border-radius: 10px; }
.filter-tabs { display: inline-flex; gap: .25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .25rem; flex-wrap: wrap; }
.filter-tabs a { padding: .4rem .8rem; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9rem; }
.filter-tabs a.active { background: var(--accent); color: #fff; }
.filter-tabs a:not(.active):hover { background: var(--bg); color: var(--ink); }
.filter-tabs .cnt { opacity: .7; font-size: .8rem; margin-left: .2rem; }
.sync-info { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.sync-info .btn { border-radius: 9px; }
.day-title { font-weight: 700; font-size: 1.05rem; margin: 1.75rem 0 .75rem; display: flex; align-items: center; gap: .6rem; }
.day-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fixture-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fixture:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.fixture:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.fixture { display: grid; grid-template-columns: 110px 1fr 24px 1fr 260px; align-items: center; gap: .75rem; padding: .8rem 1.1rem; }
.fixture + .fixture { border-top: 1px solid var(--line); }
.fixture.is-focus { background: #fffbea; box-shadow: inset 3px 0 0 #f5c400; }
.fixture.is-cancelled { opacity: .55; }
.fx-time { display: inline-block; font-weight: 700; background: var(--accent-50); color: var(--accent-600); border-radius: 8px; padding: .3rem .6rem; font-size: .9rem; white-space: nowrap; }
.fx-time.is-tbd { background: var(--bg); color: var(--muted); font-weight: 600; font-size: .78rem; }
.fx-team { display: flex; align-items: center; gap: .6rem; font-weight: 600; min-width: 0; }
.fx-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.fx-home { justify-content: flex-end; text-align: right; }
.fx-vs { text-align: center; color: var(--muted); }
.fx-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; min-width: 0; }
.fx-venue { color: var(--muted); font-size: .78rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 6px; white-space: nowrap; }
.tag-comp { background: var(--bg); color: var(--ink); }
.tag-comp.is-europe { background: #e0e7ff; color: #3730a3; }
.fx-channel-row { position: relative; display: flex; align-items: center; gap: .35rem; max-width: 100%; }
.fx-channel { font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-channel i { color: var(--accent); }
.fx-channel.is-default { color: var(--muted); font-weight: 500; }
.fx-edit summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .8rem; padding: 0 .2rem; }
.fx-edit summary::-webkit-details-marker { display: none; }
.fx-edit summary:hover { color: var(--accent); }
.fx-edit-pop { position: absolute; top: 1.6rem; right: 0; z-index: 5; width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem; box-shadow: 0 12px 30px rgba(31, 27, 46, .12); }
.fx-edit-hint { color: var(--muted); font-size: .72rem; margin-top: .35rem; text-align: left; }

@media (max-width: 767.98px) {
  .fixture { grid-template-columns: 1fr 16px 1fr; row-gap: .45rem; padding: .75rem .85rem; }
  .fx-mid { grid-column: 1 / -1; display: flex; }
  .fx-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .fx-team { font-size: .9rem; gap: .4rem; }
  .fx-team img { width: 22px; height: 22px; }
}
