/* ============================================================
   main.css — Monetexis Global Styles — PREMIUM EDITION
   ============================================================ */

/* ── Premium Design Tokens ── */
:root {
    /* Brand */
    --primary:        #00e5a0;
    --primary-dim:    #00c488;
    --primary-glow:   rgba(0, 229, 160, 0.15);
    --primary-border: rgba(0, 229, 160, 0.25);
    --accent:         #4f6ef7;
    --accent-glow:    rgba(79, 110, 247, 0.15);
    --gold:           #f0c040;

    /* Backgrounds */
    --bg-void:        #060b14;
    --bg-deep:        #09111f;
    --bg-surface:     #101b2e;
    --bg-raised:      #162032;
    --bg-float:       #1c2b40;
    --bg-hover:       rgba(255,255,255,0.03);

    /* Text */
    --text-primary:   #eef2f7;
    --text-secondary: #7a9ab8;
    --text-muted:     #3d5470;

    /* Borders */
    --border-soft:    rgba(255,255,255,0.06);
    --border-medium:  rgba(255,255,255,0.1);
    --border-strong:  rgba(255,255,255,0.16);

    /* Radius */
    --radius-xs:   6px;
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   22px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.25);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.35);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 30px rgba(0,229,160,0.12);

    /* Motion */
    --ease:        cubic-bezier(0.4,0,0.2,1);
    --transition:  all 0.22s var(--ease);

    /* Legacy aliases (keep old names working) */
    --blue:        var(--accent);
    --blue-dark:   #3a56d4;
    --green:       var(--primary);
    --green-light: #10f5b5;
    --dark-bg:     var(--bg-surface);
    --darker-bg:   var(--bg-void);
    --card-bg:     var(--bg-raised);
    --text:        var(--text-primary);
    --light-text:  var(--text-secondary);
    --border:      var(--border-soft);
    --radius:      var(--radius-md);
    --shadow:      var(--shadow-md);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,229,160,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 90% 95%, rgba(79,110,247,0.05) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }
p  { margin-bottom: 0.9rem; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #10f5b5; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 0; list-style: none; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1200px) { .container { padding: 0 2rem; } }

/* ── Buttons ── */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #04180e;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    transition: var(--transition);
    cursor: pointer;
    min-height: 48px;
    box-shadow: 0 4px 16px rgba(0,229,160,0.25);
    letter-spacing: -0.01em;
}
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,229,160,0.35);
    color: #04180e;
}
.btn-custom:active { transform: scale(0.97); }

.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    transition: var(--transition);
    cursor: pointer;
    min-height: 48px;
}
.btn-light:hover { border-color: var(--primary-border); background: rgba(0,229,160,0.06); color: var(--primary); }

/* ── Cards ── */
.card {
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--border-medium); box-shadow: var(--shadow-md); }

/* ── Alerts ── */
.alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.15rem;
    font-size: 0.88rem;
    animation: alertIn 0.25s var(--ease);
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.22);  color: #fca5a5; }
.alert-success { background: rgba(0,229,160,0.07);  border: 1px solid rgba(0,229,160,0.22);  color: var(--primary); }
.alert-warning { background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.22); color: #fbbf24; }
.alert-info    { background: rgba(79,110,247,0.07); border: 1px solid rgba(79,110,247,0.22); color: #93b4ff; }
.alert-modern .alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-modern strong { display: block; margin-bottom: 0.1rem; font-weight: 700; }

/* ── Form elements ── */
.field-group { margin-bottom: 1.2rem; }
.field-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 0.45rem;
}
.field-label i { color: var(--primary); font-size: 0.76rem; }
.field-wrap { position: relative; }
.field-wrap .field-icon {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.92rem;
    pointer-events: none;
    transition: var(--transition);
}
.field-wrap input,
.field-wrap select,
.field-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.82rem 1rem 0.82rem 2.7rem;
    color: var(--text-primary);
    font-size: 0.93rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.field-wrap input::placeholder { color: var(--text-muted); }
.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
    border-color: var(--primary-border);
    background: rgba(0,229,160,0.03);
    box-shadow: 0 0 0 3px rgba(0,229,160,0.08);
}
.field-wrap:focus-within .field-icon { color: var(--primary); }
.toggle-pass {
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer; font-size: 0.88rem;
    background: none; border: none;
    display: flex; align-items: center;
    transition: var(--transition);
}
.toggle-pass:hover { color: var(--primary); }

/* ── Section helpers ── */
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 0.5rem;
    line-height: 1.65;
}
.section-accent {
    display: block;
    width: 36px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-pill);
    margin: 0.6rem auto 0;
}

/* ── Badges ── */
.badge-green  { background: rgba(0,229,160,0.12); color: var(--primary); border: 1px solid rgba(0,229,160,0.2); }
.badge-amber  { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.badge-red    { background: rgba(239,68,68,0.1);  color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.badge-blue   { background: rgba(79,110,247,0.1); color: #93b4ff; border: 1px solid rgba(79,110,247,0.2); }
.badge-muted  { background: rgba(122,154,184,0.08); color: var(--text-secondary); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-medium); }

/* ── Footer (public) ── */
footer {
    background: var(--bg-deep) !important;
    border-top: 1px solid var(--border-soft) !important;
    padding: 3rem 0 1.5rem !important;
}
footer.sp-100-70 { padding: 4rem 0 2rem !important; }
.logo-footer { max-width: 160px; height: auto; }
.foot-links { display: flex; flex-direction: column; gap: 0.7rem; }
.foot-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.foot-links a:hover { color: var(--primary); }
.socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.socials a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}
.socials a:hover { background: var(--primary); color: #04180e; border-color: var(--primary); transform: translateY(-2px); }
.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.82rem;
    margin-top: 1.5rem;
}

/* ── Back to top ── */
#back-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 42px; height: 42px;
    background: var(--primary);
    color: #04180e;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 16px rgba(0,229,160,0.3);
}
#back-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,229,160,0.4); }
@media (max-width: 768px) { #back-top { bottom: 90px; right: 14px; width: 38px; height: 38px; } }

/* ── Touch ── */
@media (hover: none) and (pointer: coarse) {
    .btn-custom:hover { transform: none !important; }
    .btn-custom:active { transform: scale(0.96) !important; }
    input, select, textarea { font-size: 16px; }
}
