/* irpara.site | CSS V2.3 (Robust & Clean) */
:root {
    --bg-main: #07070a;
    --glass-bg: rgba(20, 20, 40, 0.6);
    --border-soft: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-bright: #818cf8;
    --text-main: #f0f0f5;
    --text-dim: #94a3b8;
    --accent: #ec4899;
    --success: #10b981;
    --error: #ef4444;
}
/* FIX ROLAGEM LATERAL */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #090914 0%, #050508 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
* { box-sizing: border-box; }
/* FUNDOS ANIMADOS (BLOBS) */
.blob-bg {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
}
.blob-1 { top: -150px; left: -100px; width: 450px; height: 450px; background: var(--primary); }
.blob-2 { bottom: -100px; right: -50px; width: 400px; height: 400px; background: var(--accent); }
/* WRAPPER PRINCIPAL */
.main-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 10;
}
/* HEADER & TABS */
.main-header { text-align: center; margin-bottom: 2rem; }
.brand-logo { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; margin-bottom: 1.2rem; }
.brand-logo i { color: var(--primary); margin-right: 0.3rem; }
.brand-logo span { color: var(--primary); font-weight: 300; }
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    width: fit-content;
    margin: 0 auto;
}
.nav-item {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.7rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}
.nav-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}
.nav-item:hover:not(.active) { background: rgba(255, 255, 255, 0.05); color: #fff; }
/* GLASS CARD */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-soft);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 26px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 35px 70px rgba(99,102,241,0.1);
}
/* FORMULÁRIOS & INPUTS */
.form-row label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.7rem; color: #cbd5e1; }
.generic-input, .custom-domain-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: 0.3s;
}
.generic-input:focus-within, .custom-domain-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.generic-input i, .custom-domain-box .host { color: var(--text-dim); font-size: 1.1rem; }
input, textarea {
    background: transparent;
    border: none;
    width: 100%;
    padding: 1.1rem 0;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.textarea-glass { min-height: 100px; padding: 1rem; }
/* ACCORDION */
.toggle-advanced {
    width: 100%;
    background: transparent;
    border: 1px dashed var(--border-soft);
    padding: 0.8rem;
    border-radius: 12px;
    color: var(--text-dim);
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
}
.help-text { color: var(--text-dim); font-size: 0.75rem; margin-top: 0.4rem; line-height: 1.3; }
/* BOTÕES PRINCIPAIS */
.btn-main {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: 0.3s;
}
.btn-main:hover { transform: translateY(-2.5px); box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5); }
.btn-reset, .btn-cancel {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-soft);
    padding: 0.9rem;
    border-radius: 14px;
    color: var(--text-dim);
    width: 100%;
    font-weight: 700;
    cursor: pointer;
}
/* ÁREA DE RESULTADO */
.success-header { color: var(--success); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.ready-link-box {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ready-link-box a { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.copy-action { background: var(--success); color: #fff; border: none; width: 46px; height: 46px; border-radius: 10px; cursor: pointer; }
/* SEGURANÇA NA HOME */
.trust-title { text-align: center; margin-bottom: 1.5rem; font-size: 1.1rem; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.trust-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    padding: 1.25rem;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-item i { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.6rem; transition: transform 0.3s; }
.trust-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; }
.trust-item p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.3; }
.trust-item:hover {
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-4px);
    background: rgba(99,102,241,0.05);
}
.trust-item:hover i { transform: scale(1.15) rotate(-5deg); }
/* ANALYTICS */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.metric-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
    border-radius: 18px;
    text-align: center;
}
.metric-card .num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
/* PROFILE (SOBRE) */
.creator-badge { font-size: 3.5rem; color: var(--primary); margin-bottom: 1rem; }
.social-insta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(225,48,108,0.1);
    color: #E1306C;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
}
.p-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255,255,255,0.03);
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    margin-top: 0.8rem;
    text-align: left;
}
.p-link:hover { border-color: var(--primary); transform: translateX(6px); }
.p-link i { font-size: 1.8rem; color: var(--primary); background: rgba(99,102,241,0.1); padding: 0.8rem; border-radius: 12px; }
/* UTILS */
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; }
.text-center { text-align: center; }
.error-msg { color: var(--error); margin-top: 1rem; font-weight: 600; font-size: 0.9rem; }
#qrcode { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#stats_qrcode { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin: 0 auto; }
.main-footer { text-align: center; padding: 2.5rem; color: var(--text-dim); font-size: 0.8rem; margin-top: auto; }

/* SPINNER ADD-ON (QUE FALTAVA NO SEU CSS PRA GIRAR NA HORA DE ENCURTAR) */
.loader-spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rotate-spin 1s linear infinite;
}
@keyframes rotate-spin { 100% { transform: rotate(360deg); } }

/* ============================================================== */
/* RESPONSIVO (CORRIGIDO PARA SMARTPHONES E REGRAS SEO P/ PAGES)  */
/* ============================================================== */
@media (max-width: 600px) {
    .main-wrapper { padding: 1.2rem 1rem; }
    .brand-logo { font-size: 2.3rem; }
    .glass-card { padding: 1.5rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .tabs-nav { flex-direction: column; width: 100%; border-radius: 12px; }
    .nav-item { border-radius: 8px; font-size: 0.95rem; justify-content: center; width: 100%; }
    .p-link { padding: 1rem; align-items: flex-start; }
    
    /* Previne o zoom insuportável no iPhone ao clicar em campos */
    input[type="text"], input[type="url"], input[type="password"], input[type="datetime-local"], textarea {
        font-size: 16px !important;
    }
}
