/**
 * GV Age Gate v2
 * Gold Valley - goldvalley.com
 * Dark navy + gold brand palette
 */

/* Overlay */
#gv-age-gate-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 30, 0.97); z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.gv-ag-modal {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
}

.gv-ag-modal-inner {
    background: linear-gradient(145deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
    border: 1px solid rgba(197, 164, 95, 0.3); border-radius: 16px;
    padding: 40px 36px; max-width: 420px; width: 100%; text-align: center;
    box-shadow: 0 0 60px rgba(197, 164, 95, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: gvAgFadeIn 0.4s ease-out;
}

@keyframes gvAgFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.gv-ag-logo { margin-bottom: 20px; }
.gv-ag-logo-img { width: 80px; height: 80px; object-fit: contain; }

/* Typography */
.gv-ag-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 24px; font-weight: 700; color: #c5a45f;
    margin: 0 0 12px 0; letter-spacing: 0.5px;
}
.gv-ag-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px; color: #a0b0c8; line-height: 1.6; margin: 0 0 20px 0;
}
.gv-ag-question {
    font-size: 18px; font-weight: 600; color: #ffffff; margin: 0 0 24px 0;
}

/* Buttons */
.gv-ag-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.gv-ag-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px; font-weight: 600; padding: 14px 40px; border: none;
    border-radius: 8px; cursor: pointer; transition: all 0.2s ease;
    text-transform: uppercase; letter-spacing: 1px;
}
.gv-ag-btn-yes {
    background: linear-gradient(135deg, #c5a45f 0%, #d4b76a 50%, #c5a45f 100%);
    color: #0a1628; box-shadow: 0 4px 15px rgba(197, 164, 95, 0.3);
}
.gv-ag-btn-yes:hover {
    background: linear-gradient(135deg, #d4b76a 0%, #e0c87a 50%, #d4b76a 100%);
    box-shadow: 0 6px 20px rgba(197, 164, 95, 0.5); transform: translateY(-1px);
}
.gv-ag-btn-no {
    background: transparent; color: #a0b0c8;
    border: 1px solid rgba(160, 176, 200, 0.3);
}
.gv-ag-btn-no:hover { border-color: rgba(160, 176, 200, 0.6); color: #ffffff; }
.gv-ag-btn-full { width: 100%; padding: 16px; }
.gv-ag-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Form */
.gv-ag-form { text-align: left; margin-bottom: 20px; }
.gv-ag-field { margin-bottom: 16px; }
.gv-ag-field label {
    display: block; font-size: 13px; font-weight: 600; color: #c5a45f;
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.gv-ag-field input {
    width: 100%; padding: 12px 16px; font-size: 16px; color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 164, 95, 0.2); border-radius: 8px;
    outline: none; transition: border-color 0.2s ease; box-sizing: border-box;
}
.gv-ag-field input::placeholder { color: rgba(160, 176, 200, 0.5); }
.gv-ag-field input:focus { border-color: #c5a45f; background: rgba(255, 255, 255, 0.1); }
.gv-ag-error { display: block; font-size: 12px; color: #e74c3c; margin-top: 4px; min-height: 16px; }

/* Phone input with prefix */
.gv-ag-phone-row {
    display: flex; align-items: stretch; gap: 0;
    border: 1px solid rgba(197, 164, 95, 0.2); border-radius: 8px;
    overflow: hidden; transition: border-color 0.2s ease;
}
.gv-ag-phone-row:focus-within { border-color: #c5a45f; }
.gv-ag-phone-prefix {
    display: flex; align-items: center; padding: 0 12px;
    background: rgba(197, 164, 95, 0.1); color: #c5a45f;
    font-size: 16px; font-weight: 600; white-space: nowrap;
    border-right: 1px solid rgba(197, 164, 95, 0.15);
    gap: 6px;
}
.gv-ag-phone-zero {
    color: rgba(160, 176, 200, 0.4);
    text-decoration: line-through;
    font-size: 16px; font-weight: 600;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
}
.gv-ag-phone-row input {
    border: none; border-radius: 0; background: rgba(255, 255, 255, 0.06);
    flex: 1; font-size: 18px; letter-spacing: 1px; padding: 14px 16px;
}
.gv-ag-phone-row input:focus { background: rgba(255, 255, 255, 0.1); }

/* OTP digit inputs */
.gv-ag-otp-inputs {
    display: flex; gap: 10px; justify-content: center; margin: 20px 0;
}
.gv-ag-otp-digit {
    width: 48px; height: 56px; text-align: center;
    font-size: 24px; font-weight: 700; color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(197, 164, 95, 0.2); border-radius: 10px;
    outline: none; transition: all 0.2s ease;
    caret-color: #c5a45f;
}
.gv-ag-otp-digit:focus {
    border-color: #c5a45f; background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(197, 164, 95, 0.2);
}
.gv-ag-otp-digit.gv-ag-otp-filled { border-color: #c5a45f; }

/* Resend link */
.gv-ag-resend {
    text-align: center; font-size: 13px; color: #a0b0c8; margin-top: 16px;
}
.gv-ag-link-btn {
    background: none; border: none; color: #c5a45f; cursor: pointer;
    font-size: 13px; text-decoration: underline; padding: 0;
    font-family: inherit;
}
.gv-ag-link-btn:hover { color: #d4b76a; }

/* Success check */
.gv-ag-success-check {
    font-size: 56px; color: #2ecc71; margin-bottom: 16px;
    animation: gvAgPop 0.5s ease-out;
}
@keyframes gvAgPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Disclaimer */
.gv-ag-disclaimer {
    font-size: 11px; color: rgba(160, 176, 200, 0.6); line-height: 1.5;
    margin: 0; padding-top: 16px;
    border-top: 1px solid rgba(197, 164, 95, 0.1);
}

/* Loading */
.gv-ag-loading { text-align: center; padding: 30px 0; }
.gv-ag-loading p { font-size: 14px; color: #a0b0c8; margin-top: 16px; }
.gv-ag-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(197, 164, 95, 0.2); border-top-color: #c5a45f;
    border-radius: 50%; margin: 0 auto;
    animation: gvAgSpin 0.8s linear infinite;
}
@keyframes gvAgSpin { to { transform: rotate(360deg); } }

/* Responsive — tablets */
@media (max-width: 768px) {
    .gv-ag-modal { padding: 16px; }
    .gv-ag-modal-inner {
        max-height: 90vh; max-height: 90dvh;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
}

/* Responsive — phones */
@media (max-width: 480px) {
    .gv-ag-modal { padding: 10px; }
    .gv-ag-modal-inner {
        padding: 24px 18px; border-radius: 12px;
        max-height: 95vh; max-height: 95dvh;
    }
    .gv-ag-logo-img { width: 60px; height: 60px; }
    .gv-ag-logo { margin-bottom: 12px; }
    .gv-ag-title { font-size: 20px; margin-bottom: 8px; }
    .gv-ag-text { font-size: 13px; margin-bottom: 14px; }
    .gv-ag-question { font-size: 16px; margin-bottom: 18px; }
    .gv-ag-buttons { flex-direction: column; gap: 12px; }
    .gv-ag-btn { padding: 14px 24px; width: 100%; }
    .gv-ag-otp-digit { width: 42px; height: 50px; font-size: 20px; }
    .gv-ag-otp-inputs { gap: 8px; }
    .gv-ag-disclaimer { font-size: 10px; padding-top: 12px; }
    .gv-ag-success-check { font-size: 44px; margin-bottom: 12px; }
}
