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

:root {
    --bg-gradient: linear-gradient(135deg, #070b19 0%, #0f172a 50%, #090e1a 100%);
    --card-bg: rgba(15, 23, 42, 0.85);
    --card-border: rgba(56, 189, 248, 0.2);
    --primary: #0066ff;
    --primary-hover: #0052cc;
    --accent: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(30, 41, 59, 0.9);
    --input-border: rgba(51, 65, 85, 0.8);
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.hotspot-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 102, 255, 0.15);
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px var(--accent-glow);
}

.brand-logo svg {
    width: 38px;
    height: 38px;
    fill: #ffffff;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Tabs Navigation */
.auth-tabs {
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), #0052cc);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.4);
}

/* Plan Cards */
.plans-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.plan-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.plan-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.plan-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

/* Alert Boxes */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-info {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #93c5fd;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* PIX Modal & Timer */
.pix-container {
    text-align: center;
}

.qr-code-img {
    width: 220px;
    height: 220px;
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
    margin: 1rem auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pix-copia-cola {
    word-break: break-all;
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    margin: 1rem 0;
    border: 1px dashed var(--input-border);
    max-height: 80px;
    overflow-y: auto;
}

.timer-box {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* LGPD Checkbox & Label Styling */
.lgpd-consent-box {
    margin: 1rem 0 1.25rem 0;
    text-align: left;
}

.lgpd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.lgpd-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.lgpd-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.lgpd-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lgpd-link:hover {
    color: #ffffff;
}

.required-star {
    color: var(--danger);
    font-weight: bold;
}

.lgpd-invalid-feedback {
    display: none;
    color: #f87171;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.3rem;
    padding-left: 1.6rem;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.animate__shakeX {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* LGPD Modal Backdrop & Content */
.lgpd-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lgpd-modal-content {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.lgpd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lgpd-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.lgpd-btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lgpd-btn-close:hover {
    color: #ffffff;
}

.lgpd-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lgpd-lead {
    font-size: 0.9rem;
    color: var(--accent);
    line-height: 1.45;
    font-weight: 500;
}

.lgpd-section h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.lgpd-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.lgpd-alert-info {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.45;
}

.lgpd-email-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.lgpd-email-link:hover {
    text-decoration: underline;
}

.lgpd-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lgpd-btn-agree {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lgpd-btn-agree:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}
