:root {
    --primary: #0F172A;
    --primary-dark: #0B1120;
    --accent: #1D4ED8;
    --accent-light: rgba(29,78,216,0.08);
    --success: #10B981;
    --success-light: rgba(16,185,129,0.08);
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    padding-top: 72px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: var(--accent);
    color: white;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

.section-padding { padding: 120px 0; }
@media (max-width: 768px) { .section-padding { padding: 72px 0; } }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.text-balance { text-wrap: balance; }

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: var(--page-bg-image, linear-gradient(135deg, #0F172A 0%, #1E293B 100%)) center/cover no-repeat;
    padding: 140px 0 80px;
    margin-top: -72px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(29,78,216,0.06) 0%, transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-hero .section-label {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.page-hero .breadcrumb { background: transparent; padding: 0; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb-item.active { color: #fff; }

@media (max-width: 768px) {
    .page-hero { padding: 110px 0 50px; }
    .page-hero h1 { font-size: 2rem; }
}

/* ===== NAVBAR ===== */
.navbar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(15,23,42,0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 0;
    transition: var(--transition);
}

.navbar .nav-link {
    font-size: 0.875rem;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    color: rgba(255,255,255,0.7) !important;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
}

.navbar .nav-link.active {
    color: #fff !important;
}

.navbar .dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-top: 8px;
}

.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.875rem;
    transition: var(--transition);
    color: var(--text);
}

.navbar .dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.navbar .dropdown-item i {
    color: var(--text-muted);
}

.navbar .dropdown-item:hover i {
    color: var(--accent);
}

.navbar-shrink {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-nav-login {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: var(--transition);
    border: none;
}

.btn-nav-login:hover {
    background: #1e40af;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29,78,216,0.3);
}

.btn-nav-register {
    background: transparent;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: var(--transition);
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-nav-register:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 92vh;
    background: var(--page-bg-image, linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%)) center/cover no-repeat;
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(29,78,216,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section .hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .hero-shapes .shape-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(29,78,216,0.04) 0%, transparent 70%);
    top: -200px; right: -150px;
}

.hero-section .hero-shapes .shape-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(29,78,216,0.03) 0%, transparent 70%);
    bottom: -200px; left: -100px;
}

.hero-section .hero-shapes .shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(16,185,129,0.04) 0%, transparent 70%);
    top: 40%; left: 60%;
}

.hero-image-wrapper { position: relative; }
.hero-image-wrapper img { width: 100%; height: auto; }

.floating-card {
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.floating-card:nth-child(2) { animation-delay: 2s; }

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== CARDS ===== */
.card-hover {
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    background: var(--card);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl) !important;
    border-color: transparent;
}

.service-icon-wrapper {
    width: 56px; height: 56px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--accent);
    transform: scale(1.05);
}

.service-card:hover .service-icon-wrapper i { color: white !important; }

/* ===== PROCESS / STEPS ===== */
.process-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--card);
    border: 1px solid var(--border-light);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.process-step {
    width: 44px; height: 44px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
}

.process-icon-wrapper {
    width: 72px; height: 72px;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin: 0 auto;
}

.process-card:hover .process-icon-wrapper {
    background: rgba(29,78,216,0.12);
    transform: scale(1.05);
}

.process-connector {
    position: absolute;
    top: 78px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(29,78,216,0.1), var(--accent));
    z-index: 1;
}

/* ===== FEATURES ===== */
.feature-icon {
    width: 48px; height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item {
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.feature-item:hover {
    background: var(--card);
    box-shadow: var(--shadow-md);
}

.feature-item:hover .feature-icon {
    background: var(--accent);
    transform: scale(1.05);
}

.feature-item:hover .feature-icon i { color: white !important; }

.experience-badge {
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

/* ===== TRUST / LOGOS ===== */
.trust-logo {
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.trust-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== BLOG ===== */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
    border-color: transparent;
}

.blog-img-placeholder {
    background: linear-gradient(135deg, var(--accent-light), rgba(29,78,216,0.02));
}

/* ===== RESOURCES ===== */
.resource-link {
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.resource-link:hover {
    background: var(--accent-light) !important;
    transform: translateX(4px);
}

/* ===== ACCORDION ===== */
.accordion-button:not(.collapsed) {
    background: var(--accent-light);
    color: var(--accent);
    box-shadow: none;
}

.accordion-button:focus { box-shadow: none; border-color: rgba(29,78,216,0.2); }
.accordion-item { overflow: hidden; border: none; border-radius: var(--radius-md) !important; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

/* ===== TEAM ===== */
.team-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card .team-img { height: 220px; object-fit: cover; }
.team-card .team-social a {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.team-card .team-social a:hover { background: var(--accent); color: white; }

/* ===== PRICING ===== */
.pricing-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pricing-card.featured { border: 2px solid var(--accent); }
.pricing-card .popular-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--accent);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    font-size: 0.9rem;
    background: var(--card);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

.form-control-lg { padding: 14px 20px; font-size: 1rem; }

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29,78,216,0.25);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-modern {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,78,216,0.2); }

.btn-outline-modern {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline-modern:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 80px 0 40px;
}

.auth-page .card {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-lg) !important;
}

@media (max-width: 576px) {
    .auth-page { padding: 80px 16px 30px; }
}

/* ===== SIDEBAR BOX ===== */
.sidebar-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.sidebar-box h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { margin-bottom: 4px; }
.sidebar-box ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.sidebar-box ul li a:hover { color: var(--accent); background: var(--accent-light); }

/* ===== NEWSLETTER ===== */
.newsletter-form .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 1.5px solid var(--border);
}

.newsletter-form .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 24px;
}

/* ===== FLASH MESSAGES ===== */
.flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    max-width: 90%;
}

/* ===== IMPERSONATION BAR ===== */
.impersonation-bar {
    background: var(--bs-warning);
    color: var(--text);
    padding: 8px 0;
    font-size: 0.85rem;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    z-index: 9980;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.impersonation-bar .badge { font-size: 0.7rem; }
body.has-impersonation-bar { padding-top: 112px; }

@media (max-width: 768px) {
    .impersonation-bar .container { flex-direction: column; gap: 6px; text-align: center; }
}

/* ===== SHAPES / BACKGROUNDS ===== */
.shapes-bg {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shapes-bg .bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.shapes-bg .bg-shape-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.shapes-bg .bg-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
.shapes-bg .bg-shape-3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ===== CONTENT ===== */
.content h4 { margin-top: 2rem; margin-bottom: 1rem; }
.content p, .content ul { color: var(--text-secondary); line-height: 1.8; }
.content ul { padding-left: 1.2rem; }
.content ul li { margin-bottom: 8px; }

.breadcrumb a:hover { text-decoration: underline !important; }

.tracking-wide { letter-spacing: 1px; }

.step-number {
    width: 48px; height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto;
}

.timeline-dot {
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 4px rgba(29,78,216,0.12);
}

.page-header {
    margin-top: -72px;
    padding-top: 72px;
}

.carousel-control-prev, .carousel-control-next { width: auto; }

/* ===== FAQ ICON ===== */
.faq-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== AVATAR ===== */
.avatar-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-sm);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border: none;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.pagination .page-link:hover { background: var(--accent-light); color: var(--accent); }
.pagination .page-item.active .page-link { background: var(--accent); color: white; }

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-overlay {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.animated-gradient {
    background: linear-gradient(135deg, var(--primary), #1D4ED8, var(--primary));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

/* ===== UTILITIES ===== */
.opacity-90 { opacity: 0.9; }

.pulse-dot {
    width: 10px; height: 10px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary) !important;
    color: rgba(255,255,255,0.6) !important;
}

footer a { transition: var(--transition); color: rgba(255,255,255,0.6); }
footer a:hover { color: #fff !important; }

footer .footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

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

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

footer .footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
}

footer .footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

footer .social-link {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

footer .social-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 100px 0 60px; }
    .hero-image-wrapper .floating-card { display: none; }
    .process-connector { display: none; }
}
