/* ═══════════════════════════════════════════════════════════
   Secure Vault Tracker — Frontend Styles
   Premium dark theme with gold accents
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --svf-bg:        #0b1120;
    --svf-surface:   #111827;
    --svf-card:      #1a2235;
    --svf-border:    rgba(255,255,255,.09);
    --svf-accent:    #00c8d4;
    --svf-accent2:   #f59e0b;
    --svf-text:      #e2e8f0;
    --svf-muted:     #94a3b8;
    --svf-white:     #ffffff;
    --svf-green:     #10b981;
    --svf-red:       #ef4444;
    --svf-radius:    16px;
    --svf-shadow:    0 8px 40px rgba(0,0,0,.5);
    --svf-glow:      0 0 30px rgba(0,200,212,.15);
}

/* ─── Wrapper ────────────────────────────────────────────── */
.svt-frontend-wrap {
    font-family: 'Inter', sans-serif;
    color: var(--svf-text);
    min-height: 100vh;
    background: linear-gradient(135deg, #0b1120 0%, #0e1a2e 50%, #0b1120 100%);
    padding: 40px 20px;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   ACCESS FORM
═══════════════════════════════════════════════════════════ */
.svt-access-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.svt-access-card {
    background: linear-gradient(145deg, #1a2235, #141e30);
    border: 1px solid var(--svf-border);
    border-radius: 20px;
    box-shadow: var(--svf-shadow), var(--svf-glow);
    padding: 48px 52px;
    width: 100%;
    max-width: 580px;
    position: relative;
    overflow: hidden;
}

.svt-access-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--svf-accent), var(--svf-accent2), var(--svf-accent));
}

.svt-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    background: rgba(0,200,212,.12);
    border: 1.5px solid rgba(0,200,212,.3);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.svt-access-icon svg { width: 32px; height: 32px; stroke: var(--svf-accent); fill: none; }

.svt-access-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--svf-white);
    margin: 0 0 8px;
    letter-spacing: .5px;
}

.svt-access-subtitle {
    text-align: center;
    color: var(--svf-muted);
    font-size: 14px;
    margin: 0 0 36px;
    line-height: 1.6;
}

.svt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.svt-input-group { position: relative; }

.svt-input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--svf-muted);
    display: flex; align-items: center;
    pointer-events: none;
}
.svt-input-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.svt-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: var(--svf-white);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
    box-sizing: border-box;
}
.svt-input::placeholder { color: var(--svf-muted); }
.svt-input:focus {
    border-color: var(--svf-accent);
    background: rgba(0,200,212,.06);
    box-shadow: 0 0 0 4px rgba(0,200,212,.12);
}

.svt-input-eye-wrap { position: relative; }
.svt-input-eye-wrap .svt-input { padding-right: 44px; }
.svt-input-eye-btn {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: var(--svf-muted);
    display: flex; align-items: center;
    transition: color .2s;
    padding: 0;
}
.svt-input-eye-btn:hover { color: var(--svf-accent); }
.svt-input-eye-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.svt-access-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--svf-accent), #0891b2);
    border: none;
    border-radius: 12px;
    color: var(--svf-white);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: .5px;
    transition: all .25s;
    margin-top: 8px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.svt-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,200,212,.4);
}
.svt-access-btn:active { transform: translateY(0); }
.svt-access-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.svt-access-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

.svt-error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    display: none;
    text-align: center;
}
.svt-error-msg.show { display: block; }

.svt-loading-dots span {
    animation: svt-blink 1.4s infinite both;
    font-size: 20px;
}
.svt-loading-dots span:nth-child(2) { animation-delay: .2s; }
.svt-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes svt-blink {
    0%, 80%, 100% { opacity: 0; }
    40%            { opacity: 1; }
}

.svt-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--svf-muted);
}
.svt-security-note svg { width: 14px; height: 14px; stroke: var(--svf-green); fill: none; }

/* ═══════════════════════════════════════════════════════════
   VAULT RECORD DISPLAY
═══════════════════════════════════════════════════════════ */
.svt-record-wrap {
    max-width: 960px;
    margin: 0 auto;
    animation: svt-fadeIn .5s ease;
}
@keyframes svt-fadeIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* Header Banner */
.svt-record-banner {
    background: linear-gradient(135deg, #0f172a, #1a2235);
    border: 1px solid var(--svf-border);
    border-radius: 20px 20px 0 0;
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,200,212,.2);
    position: relative;
    overflow: hidden;
}
.svt-record-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--svf-accent), transparent);
}
.svt-record-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--svf-white);
    margin: 0 0 4px;
}
.svt-record-subtitle {
    color: var(--svf-accent);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}
.svt-banner-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.svt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.svt-status-active   { background: rgba(16,185,129,.2); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }
.svt-status-inactive { background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.4); color: #fcd34d; }
.svt-status-expired  { background: rgba(239,68,68,.2);  border: 1px solid rgba(239,68,68,.4);  color: #fca5a5; }
.svt-cert-num { font-size: 11px; color: var(--svf-muted); letter-spacing: .5px; }

/* Record Body */
.svt-record-body {
    background: var(--svf-card);
    border: 1px solid var(--svf-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

/* Primary Image + Asset Info */
.svt-asset-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--svf-border);
}

.svt-hero-image-block {
    position: relative;
    background: #0f172a;
    border-right: 1px solid var(--svf-border);
}
.svt-hero-image-block img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.svt-hero-image-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    color: rgba(255,255,255,.7);
    font-size: 11px;
    text-align: center;
    padding: 20px 10px 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.svt-no-image-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--svf-muted);
    font-size: 13px;
}
.svt-no-image-placeholder svg { width: 48px; height: 48px; stroke: #334155; fill: none; }

.svt-asset-meta {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.svt-asset-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--svf-white);
    margin: 0 0 20px;
}

.svt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}
.svt-meta-item { display: flex; flex-direction: column; gap: 3px; }
.svt-meta-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--svf-accent);
}
.svt-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--svf-white);
}
.svt-meta-value.large {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--svf-accent2);
}

.svt-description-block {
    padding: 20px 32px;
    background: rgba(0,0,0,.2);
    border-top: 1px solid var(--svf-border);
}
.svt-description-block .svt-meta-label { margin-bottom: 6px; display: block; }
.svt-description-block p {
    color: var(--svf-text);
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}

/* Info Sections Grid */
.svt-info-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--svf-border);
}

.svt-info-section {
    padding: 28px 32px;
    border-right: 1px solid var(--svf-border);
}
.svt-info-section:last-child { border-right: none; }
.svt-info-section:nth-child(3), .svt-info-section:nth-child(4) {
    border-top: 1px solid var(--svf-border);
}

.svt-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--svf-accent);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,200,212,.2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.svt-section-title svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.svt-info-rows { display: flex; flex-direction: column; gap: 12px; }
.svt-info-row { display: flex; flex-direction: column; gap: 3px; }
.svt-info-row-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--svf-muted);
}
.svt-info-row-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--svf-white);
    word-break: break-word;
}
.svt-info-row-value.accent { color: var(--svf-accent); }
.svt-info-row-value.gold   { color: var(--svf-accent2); }

/* Gallery Section */
.svt-gallery-section {
    padding: 28px 32px;
    border-top: 1px solid var(--svf-border);
}
.svt-gallery-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--svf-accent);
    margin: 0 0 16px;
    display: flex; align-items: center; gap: 8px;
}
.svt-gallery-title svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.svt-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.svt-gallery-thumb {
    width: 110px; height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--svf-border);
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.svt-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.svt-gallery-thumb:hover { border-color: var(--svf-accent); }
.svt-gallery-thumb:hover img { transform: scale(1.08); }
.svt-gallery-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,200,212,.25);
    opacity: 0; transition: opacity .2s;
}
.svt-gallery-thumb:hover::after { opacity: 1; }

/* Lightbox */
.svt-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    animation: svt-fadeIn .2s ease;
}
.svt-lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.svt-lightbox-inner img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,.8);
    object-fit: contain;
}
.svt-lightbox-close {
    position: absolute; top: -14px; right: -14px;
    width: 36px; height: 36px;
    background: var(--svf-accent); border: none;
    border-radius: 50%; cursor: pointer;
    color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.svt-lightbox-close:hover { background: #0891b2; }

/* Notes section */
.svt-notes-section {
    padding: 20px 32px;
    background: rgba(0,0,0,.2);
    border-top: 1px solid var(--svf-border);
}

/* Footer */
.svt-record-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: rgba(0,0,0,.25);
    border-top: 1px solid var(--svf-border);
    border-radius: 0 0 20px 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.svt-footer-cert {
    font-size: 12px;
    color: var(--svf-muted);
    display: flex; align-items: center; gap: 8px;
}
.svt-footer-cert svg { width: 16px; height: 16px; stroke: var(--svf-green); fill: none; }
.svt-footer-cert strong { color: var(--svf-white); }

.svt-back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--svf-border);
    border-radius: 10px;
    color: var(--svf-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}
.svt-back-btn:hover { color: var(--svf-white); border-color: rgba(255,255,255,.2); }
.svt-back-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .svt-access-card { padding: 32px 24px; }
    .svt-form-row { grid-template-columns: 1fr; }
    .svt-asset-hero { grid-template-columns: 1fr; }
    .svt-hero-image-block img { height: 220px; }
    .svt-info-sections { grid-template-columns: 1fr; }
    .svt-info-section { border-right: none; border-top: 1px solid var(--svf-border); }
    .svt-record-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
    .svt-meta-grid { grid-template-columns: 1fr; }
    .svt-record-footer { flex-direction: column; }
}
