/**
 * ELIGMU Shared Modern Neo-Brutalist & Bento Design System
 * File: public/css/eligmu-theme.css
 */

:root {
    /* Background & Text */
    --bg-main: #FAF9F6;
    --bg-secondary: #F0EEF9;
    --text-dark: #1E1B4B;
    --text-muted: #64748B;
    
    /* Brand Color Palette */
    --brand-purple: #635BFF;
    --brand-purple-light: #EEEDFF;
    --brand-yellow: #FFC72C;
    --brand-yellow-light: #FFF9E5;
    --brand-mint: #00D084;
    --brand-mint-light: #E6FBF2;
    --brand-coral: #FF5A5F;
    --brand-coral-light: #FFF0F1;
    --brand-blue: #0284C7;
    --brand-blue-light: #E0F2FE;
    --brand-cyan: #00B4D8;
    --brand-cyan-light: #E6F8FC;
    
    /* Typography Tokens */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', monospace, sans-serif;

    /* Shared Shadow & Border Tokens */
    --shadow-soft: 0 12px 32px rgba(99, 91, 255, 0.08);
    --shadow-card: 0 20px 40px rgba(30, 27, 75, 0.06);
    --shadow-hover: 0 24px 48px rgba(99, 91, 255, 0.15);
    --border-crisp: 2px solid #E2E8F0;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */

body {
    font-family: var(--font-body);
    background-color: var(--bg-main) !important;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-display);
    color: var(--text-dark);
    font-weight: 800;
}

.font-mono {
    font-family: var(--font-mono);
}

/* ==========================================================================
   Navigation & Branding Headers
   ========================================================================== */

.reg-nav-header,
.success-nav-header,
.eligmu-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 26px;
    margin-bottom: 24px;
    border-bottom: 2px solid #E2E8F0;
}

.reg-logo-box,
.success-logo-box,
.eligmu-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.reg-logo-text,
.success-logo-text,
.eligmu-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Highlight Pills */
.hl-yellow {
    background: var(--brand-yellow);
    color: var(--text-dark);
    padding: 2px 14px;
    border-radius: 50px;
    display: inline-block;
    transform: rotate(-1deg);
    font-weight: 800;
}

.hl-purple {
    background: var(--brand-purple);
    color: #FFFFFF;
    padding: 2px 14px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
}

.hl-mint {
    background: var(--brand-mint);
    color: var(--text-dark);
    padding: 2px 14px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
}

.hl-coral {
    background: var(--brand-coral);
    color: #FFFFFF;
    padding: 2px 14px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
}

/* ==========================================================================
   Bento Cards & Containers
   ========================================================================== */

.bento-card {
    background: #FFFFFF;
    border: 2.5px solid var(--text-dark);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 5px 5px 0px var(--text-dark);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    margin-bottom: 24px;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 0px var(--text-dark);
}

.reg-main-card,
.success-main-card,
.bento-main-card {
    background: #FFFFFF;
    border: 3px solid var(--text-dark);
    border-radius: 36px;
    box-shadow: 8px 8px 0px var(--brand-purple);
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.reg-header-banner,
.success-card-header {
    background: #FFFFFF;
    border-bottom: 2.5px solid var(--text-dark);
    padding: 32px;
}

.reg-body,
.success-card-body {
    padding: 32px;
}

/* ==========================================================================
   Form Input System (Playful & Bento Validation)
   ========================================================================== */

.form-group-playful {
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.form-label-playful {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-label-playful i {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-playful {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #FAFAFA;
    border: 2px solid #CBD5E1;
    border-radius: 16px;
    padding: 14px 18px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.input-playful:focus {
    background-color: #FFFFFF;
    border-color: var(--brand-purple);
    box-shadow: 4px 4px 0px var(--brand-purple-light);
    outline: none;
}

/* Red Bento Validation & Shake Animation */
@keyframes bentoShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.form-group-playful.is-missing .input-playful,
.form-group-playful.has-error .input-playful,
.input-playful.is-invalid {
    border-color: var(--brand-coral) !important;
    background-color: var(--brand-coral-light) !important;
    box-shadow: 4px 4px 0px var(--brand-coral) !important;
    animation: bentoShake 0.4s ease-in-out;
}

.form-group-playful.is-missing .form-label-playful,
.form-group-playful.has-error .form-label-playful {
    color: #D9383E !important;
}

.package-card.is-invalid {
    border-color: var(--brand-coral) !important;
    background: var(--brand-coral-light) !important;
    box-shadow: 6px 6px 0px var(--brand-coral) !important;
    animation: bentoShake 0.4s ease-in-out;
}

.file-input-wrapper.is-invalid {
    border-color: var(--brand-coral) !important;
    background-color: var(--brand-coral-light) !important;
    box-shadow: 4px 4px 0px var(--brand-coral) !important;
    animation: bentoShake 0.4s ease-in-out;
}

.reg-main-card.has-form-error {
    box-shadow: 10px 10px 0px var(--brand-coral) !important;
    border-color: var(--brand-coral) !important;
}

.help-block-error {
    color: #D9383E;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-playful-submit,
.btn-action-primary {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-dark) !important;
    background: var(--brand-yellow);
    border: 3px solid var(--text-dark);
    border-radius: 50px;
    padding: 16px 36px;
    box-shadow: 5px 5px 0px var(--text-dark);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
}

.btn-playful-submit:hover,
.btn-action-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--text-dark);
    background: #FFD452;
}

.btn-playful-reset,
.btn-action-secondary {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark) !important;
    background: #FFFFFF;
    border: 2px solid var(--text-dark);
    border-radius: 50px;
    padding: 14px 28px;
    box-shadow: 3px 3px 0px var(--text-dark);
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-playful-reset:hover,
.btn-action-secondary:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px var(--text-dark);
}

.btn-copy {
    background: #FFFFFF;
    border: 1.5px solid var(--text-dark);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
}

.btn-copy:hover {
    background: var(--text-dark);
    color: #FFFFFF;
    transform: scale(1.04);
}

/* ==========================================================================
   Modals (Always On Top)
   ========================================================================== */

.modal-playful,
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99990 !important;
}

.modal-playful .modal-dialog {
    z-index: 100000 !important;
    position: relative;
}

.modal-playful .modal-content {
    border: 3px solid var(--text-dark);
    border-radius: 32px;
    box-shadow: 10px 10px 0px var(--brand-purple);
    overflow: hidden;
}

.modal-playful .modal-header {
    border-bottom: 2px solid #E2E8F0;
    padding: 24px 28px;
}

.modal-playful .modal-body {
    padding: 28px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.modal-playful .modal-footer {
    border-top: none;
    padding: 0 28px 24px;
}

/* ==========================================================================
   Sticky Checkout Bar
   ========================================================================== */

.sticky-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 3px solid var(--text-dark);
    padding: 12px 0;
    z-index: 1050;
    box-shadow: 0 -10px 30px rgba(30, 27, 75, 0.12);
    transition: all 0.3s ease;
}

.sticky-pkg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.sticky-price-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sticky-total-main {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--brand-purple);
    line-height: 1;
}

.btn-sticky-checkout {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text-dark);
    background: var(--brand-yellow);
    border: 2px solid var(--text-dark);
    border-radius: 50px;
    padding: 10px 28px;
    box-shadow: 3px 3px 0px var(--text-dark);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sticky-checkout:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--text-dark);
    background: #FFD452;
    color: var(--text-dark);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

#copyToast,
.eligmu-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

#copyToast.show,
.eligmu-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
