/* ── СТИЛИ СТРАНИЦЫ VIN (SENTINEL STYLE) ───────────────── */

:root {
    --primary: 119 99% 46%;
    --muted: rgba(255, 255, 255, 0.5);
}

/* ── LAYOUT ── */
.vin-page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.vin-left-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 10;
    max-width: 800px;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    display: flex;
    justify-content: flex-start;
    z-index: 1000;
    pointer-events: none;
}
.btn-nav {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}
.vin-left-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    text-transform: none;
    letter-spacing: normal;
}

.vin-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    z-index: 10;
    align-items: stretch; /* Makes cards same height */
}

@media (max-width: 900px) {
    .vin-content-grid { grid-template-columns: 1fr; padding: 0 20px; }
}

/* ── CARDS ── */
.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
}

.summary-card h3 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 35px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    opacity: 0.9;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table td {
    padding: 18px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { 
    color: var(--muted); 
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.data-table td:last-child { 
    color: white; 
    text-align: right; 
    font-weight: 600; 
}
.blurred-row td:first-child {
    opacity: 0.6;
}
.blurred-row td:last-child {
    opacity: 0.4;
    filter: blur(5px);
    user-select: none;
    transition: filter 0.3s ease;
}
.blurred-row:hover td:last-child {
    filter: blur(3.5px);
}
.blurred-row span {
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.summary-footer {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}
.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00b900;
    background: rgba(0, 185, 0, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0, 185, 0, 0.2);
}

/* ── AUTH CARD ── */
.auth-card-body {
    padding: 0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* 📸 PHOTO PREVIEW */
.car-preview-wrap {
    width: 100%;
    height: 240px;
    background: #000;
    overflow: hidden;
}
.car-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── STEPS (Modal / Auth) ── */
.auth-card .step, .modal-content .step { 
    display: none; 
    flex-direction: column;
}
.auth-card .step.active, .modal-content .step.active { 
    display: flex !important; 
}
#step-initial {
    display: flex !important; /* Always show car summary if not explicitly hidden */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.step-center {
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

/* ── GOSUSLUGI OFFICIAL STYLE ── */
.step-gos-official {
    background: #ffffff !important;
    color: #333;
    padding: 30px;
    /* This step will visually replace the card content */
    position: absolute;
    inset: 0;
    z-index: 100;
    border-radius: 32px;
}
.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gos-official-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.gos-official-header img { height: 26px; width: auto; margin-right: 15px; }
.gos-official-text { font-size: 0.7rem; color: #333; line-height: 1.2; flex: 1; }

.gos-official-form { max-width: 340px; margin: 0 auto; text-align: center; }
.gos-official-form h2 { font-size: 2rem; font-weight: 400; margin-bottom: 5px; color: #333; }
.gos-official-sub { font-size: 0.9rem; color: #666; margin-bottom: 25px; }

.gos-tabs { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 25px; }
.gos-tab { flex: 1; padding: 10px 0; font-size: 0.85rem; font-weight: 600; color: #0063b0; cursor: pointer; border-bottom: 3px solid transparent; }
.gos-tab.active { border-bottom-color: #0063b0; color: #333; }

.gos-official-input {
    width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 4px;
    margin-bottom: 15px; font-size: 0.95rem; background: white; color: #333; outline: none;
    box-sizing: border-box;
}
.gos-official-input:focus { border-color: #0063b0; }

.gos-checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: #333; text-align: left; }

.btn-gos-blue {
    width: 100%; background: #1066ae; color: white; border: none; padding: 14px;
    border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-bottom: 15px;
}
.gos-footer-links { font-size: 0.85rem; }
.gos-footer-links a { color: #0063b0; text-decoration: none; }

/* ── BUTTONS ── */
.btn-gos-svg {
    width: 100%;
    max-width: 380px;
    margin: 40px auto 0 auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}
.btn-gos-svg img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-gos-primary {
    width: 100%; background: #00b900; color: white; border: none; padding: 16px;
    border-radius: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; margin-top: 20px;
}

.card-desc {
    color: var(--muted);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.auth-divider {
    width: calc(100% + 40px); /* Extend slightly beyond step padding if needed */
    margin: 0 -20px 30px -20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ── MISC ── */
.vin-badge {
    background: rgba(0, 185, 0, 0.1); color: #00b900;
    padding: 6px 14px; border-radius: 8px; font-family: monospace; font-weight: 700;
}

.sms-box-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
}
.sms-digit {
    width: 45px;
    height: 55px;
    background: #f0f4f8;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}
.sms-digit.active {
    border-color: #0063b0;
    box-shadow: 0 0 0 2px rgba(0, 99, 176, 0.1);
    background: white;
}

.sms-timer-row {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #333;
}
.sms-timer-val { font-weight: 700; margin-top: 5px; display: block; font-size: 1.1rem; }
.sms-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #0063b0;
    text-decoration: none;
    font-size: 0.9rem;
}

.gos-logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.gos-logo-text span:first-child { color: #0063b0; }
.gos-logo-text span:last-child { color: #ee3b33; }

.spinner-ring {
    width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #00b900; border-radius: 50%; animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.text-center { text-align: center; }
