/* =====================================================
   Custom Theme - Purple/Violet Modern Design
   IG - ENGAGEMENT SmartPanel Theme
   ===================================================== */

:root {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-darker: #5b21b6;
    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --bg-dark: #0f0a1a;
    --bg-darker: #0a0613;
    --bg-card: #1a1128;
    --bg-card-hover: #221638;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-muted: #9ca3af;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-hero: linear-gradient(135deg, #0f0a1a 0%, #1e1145 50%, #2d1b69 100%);
    --gradient-card: linear-gradient(145deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    --shadow-primary: 0 4px 30px rgba(124, 58, 237, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-subtle: rgba(124, 58, 237, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.custom-navbar {
    background: rgba(15, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1050;
}

.custom-navbar.scrolled {
    background: rgba(15, 10, 26, 0.95);
    border-bottom: 1px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
}

.navbar-logo {
    max-height: 42px;
    width: auto;
    transition: var(--transition);
}

.custom-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
}

.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link.active {
    color: #ffffff;
}

.custom-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: var(--transition);
}

.custom-navbar .navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-login {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-nav-login:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-nav-signup {
    padding: 8px 24px;
    font-size: 0.9rem;
}

.navbar-toggler {
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-custom-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.btn-custom-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn-custom-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.5);
}

.btn-custom-primary:hover::before {
    left: 100%;
}

.btn-custom-primary:active {
    transform: translateY(0);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-dark);
    top: 40%;
    left: 50%;
    animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 2;
}

.hero-card {
    position: absolute;
    background: rgba(26, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.hero-card i {
    font-size: 1.6rem;
    color: var(--accent);
}

.hero-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-light);
}

.hero-card-1 { top: 20%; left: 10%; animation: floatCard 6s ease-in-out infinite; }
.hero-card-2 { top: 5%; right: 5%; animation: floatCard 7s ease-in-out 1s infinite; }
.hero-card-3 { top: 45%; right: 15%; animation: floatCard 5s ease-in-out 0.5s infinite; }
.hero-card-4 { bottom: 25%; left: 5%; animation: floatCard 8s ease-in-out 1.5s infinite; }
.hero-card-5 { bottom: 10%; right: 10%; animation: floatCard 6s ease-in-out 2s infinite; }

.hero-card-1 i { color: #E4405F; }
.hero-card-2 i { color: #FF0000; }
.hero-card-3 i { color: #ffffff; }
.hero-card-4 i { color: #1877F2; }
.hero-card-5 i { color: #1DA1F2; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
    background: var(--bg-darker);
    padding: 80px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--accent);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--primary);
    color: #fff;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section-header {
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.3;
}

.section-title.text-start {
    margin: 0;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
    background: var(--bg-dark);
    padding: 100px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius);
    padding: 36px 28px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    background: var(--bg-darker);
    padding: 100px 0;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.about-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-icon-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition);
}

.about-icon-item:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.about-content .section-badge {
    display: inline-block;
}

.about-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-top: 16px;
}

/* =====================================================
   NETWORKS SECTION
   ===================================================== */
.networks-section {
    background: var(--bg-dark);
    padding: 100px 0;
}

.network-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius);
    padding: 32px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.network-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
    transition: var(--transition);
}

.network-card span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.network-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.network-card:hover i {
    color: #fff;
    transform: scale(1.15);
}

.network-card:hover span {
    color: #fff;
}

/* =====================================================
   FOOTER
   ===================================================== */
.custom-footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-payments {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-payments i {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-payments i:hover {
    color: var(--accent);
}

.footer-divider {
    border-color: rgba(124, 58, 237, 0.15);
    margin: 40px 0 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* =====================================================
   AUTH PAGES (Login / Register / etc.)
   ===================================================== */
.auth-page {
    background: var(--gradient-hero);
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-card-wide {
    max-width: 580px;
}

.auth-card-body {
    padding: 48px 40px;
}

.auth-logo {
    max-height: 48px;
    width: auto;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
    transition: var(--transition);
}

.input-icon-wrap .form-control {
    padding-left: 52px !important;
}

.input-icon-wrap .form-control:focus + i,
.input-icon-wrap:focus-within i {
    color: var(--primary-light);
}

/* Form Controls */
.auth-page .form-control,
.auth-page .form-select {
    background: rgba(15, 10, 26, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
    background: rgba(15, 10, 26, 0.8);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.auth-page .form-control::placeholder {
    color: var(--text-muted);
}

.auth-page .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-page .form-check-input {
    background-color: rgba(15, 10, 26, 0.6);
    border-color: rgba(124, 58, 237, 0.3);
}

.auth-page .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-page .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.auth-page .form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-page .form-select option {
    background: var(--bg-card);
    color: #fff;
}

/* Auth Button */
.btn-auth {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.auth-link {
    color: var(--accent);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--accent-light);
}

.auth-footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Activation Success */
.activation-icon {
    margin: 24px 0;
}

.activation-icon i {
    font-size: 4rem;
    color: #10b981;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Alert Message */
.alert-message-reponse {
    border-radius: var(--radius-sm);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animate elements on scroll */
.stat-card,
.feature-card,
.network-card,
.about-card,
.about-content {
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        text-align: center;
        padding-top: 100px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .custom-navbar .collapse {
        background: rgba(15, 10, 26, 0.98);
        border-radius: var(--radius);
        margin-top: 12px;
        padding: 16px;
        border: 1px solid var(--border-subtle);
    }

    .nav-cta {
        margin-top: 12px;
        justify-content: center;
    }

    .about-visual {
        padding: 20px;
        margin-bottom: 40px;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-title {
        text-align: center !important;
        margin: 0 auto;
    }

    .about-content .btn {
        display: inline-block;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .auth-card-body {
        padding: 32px 24px;
    }

    .auth-card-wide {
        max-width: 100%;
    }

    .about-icon-item {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .about-card {
        padding: 32px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .network-card {
        padding: 20px 10px;
    }

    .network-card i {
        font-size: 1.8rem;
    }
}

/* =====================================================
   SMARTPANEL OVERRIDES / COMPATIBILITY
   ===================================================== */
/* Make sure SmartPanel nav renders correctly with Bootstrap 5 */
.custom-navbar .navbar-nav {
    margin-left: auto;
}

/* Fix for form_open generated forms */
form.actionForm,
form.actionFormWithoutToast {
    width: 100%;
}

/* Fix select styling */
.auth-page select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
}

/* Social login buttons compatibility */
.auth-card .social-login-btn,
.auth-card .btn-social {
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

/* Fix: More spacing between icons and field labels */
.auth-form .input-group .form-control,
.auth-form .input-group input,
.auth-form .input-group select {
}
.auth-form .input-group-text {
    min-width: 45px;
    justify-content: center;
}
.auth-form .form-group label,
.auth-form label {
    margin-bottom: 8px;
    margin-left: 2px;
}
.auth-form .input-group {
    gap: 0;
}
.auth-form .form-group {
    margin-bottom: 18px;
}

/* More spacing between form fields */
.auth-page .mb-3 {
    margin-bottom: 1.25rem !important;
}
.auth-page .form-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* ====== HERO DASHBOARD VISUAL ====== */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-dashboard {
    width: 340px;
    background: rgba(15, 10, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.25), 0 0 40px rgba(124, 58, 237, 0.1);
    animation: floatDashboard 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes floatDashboard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.dashboard-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.15);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.dashboard-title {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 500;
}

.dashboard-body {
    padding: 20px;
}

.dash-stat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 14px;
}

.dash-stat i {
    font-size: 1.2rem;
    color: #a78bfa;
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
}

.dash-stat-num {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.dash-stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
}

/* Chart */
.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    padding: 10px 0;
    margin-bottom: 15px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0.15));
    border-radius: 6px 6px 4px 4px;
    animation: growBar 1.5s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.chart-bar.active {
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.chart-bar:nth-child(1) { animation-delay: 0.2s; }
.chart-bar:nth-child(2) { animation-delay: 0.35s; }
.chart-bar:nth-child(3) { animation-delay: 0.5s; }
.chart-bar:nth-child(4) { animation-delay: 0.65s; }
.chart-bar:nth-child(5) { animation-delay: 0.8s; }
.chart-bar:nth-child(6) { animation-delay: 0.95s; }
.chart-bar:nth-child(7) { animation-delay: 1.1s; }

@keyframes growBar {
    to { transform: scaleY(1); }
}

.dash-growth {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #34d399;
    font-weight: 600;
    font-size: 0.9rem;
}

.dash-growth i {
    font-size: 0.75rem;
}

/* Floating Icons */
.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.float-icon-1 {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    top: 5%;
    right: 10%;
    animation: floatIcon 4s ease-in-out infinite;
}
.float-icon-2 {
    background: #ff0000;
    bottom: 15%;
    right: 0%;
    animation: floatIcon 5s ease-in-out 0.5s infinite;
}
.float-icon-3 {
    background: #000;
    border: 1px solid rgba(255,255,255,0.2);
    top: 30%;
    right: -5%;
    animation: floatIcon 4.5s ease-in-out 1s infinite;
}
.float-icon-4 {
    background: #1877f2;
    bottom: 8%;
    left: 5%;
    animation: floatIcon 5.5s ease-in-out 0.3s infinite;
}
.float-icon-5 {
    background: #1da1f2;
    top: 10%;
    left: 0%;
    animation: floatIcon 4s ease-in-out 0.8s infinite;
}
.float-icon-6 {
    background: #1db954;
    bottom: 35%;
    right: -10%;
    animation: floatIcon 5s ease-in-out 1.2s infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* Notification Popups */
.hero-notif {
    position: absolute;
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-notif i {
    color: #34d399;
    font-size: 0.9rem;
}

.notif-1 {
    top: 20%;
    left: -15%;
    animation: slideNotif 6s ease-in-out infinite;
}

.notif-2 {
    bottom: 20%;
    left: -10%;
    animation: slideNotif 6s ease-in-out 3s infinite;
}

.notif-2 i {
    color: #facc15;
}

@keyframes slideNotif {
    0% { opacity: 0; transform: translateX(-20px); }
    10% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(10px); }
}

/* Remove old hero-card styles if any conflict */
.hero-card { display: none !important; }

/* ====== MOBILE HERO VISUAL ====== */
@media (max-width: 991px) {
    .hero-visual {
        height: 350px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .hero-dashboard {
        width: 280px;
        transform: scale(0.85);
    }
    .float-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .float-icon-3 { right: 2%; }
    .float-icon-6 { right: -2%; }
    .hero-notif {
        font-size: 0.7rem;
        padding: 8px 12px;
    }
    .notif-1 { left: -5%; }
    .notif-2 { left: -2%; }
    .hero-section .row {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-visual {
        height: 300px;
        margin-top: 20px;
    }
    .hero-dashboard {
        width: 250px;
        transform: scale(0.75);
    }
    .float-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .hero-notif {
        font-size: 0.65rem;
        padding: 6px 10px;
    }
    .notif-1 { left: 0%; top: 15%; }
    .notif-2 { left: 2%; }
}
