/* =========================================================
   GAMA ANALİZ - ETİKET SORGULAMA KURUMSAL TEMA
========================================================= */

:root {
    --dark: #081827;
    --dark-2: #10263a;
    --dark-3: #163b55;

    --primary: #05a9c8;
    --primary-dark: #0e7490;

    --green: #16a34a;
    --red: #dc2626;
    --orange: #f59e0b;

    --white: #ffffff;
    --soft: #f5f8fb;
    --border: #dbe5ec;

    --text: #334155;
    --muted: #64748b;

    --shadow: 0 28px 80px rgba(8, 24, 39, .18);
    --shadow-soft: 0 14px 40px rgba(8, 24, 39, .10);

    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--dark);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 24, 39, .96), rgba(8, 24, 39, .83), rgba(8, 24, 39, .68)),
        linear-gradient(180deg, rgba(8, 24, 39, .22), rgba(8, 24, 39, .90)),
        url('hero-image.jpg') center / cover no-repeat;
}

.page-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(5, 169, 200, .28), transparent 30%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: auto, 46px 46px, 46px 46px;
}

/* Header */

.site-header {
    position: relative;
    z-index: 5;
    padding: 24px 0;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 150px;
    max-height: 58px;
    object-fit: contain;
}

.brand-text {
    display: none;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d9e8ef;
    font-size: 13px;
    font-weight: 800;
}

.header-info div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-info i {
    color: var(--primary);
}

.header-info strong {
    color: #ffffff;
}

/* Main */

.main-wrapper {
    padding: 34px 0 30px;
}

.system-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 28px;
    align-items: stretch;
}

/* Query Card */

.query-card {
    position: relative;
    padding: clamp(28px, 4vw, 46px);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .40);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.query-card::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(5, 169, 200, .11);
}

.query-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(5, 169, 200, .10);
    border: 1px solid rgba(5, 169, 200, .20);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .8px;
    margin-bottom: 18px;
}

.query-card h1 {
    position: relative;
    color: var(--dark);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    font-weight: 900;
    margin-bottom: 18px;
}

.query-desc {
    position: relative;
    max-width: 620px;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 30px;
}

.form-label {
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 9px;
}

.input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-dark);
    font-size: 20px;
}

.form-control {
    height: 64px;
    padding: 0 18px 0 52px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: rgba(5, 169, 200, .55);
    box-shadow: 0 0 0 5px rgba(5, 169, 200, .09) !important;
}

.query-button {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(5, 169, 200, .24);
    transition: .22s ease;
}

.query-button:hover {
    transform: translateY(-2px);
}

.query-button:disabled {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
}

.info-alert {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #536578;
    background: var(--soft);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 650;
}

.info-alert i {
    color: var(--primary-dark);
    font-size: 18px;
}

/* Side Panel */

.side-panel {
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.side-panel-top {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.side-icon {
    min-width: 62px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #cffafe;
    background: rgba(5, 169, 200, .18);
    border: 1px solid rgba(5, 169, 200, .28);
    font-size: 28px;
}

.side-panel-top span {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    margin-bottom: 4px;
}

.side-panel h2 {
    color: #ffffff;
    font-size: 25px;
    line-height: 1.18;
    font-weight: 900;
    margin: 0;
}

.side-text {
    color: #c7d5df;
    font-size: 14px;
    margin-bottom: 24px;
}

.summary-list {
    display: grid;
    gap: 14px;
}

.summary-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.summary-item > span {
    min-width: 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary);
    background: rgba(5, 169, 200, .14);
    font-weight: 900;
    font-size: 12px;
}

.summary-item strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.summary-item p {
    color: #c7d5df;
    font-size: 13px;
    margin: 0;
}


/* Çip sipariş butonu */
.chip-order-button {
    margin: 2px 0 24px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 34px rgba(5, 169, 200, .24);
    font-size: 14px;
    font-weight: 900;
    transition: .22s ease;
}

.chip-order-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(5, 169, 200, .30);
}

.chip-order-button span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.chip-order-button i {
    font-size: 18px;
}

.chip-order-button > i {
    font-size: 16px;
    opacity: .92;
}

/* Footer */

.site-footer {
    color: #c7d5df;
    font-size: 13px;
    padding: 10px 0 26px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    opacity: .85;
}

/* Modals */

.modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.modal-header {
    padding: 26px 28px 18px;
    border: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(5, 169, 200, .15), transparent 32%),
        linear-gradient(135deg, var(--dark), var(--dark-3));
    color: #ffffff;
}

.modal-kicker {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.1px;
    margin-bottom: 5px;
}

.modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.btn-close {
    filter: invert(1);
    opacity: .9;
}

.modal-body {
    padding: 28px;
}

.result-date {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-date i {
    color: var(--primary-dark);
}

.contractor-box {
    padding: 20px;
    border-radius: 20px;
    background: var(--soft);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.contractor-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contractor-box h4 {
    color: var(--dark);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 900;
    margin: 0;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.result-box {
    min-height: 106px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    text-align: center;
}

.result-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.result-box strong {
    display: block;
    color: var(--dark);
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.result-box.used strong {
    color: var(--red);
}

.result-box.remaining strong {
    color: var(--green);
}

.usage-head {
    display: flex;
    justify-content: space-between;
    color: var(--dark);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 9px;
}

.progress {
    height: 28px;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width .9s ease;
}

.progress-bar.warning {
    background: linear-gradient(135deg, #fbbf24, var(--orange));
}

.progress-bar.danger {
    background: linear-gradient(135deg, #ef4444, var(--red));
}

.modal-footer {
    padding: 0 28px 28px;
    border: 0;
}

.modal-close-button,
.support-button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 900;
    padding: 0 22px;
}

.modal-footer .modal-close-button {
    width: 100%;
}

.error-modal .modal-content {
    border-top: 6px solid var(--red);
}

.error-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--red);
    background: rgba(220, 38, 38, .10);
    font-size: 42px;
}

.error-modal h3 {
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 10px;
}

.error-modal p {
    color: var(--muted);
    margin-bottom: 18px;
}

.support-button {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    margin-bottom: 12px;
}

.modal-close-button.danger {
    width: 60%;
    background: linear-gradient(135deg, #ef4444, var(--red));
}

/* Responsive */

@media (max-width: 992px) {
    .system-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 14px 0;
    }

    .header-inner {
        min-height: auto;
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-info {
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand img {
        width: 128px;
    }

    .main-wrapper {
        padding-top: 16px;
    }

    .query-card,
    .side-panel {
        border-radius: 24px;
        padding: 24px;
    }

    .hero-content h1,
    .query-card h1 {
        font-size: 34px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

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

    .modal-body,
    .modal-header,
    .modal-footer {
        padding-left: 22px;
        padding-right: 22px;
    }
}
