* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: radial-gradient(circle at top left, #22c55e 0, #020617 55%);
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ÜST BAR */
.topbar {
    padding: 12px 26px;
    background: rgba(15,23,42,0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: #22c55e;
    color: #052e16;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.logo-texts {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 16px;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 11px;
    color: #9ca3af;
}

.service-login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
    background-size: 180% 180%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35), 0 6px 16px rgba(249, 115, 22, 0.35);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}

.service-login-btn::before {
    content: "";
    position: absolute;
    inset: -60% -20%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0.6;
}

.service-login-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 16px 30px rgba(244, 63, 94, 0.45), 0 10px 22px rgba(249, 115, 22, 0.45);
}

.service-login-btn:active {
    transform: translateY(0);
}

.service-login-btn:focus-visible {
    outline: 2px solid rgba(251, 113, 133, 0.9);
    outline-offset: 2px;
}

.service-login-icon {
    position: relative;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 1px 6px;
}

/* NAV */
.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.nav-user {
    color: #d1d5db;
}

.nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.nav a:hover {
    background: rgba(15,23,42,0.9);
}

/* ANA İÇERİK */
.main {
    max-width: 1150px;
    margin: 20px auto 0 auto;
    padding: 0 18px 22px;
    width: 100%;
    flex: 1;
}

/* ÜST ÖZET KARTLAR */
.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.alert-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.6);
}

.alert-error .alert-title {
    font-size: 13px;
    font-weight: 700;
    color: #fecaca;
}

.summary-card {
    background: rgba(15,23,42,0.97);
    border-radius: 14px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.summary-card .label {
    font-size: 11px;
    color: #9ca3af;
}

.summary-card .value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin: 2px 0;
}

.summary-card .hint {
    font-size: 11px;
    color: #9ca3af;
}

/* DURUM RENKLERİ */
.status-onarimda {
    color: #fee2e2;
}

/* ANA LAYOUT */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 16px;
}

/* CARD GENEL */
.card {
    background: rgba(15,23,42,0.97);
    border-radius: 16px;
    padding: 12px 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    margin-bottom: 10px;
}

.card h1 {
    font-size: 18px;
    margin-bottom: 3px;
}

.card h2 {
    font-size: 15px;
    margin-bottom: 4px;
}

.card p {
    font-size: 12px;
    color: #9ca3af;
}

/* CİHAZ DURUMU KARTI */
.card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(248, 113, 113, 0.8);
    background: rgba(239, 68, 68, 0.18);
    color: #fee2e2;
}

/* CİHAZ BİLGİLERİ */
.device-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 12px;
}

.device-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.device-type {
    color: #9ca3af;
}

.device-meta div span {
    color: #9ca3af;
}

/* PROGRESS BAR */
.progress-wrapper {
    margin: 6px 0 10px;
}

.progress-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #111827;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 999px;
}

/* AŞAMA ÇİZELGESİ (TIMELINE) */
.timeline {
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(55,65,81,0.9);
    margin-bottom: 10px;
}

.step {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.step:last-child {
    margin-bottom: 0;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid #4b5563;
    background: #020617;
    margin-top: 2px;
    flex-shrink: 0;
}

.step-body {
    font-size: 12px;
}

.step-title {
    font-weight: 600;
    margin-bottom: 1px;
}

.step-text {
    color: #9ca3af;
}

/* TAMAMLANAN VE GÜNCEL AŞAMA RENKLERİ */
.step.done .dot {
    border-color: #22c55e;
    background: #16a34a;
}

.step.current .dot {
    border-color: #f59e0b;
    background: #fde68a;
}

/* SERVİS NOTLARI */
.notes h2 {
    font-size: 14px;
    margin-bottom: 4px;
}

.notes ul {
    list-style: none;
    font-size: 12px;
    color: #d1d5db;
}

.notes li {
    margin-bottom: 3px;
}

/* TABLO GENEL */
.table-scroll {
    margin-top: 4px;
    max-height: 180px;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid #111827;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table th,
.table td {
    border-bottom: 1px solid #111827;
    padding: 6px 6px;
    text-align: left;
}

.table thead {
    background: rgba(15,23,42,0.94);
}

.table th {
    font-size: 11px;
    color: #9ca3af;
    font-weight: normal;
}

/* SAĞ SÜTUN İÇERİKLERİ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.info-label {
    font-size: 11px;
    color: #9ca3af;
}

.info-value {
    font-size: 12px;
}

.notify-box {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #374151;
}

.notify-title {
    font-size: 12px;
    margin-bottom: 4px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 3px;
}

.checkbox-line input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

/* SERVİS ÖZETİ */
.service-summary > div {
    margin-bottom: 6px;
}

.small-muted {
    font-size: 11px;
    color: #9ca3af;
}

/* SERVİS NOKTASI BİLGİLERİ */
.shop-info {
    font-size: 12px;
}

.info-block {
    margin-bottom: 5px;
}

/* SSS */
.faq details {
    margin-bottom: 6px;
    font-size: 12px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: "▸ ";
    color: #60a5fa;
}

details[open] summary::before {
    content: "▾ ";
}

.faq p {
    margin-top: 3px;
}

/* NOT YAZISI */
.note {
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
}

/* ALT BÖLÜM */
.footer {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 10px 16px 16px;
    margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .summary-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 780px) {
    .summary-row {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .card h1 {
        font-size: 17px;
    }

    .card h2 {
        font-size: 14px;
    }

    .timeline {
        padding: 8px;
    }
}

@media (max-width: 650px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 16px;
    }

    .nav {
        align-self: flex-end;
        flex-wrap: wrap;
    }

    .info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-login-btn {
        align-self: flex-end;
    }

    .main {
        margin-top: 14px;
        padding: 0 14px 18px;
    }

    .summary-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary-card {
        padding: 10px 12px;
    }

    .summary-card .value {
        font-size: 16px;
    }

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

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-pill {
        align-self: flex-start;
    }

    .device-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .device-meta {
        width: 100%;
    }

    .status-pill {
        font-size: 11px;
        padding: 5px 9px;
    }

    .progress-bar {
        height: 6px;
    }

    .table {
        display: block;
        overflow-x: auto;
    }
}
