/* =====================================================================
   Bulut Aktif - Genel Stiller
   Modern, koyu mavi/turkuaz vurgu, sade ve okunaklı.
   ===================================================================== */

:root {
    --c-bg:        #0b1220;
    --c-bg-2:      #0f172a;
    --c-card:      #ffffff;
    --c-text:      #0f172a;
    --c-muted:     #64748b;
    --c-border:    #e2e8f0;
    --c-primary:   #0ea5e9;
    --c-primary-d: #0369a1;
    --c-accent:    #06b6d4;
    --c-success:   #10b981;
    --c-warning:   #f59e0b;
    --c-danger:    #ef4444;
    --c-soft:      #f1f5f9;
    --radius:      10px;
    --shadow-sm:   0 1px 2px rgba(15,23,42,.06);
    --shadow:      0 8px 24px rgba(15,23,42,.08);
    --shadow-lg:   0 24px 48px rgba(15,23,42,.18);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--c-text);
    background: #fafbfc;
    line-height: 1.55;
}

a { color: var(--c-primary-d); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

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

/* ----------- Buttons ----------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { background: var(--c-primary-d); text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-outline { background: transparent; color: var(--c-primary-d); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-text); }
.btn-ghost:hover { background: var(--c-soft); }
.btn-danger { background: var(--c-danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--c-success); }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ----------- Public navbar ----------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav .logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 20px; color: var(--c-text);
}
.nav .logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800;
}

/* ----------- Logo görseli (logo.png) ----------- */
.logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
.logo-img.sm  { height: 32px; }
.logo-img.lg  { height: 56px; }
/* Koyu zeminde (sidebar, auth-card) — eğer logon koyu renkli ise yine görünür kalsın */
.sidebar .logo-img,
.auth-card .logo-img {
    height: 44px;
    max-width: 200px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--c-text); font-weight: 500; }
.nav-links a:hover { color: var(--c-primary-d); text-decoration: none; }

/* ----------- Hero ----------- */
.hero {
    padding: 80px 0 100px;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(14,165,233,.18), transparent 60%),
        radial-gradient(700px 400px at 0% 0%, rgba(6,182,212,.12), transparent 60%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}
.hero h1 {
    font-size: 52px; line-height: 1.1; margin: 0 0 20px;
    letter-spacing: -.02em;
}
.hero h1 .grad {
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
    font-size: 19px; color: var(--c-muted); margin: 0 0 32px; max-width: 640px;
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero-card {
    background: linear-gradient(180deg, #0b1220, #0f172a);
    color: #e2e8f0; border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px; line-height: 1.7;
}
.hero-card .dim { color: #64748b; }
.hero-card .ok { color: #34d399; }
.hero-card .b { color: #38bdf8; }

/* ----------- Sections ----------- */
section { padding: 72px 0; }
section h2 {
    font-size: 34px; margin: 0 0 12px; letter-spacing: -.01em;
    text-align: center;
}
section .sub {
    text-align: center; color: var(--c-muted); max-width: 640px; margin: 0 auto 48px;
    font-size: 17px;
}

.features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature .icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 20px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { color: var(--c-muted); margin: 0; }

.steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    counter-reset: step;
}
.step {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: 14px; padding: 28px 24px; position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; top: -16px; left: 24px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; box-shadow: var(--shadow-sm);
}
.step h3 { margin: 8px 0; font-size: 17px; }
.step p { color: var(--c-muted); font-size: 14px; margin: 0; }

.pricing {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 1000px; margin: 0 auto;
}
.plan {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: 14px; padding: 28px; text-align: center;
}
.plan.featured {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(14,165,233,.08);
    transform: translateY(-6px);
}
.plan h3 { margin-top: 0; }
.plan .price { font-size: 42px; font-weight: 800; margin: 12px 0; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--c-muted); }
.plan ul { list-style: none; padding: 0; text-align: left; margin: 16px 0; }
.plan li { padding: 6px 0; color: var(--c-muted); }
.plan li::before { content: '✓ '; color: var(--c-success); font-weight: 800; }

.faq-item {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: 12px; padding: 18px 20px; margin-bottom: 12px;
}
.faq-item summary {
    cursor: pointer; font-weight: 600; outline: none;
}
.faq-item p { color: var(--c-muted); margin: 12px 0 0; }

footer {
    background: var(--c-bg); color: #cbd5e1; padding: 48px 0;
}
footer .grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 32px;
}
footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
footer a { color: #cbd5e1; }
footer a:hover { color: #fff; }
footer .copy {
    border-top: 1px solid #1e293b; padding-top: 24px;
    color: #64748b; font-size: 13px;
}

/* ----------- Auth pages ----------- */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(14,165,233,.18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(6,182,212,.12), transparent 60%),
        #f8fafc;
    padding: 24px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border-radius: 16px;
    padding: 36px; box-shadow: var(--shadow);
}
.auth-card .logo {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 24px; font-weight: 800; font-size: 22px;
}

/* ----------- Forms ----------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-weight: 500; margin-bottom: 6px;
    font-size: 14px; color: var(--c-text);
}
.form-control {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--c-border); border-radius: 8px;
    font-size: 14px; background: #fff; color: var(--c-text);
    transition: border-color .12s ease, box-shadow .12s ease;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.form-help { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

.alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
    border: 1px solid transparent;
}
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ----------- Panel layout ----------- */
.panel {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: linear-gradient(180deg, #0b1220, #0f172a);
    color: #cbd5e1; padding: 24px 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 16px;
}
.sidebar .brand .logo {
    color: #fff; font-weight: 800; font-size: 20px;
    display: flex; align-items: center; gap: 10px;
}
.sidebar .brand .role {
    font-size: 12px; color: #64748b; text-transform: uppercase; margin-top: 4px;
    letter-spacing: .1em;
}
.sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 24px; color: #cbd5e1;
    border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: #111827; color: #fff; text-decoration: none; }
.sidebar nav a.active {
    background: #111827; color: #fff;
    border-left-color: var(--c-primary);
}
.sidebar .user-box {
    padding: 16px 24px; border-top: 1px solid #1e293b; margin-top: 16px;
    font-size: 13px;
}
.sidebar .user-box .name { color: #fff; font-weight: 600; }
.sidebar .user-box .meta { color: #64748b; font-size: 12px; }
.sidebar .user-box a.logout {
    display: inline-block; margin-top: 10px; color: #f87171; font-size: 13px;
}

.main {
    padding: 32px 40px;
    background: #fafbfc;
}
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.page-header h1 { margin: 0; font-size: 26px; }
.page-header .actions { display: flex; gap: 8px; }

.card {
    background: #fff; border: 1px solid var(--c-border);
    border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.card h2 { margin: 0 0 16px; font-size: 18px; }
.card .card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: -24px -24px 16px; padding: 16px 24px;
    border-bottom: 1px solid var(--c-border);
}
.card .card-header h2 { margin: 0; }

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.stat {
    background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
    padding: 20px; box-shadow: var(--shadow-sm);
}
.stat .label { color: var(--c-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.stat .hint  { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

table.data {
    width: 100%; border-collapse: collapse;
}
table.data th, table.data td {
    text-align: left; padding: 12px; font-size: 14px;
    border-bottom: 1px solid var(--c-border);
}
table.data th {
    color: var(--c-muted); font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .05em;
    background: #f8fafc;
}
table.data tr:hover td { background: #fafbfc; }
table.data .col-actions { text-align: right; }

.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    color: #fff; font-size: 12px; font-weight: 600;
    position: relative;
}
/* Aktif (devam etmekte olan) durumlar için nabız atan halka */
.badge-pulse {
    box-shadow: 0 0 0 0 rgba(var(--badge-rgb, 59,130,246), .55);
    animation: badge-pulse 1.6s ease-out infinite;
}
.badge-pulse::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    margin-right: 6px;
    vertical-align: middle;
    animation: badge-dot-blink 1.2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(var(--badge-rgb, 59,130,246), .55); }
    70%  { box-shadow: 0 0 0 10px rgba(var(--badge-rgb, 59,130,246), 0); }
    100% { box-shadow: 0 0 0 0   rgba(var(--badge-rgb, 59,130,246), 0); }
}
@keyframes badge-dot-blink {
    0%, 100% { opacity: .3; transform: scale(.85); }
    50%      { opacity: 1;  transform: scale(1.2);  }
}

.empty {
    text-align: center; padding: 48px 24px;
    color: var(--c-muted);
}
.empty h3 { color: var(--c-text); margin: 8px 0; }

.progress {
    width: 100%; height: 8px; background: var(--c-soft); border-radius: 4px; overflow: hidden;
}
.progress > div {
    height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    transition: width .3s ease;
}

.copy-line {
    display: flex; gap: 8px; align-items: center;
    background: #f8fafc; border: 1px solid var(--c-border);
    padding: 8px 12px; border-radius: 8px; font-family: ui-monospace, monospace;
    font-size: 13px;
}
.copy-line input {
    flex: 1; border: none; background: transparent; font-family: inherit;
    outline: none; color: var(--c-text);
}

/* ----------- Stage göstergesi (canlı aşama) ----------- */
.stage-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--c-muted);
}
.stage-line.hidden { display: none; }
.stage-spinner {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: stage-spin .8s linear infinite;
}
@keyframes stage-spin { to { transform: rotate(360deg); } }
.stage-text { color: var(--c-text); font-weight: 500; }
.stage-pct  { color: var(--c-primary-d); font-weight: 700; }

/* ----------- Modal ----------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .15s ease;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
    animation: slideUp .18s ease;
}
.modal h2 { margin: 0 0 16px; font-size: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 920px) {
    .hero { padding: 60px 0 60px; }
    .hero h1 { font-size: 36px; }
    .hero-grid, .features, .steps, .pricing { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .panel { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .main { padding: 20px; }
    footer .grid { grid-template-columns: 1fr; gap: 24px; }
}
