/* ============================================
   JASKIRAT - Custom Styles
   Uses CSS variables set dynamically from config
   ============================================ */

/* === GLOBAL RESET === */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -60px;
    left: 6px;
    background: var(--brand-primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 10001;
    font-weight: bold;
    transition: top .3s;
    text-decoration: none;
}
.skip-link:focus {
    top: 10px;
    outline: 3px solid #fff;
    outline-offset: 4px;
}

/* === GENERAL === */
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
section {
    scroll-margin-top: 80px;
}
::selection {
    background: var(--brand-primary);
    color: #fff;
}

/* === NAVBAR === */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    padding: 0;
    min-height: 70px;
}
.navbar-custom .navbar-brand {
    padding: 0;
    line-height: 1;
}
.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
}
.navbar-custom .navbar-brand:hover {
    color: var(--brand-primary);
}
.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--brand-primary) !important;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 1rem;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: calc(100% - 2rem);
}
.navbar-custom.scrolled {
    background: var(--bg-body);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-toggler {
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 0;
}
.hero-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47,109,230,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}
.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31,77,155,0.12) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}

/* === HERO BUBBLES === */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(47, 109, 230, 0.08);
    pointer-events: none;
    z-index: 0;
    animation: floatBubble linear infinite;
}
.bubble-1 {
    width: 120px;
    height: 120px;
    bottom: -150px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}
.bubble-2 {
    width: 80px;
    height: 80px;
    bottom: -100px;
    left: 30%;
    animation-duration: 10s;
    animation-delay: 2s;
    background: rgba(31, 77, 155, 0.1);
}
.bubble-3 {
    width: 160px;
    height: 160px;
    bottom: -200px;
    right: 20%;
    animation-duration: 14s;
    animation-delay: 1s;
    background: rgba(47, 109, 230, 0.06);
}
.bubble-4 {
    width: 60px;
    height: 60px;
    bottom: -80px;
    right: 40%;
    animation-duration: 8s;
    animation-delay: 3s;
    background: rgba(31, 77, 155, 0.12);
}
.bubble-5 {
    width: 100px;
    height: 100px;
    bottom: -120px;
    left: 55%;
    animation-duration: 11s;
    animation-delay: 4s;
    background: rgba(47, 109, 230, 0.07);
}
.bubble-6 {
    width: 70px;
    height: 70px;
    bottom: -90px;
    left: 75%;
    animation-duration: 9s;
    animation-delay: 1.5s;
    background: rgba(31, 77, 155, 0.09);
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) scale(0.8);
        opacity: 0;
    }
}
.hero h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--heading-weight);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    color: #FFFFFF;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
    color: rgba(255,255,255,0.85);
}
.hero .cta-buttons {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* === BUTTONS === */
.btn-brand,
.btn-brand:visited {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border: 2px solid var(--brand-primary);
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: var(--font-size-btn);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-brand:hover,
.btn-brand:active,
.btn-brand:focus,
.btn-brand:focus-visible,
.btn-brand:visited:hover {
    background: transparent !important;
    color: var(--brand-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    outline: none;
}
.btn-outline-brand {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: var(--font-size-btn);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-outline-brand:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* === SECTION COMMON === */
.section-padding {
    padding: 5rem 0;
}
.section-title {
    font-size: var(--font-size-h2);
    font-weight: var(--heading-weight);
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === SERVICES === */
.services {
    background: var(--bg-section);
}
.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}
.service-card hr {
    border-color: var(--border-light);
    margin: 1rem 0;
}
.service-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.service-card ul li i {
    width: 18px;
    text-align: center;
}
.price-badge {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.25rem 0;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.border-brand {
    border-color: var(--brand-primary) !important;
}
.service-card .btn-brand {
    min-width: 230px;
    justify-content: center;
}

/* === ABOUT === */
.about {
    background: var(--bg-body);
}
.about-text h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--heading-weight);
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.about-image {
    position: relative;
    overflow: hidden;
}
.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    z-index: 0;
}
.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: block;
    animation: countUp 0.6s ease-out;
}
.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* === COMPLAINTS === */
.complaints {
    background: var(--bg-section);
}
.escalation-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-primary);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.escalation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.escalation-card.regulatory {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, rgba(220,38,38,0.05), var(--bg-card));
}
.escalation-card h3 {
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0;
}
.timeline-badge {
    background: var(--brand-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}
.regulatory .timeline-badge {
    background: #dc2626;
}
.escalation-card p {
    margin: 0.5rem 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.escalation-card strong {
    color: var(--text-secondary);
}

/* === COMPLAINTS DASHBOARD === */
.dashboard-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
    border: 1px solid var(--border-light);
}
.dashboard-box h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}
.tab-btn-custom {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 100px;
}
.tab-btn-custom:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.tab-btn-custom.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(47,109,230,0.4);
}
.dashboard-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}
.dashboard-pane.active {
    display: block;
}
.dashboard-header h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.dashboard-header select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    transition: border-color 0.3s ease;
}
.dashboard-header select:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-color: var(--brand-primary);
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}
.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-card.new .stat-card-icon { background: linear-gradient(135deg, #2F6DE6, #1F4D9B); }
.stat-card.closed .stat-card-icon { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.pending .stat-card-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.resolution .stat-card-icon { background: linear-gradient(135deg, #1F4D9B, #0B2559); }
.stat-card h5 {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: var(--text-primary);
}

/* === CONTACT === */
.contact {
    background: var(--bg-dark);
}
.contact .section-title { color: #fff; }
.contact .section-subtitle { color: var(--text-muted); }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.1rem;
}
.contact-item strong {
    color: #fff;
    display: block;
    font-weight: 600;
}
.contact-item span,
.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--brand-primary);
}
.contact-form-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}
.contact-form-box h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.form-control-custom {
    width: 100%;
    padding: 1rem;
    background: var(--bg-section);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}
.form-control-custom:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(47,109,230,0.15);
}
.form-control-custom::placeholder {
    color: var(--text-dark);
}
textarea.form-control-custom {
    resize: vertical;
    min-height: 120px;
}
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(47,109,230,0.3);
}
.form-msg {
    text-align: center;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.form-msg.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-msg.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-light);
}
.footer h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}
.footer p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}
.footer ul li a:hover {
    color: var(--brand-primary);
}
.social-link {
    width: 40px;
    height: 40px;
    background: var(--border-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === MODAL === */
.modal-overlay-custom {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.8);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-overlay-custom[hidden] { display: none; }
.modal-container-custom {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}
.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}
.modal-header-custom h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}
.modal-close-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-light);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.modal-close-btn:hover {
    background: rgba(220,38,38,0.1);
    border-color: #fca5a5;
    color: #dc2626;
}
.modal-close-btn:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}
.modal-body-custom {
    padding: 2rem;
    overflow-x: auto;
}
.audit-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}
.audit-table th,
.audit-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}
.audit-table th:last-child,
.audit-table td:last-child { border-right: none; }
.audit-table tbody tr:last-child td { border-bottom: none; }
.audit-table thead th {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-section);
    font-size: 0.95rem;
}
.audit-table tbody td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.audit-table tbody tr:hover td {
    background: var(--bg-card-hover);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: var(--bg-body);
        border-radius: 0 0 16px 16px;
        padding: 1rem;
        border: 1px solid var(--border-light);
        margin-top: 0.5rem;
    }
    .navbar-custom .nav-link::after {
        display: none;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .about-image::before { display: none; }
    .about-image img { height: 300px; }
}
@media (max-width: 767.98px) {
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero .cta-buttons .btn { width: 100%; }
    .stat-number { font-size: 2rem; }
    .about-list { columns: 2; column-gap: 20px; }
    .about-image img { height: 250px; }
    .dashboard-box { padding: 1.5rem; }
    .stat-card { flex-direction: column; text-align: center; }
    .escalation-card h3 { font-size: 1.2rem; }
    .modal-body-custom { padding: 1.25rem; }
    .modal-header-custom { padding: 1rem 1.25rem; }
    .audit-table th, .audit-table td { padding: 0.75rem 0.5rem; font-size: 0.85rem; }
    .nav-buttons { flex-direction: column; }
}
@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.75rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .about-list { columns: 1; }
    .about-stats .stat-number { font-size: 1.2rem; word-break: break-word; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
}

/* === UTILITY OVERRIDES === */
.text-brand { color: var(--brand-primary); }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-brand-gradient { background: var(--gradient-primary); }

/* === COMPLIANCE SECTION === */
.compliance-section {
    background: var(--bg-section);
}
.compliance-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}
.compliance-tab-btn {
    border: 2px solid var(--border-light);
    background: #fff;
    color: var(--brand-primary);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.compliance-tab-btn:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}
.compliance-tab-btn.active {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(47, 109, 230, 0.25);
}
.compliance-viewer-wrap {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.compliance-panel {
    display: none;
    animation: fadeCompliance 0.25s ease;
}
.compliance-panel.active {
    display: block;
}
@keyframes fadeCompliance {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.compliance-content-scroll {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px 10px 5px;
}
.compliance-content-scroll:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
.compliance-content-scroll::-webkit-scrollbar {
    width: 6px;
}
.compliance-content-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 20px;
}
.compliance-content-scroll h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.compliance-content-scroll h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.compliance-content-scroll h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.compliance-content-scroll p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.compliance-content-scroll ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.compliance-content-scroll li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.complaint-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.complaint-table-wrap:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}
.complaint-table-wrap table {
    min-width: 800px;
    white-space: nowrap;
}
.complaint-table-wrap th,
.complaint-table-wrap td {
    padding: 0.75rem 1rem;
    border-color: var(--border-light);
    color: var(--text-secondary);
}
.complaint-table-wrap thead th {
    background: var(--bg-section);
    color: var(--text-primary);
    font-weight: 600;
}
.desktop-tabs {
    display: flex;
}
.mobile-compliance-dropdown {
    display: none;
    position: relative;
    margin-bottom: 28px;
}
.mobile-comp-trigger {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.mobile-comp-trigger i {
    transition: transform 0.3s ease;
}
.mobile-comp-trigger.open i {
    transform: rotate(180deg);
}
.mobile-comp-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mobile-comp-menu.open {
    display: block;
}
.mobile-comp-menu button {
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-comp-menu button:hover {
    background: rgba(47, 109, 230, 0.08);
    color: var(--brand-primary);
}
.mobile-comp-menu button.active {
    color: var(--brand-primary);
    font-weight: 600;
}
@media (max-width: 768px) {
    .desktop-tabs { display: none; }
    .mobile-compliance-dropdown { display: block; }
    .compliance-viewer-wrap { padding: 18px; }
    .compliance-content-scroll { max-height: 450px; padding: 5px; }
    .complaint-table-wrap table { min-width: 650px; font-size: 0.85rem; }
}
