/* ── СТИЛИ СТРАНИЦЫ 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;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 📸 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 {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.step-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    flex: 1;
}

.step-gos-official {
    background: #ffffff !important;
    color: #333;
    position: absolute;
    inset: 0;
    z-index: 100;
    border-radius: 32px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    overflow-y: auto;
    min-height: 550px;
}
#step-success, #m-step-success {
    position: absolute;
    inset: 0;
    z-index: 100;
    border-radius: 32px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: radial-gradient(circle at top, #1a1a1a 0%, #0a0a0c 100%) !important;
    color: white;
    overflow: hidden;
}

/* Success Icon Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    position: relative;
}
.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #00b900;
}
.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}
.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}
.check-icon::before, .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: transparent;
    transform: rotate(-45deg);
}
.icon-line {
    height: 5px;
    background-color: #00b900;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}
.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}
.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}
.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(0, 185, 0, 0.2);
    box-sizing: content-box;
    position: absolute;
}
.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: transparent;
}

@keyframes rotate-circle {
    0% { transform: rotate(-45deg); }
    5% { transform: rotate(-45deg); }
    12% { transform: rotate(-405deg); }
    100% { transform: rotate(-405deg); }
}
@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}
@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.success-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 185, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 3s infinite ease-in-out;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.modal-overlay.active .modal-content.auth-card {
    /* Preserve dark background for searching/ready states */
    background: #1a1a1a; 
}
.modal-overlay.active .modal-content.auth-card .step-gos-official {
    background: #ffffff !important; /* Auth steps are white */
}
.step-gos-official.active, #step-success.active, #m-step-success.active {
    display: flex !important;
}
.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;
}
.vin-content-grid .auth-card {
    height: 100%;
}

.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;
}

/* ── GOS LOADING OVERLAY ── */
.gos-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7); /* Полупрозрачный фон */
    backdrop-filter: blur(8px); /* Тот самый блюр */
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gos-loading-overlay.active {
    display: flex !important;
}
.gos-loading-logo {
    width: 140px;
    height: auto;
    margin-bottom: 40px;
    opacity: 0.9;
}
.gos-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 99, 176, 0.1);
    border-top: 3px solid #0063b0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.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; }

/* Дополнительные кнопки авторизации */
.btn-yandex:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-vk:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.auth-buttons {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* Исправление обрезки фото */
.car-preview-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.car-preview-img {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    .car-preview-wrap {
        height: 200px;
    }
}

/* Исправление обрезки фото */
.car-preview-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.car-preview-img {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .car-preview-wrap {
        height: 200px;
    }
}

/* Исправление обрезки фото */
.car-preview-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.car-preview-img {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .car-preview-wrap {
        height: 200px;
    }
}

/* Стили для кнопок авторизации */
.auth-buttons button {
    transition: transform 0.2s, opacity 0.2s;
}
.auth-buttons button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Анимация для кнопок авторизации */
.auth-buttons button {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.auth-buttons button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.auth-buttons button:active {
    transform: translateY(0);
}

.auth-buttons img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== AUTH BUTTONS ===== */

.auth-buttons {
    width: 100%;
    max-width: 380px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-buttons .btn-gos-svg {
    width: 100%;
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-buttons .btn-gos-svg img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.auth-buttons .btn-gos-svg:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.auth-buttons .btn-gos-svg:active {
    transform: translateY(0);
}
