@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

.link-like {
    cursor: pointer;
    text-decoration: underline dotted;
}
.link-like:hover {
    color: var(--primary);
}

:root {
    --primary: #008641;
    --primary-hover: #006D35;
    --primary-dark: #004D26;
    --primary-light: #E3F3EA;
    --primary-text: #00693A;

    --accent: #F3E300;
    --accent-hover: #B39400;
    --accent-light: #FFF9DB;

    --brand-dark: #12181B;
    --brand-dark-card: #1B2226;
    --brand-dark-border: #2A3338;

    --bg-main: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --text-main: #12181B;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --success: #006D35;
    --success-bg: #E3F3EA;
    --warning: #B39400;
    --warning-bg: #FFF9DB;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --info: #2563eb;
    --info-bg: #eff6ff;
    --neutral: #475569;
    --neutral-bg: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(18, 24, 27, 0.06);
    --shadow-md: 0 4px 16px rgba(18, 24, 27, 0.08);
    --shadow-lg: 0 12px 32px rgba(18, 24, 27, 0.12);
    --shadow-glow: 0 0 25px rgba(0, 134, 65, 0.25);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14.5px;
    line-height: 1.6;
}

.hidden { display: none !important; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 4rem;
    width: 100%;
}

/* ==========================================================================
   PUBLIC LANDING NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 24, 27, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.site-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #008641 0%, #00693A 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0, 134, 65, 0.4);
}

.logo-text-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-text-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 0.4rem 0.2rem;
    position: relative;
}

.nav-link:hover {
    color: #008641;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login-nav {
    background: linear-gradient(135deg, #F3E300 0%, #E0D200 100%);
    color: #12181B !important;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(243, 227, 0, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-login-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(243, 227, 0, 0.5);
    filter: brightness(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.4rem;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background: linear-gradient(180deg, #12181B 0%, #090C0D 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1.5rem 5.5rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 134, 65, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(243, 227, 0, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 134, 65, 0.12);
    border: 1px solid rgba(0, 134, 65, 0.35);
    color: #29C46F;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
    max-width: 900px;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #29C46F 0%, #008641 50%, #F3E300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #94a3b8;
    max-width: 760px;
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #008641 0%, #006D35 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 134, 65, 0.4);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 134, 65, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.hero-hl-card {
    background: rgba(27, 34, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.4rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-hl-card:hover {
    border-color: rgba(0, 134, 65, 0.4);
    transform: translateY(-4px);
    background: rgba(27, 34, 38, 0.9);
}

.hero-hl-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 134, 65, 0.15);
    color: #29C46F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hero-hl-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.hero-hl-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
.section-wrapper {
    padding: 5rem 1.5rem;
}

.section-wrapper-alt {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-text);
    background: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   ABOUT / BAYI TANITIM SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.about-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.about-content p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.about-features-list {
    list-style: none;
    margin: 1.75rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.about-features-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
}

.about-features-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.dealer-info-card {
    background: linear-gradient(135deg, #12181B 0%, #1B2226 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dealer-info-card::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 134, 65, 0.25) 0%, rgba(0,0,0,0) 70%);
}

.dealer-card-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.dealer-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.dealer-card-officer {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.dealer-details-table {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.dealer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.dealer-row-label {
    color: #94a3b8;
}

.dealer-row-val {
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: var(--neutral-bg);
    color: var(--neutral);
}

/* ==========================================================================
   WHY US / ADVANTAGES SECTION
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 134, 65, 0.12) 0%, rgba(243, 227, 0, 0.12) 100%);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.why-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.why-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   LOCATION & CONTACT SECTION
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.contact-info-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.contact-item:last-of-type {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-item-val {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.contact-item-val a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-val a:hover {
    color: var(--primary);
}

.contact-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1.4rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-call {
    background: var(--brand-dark);
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1.4rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-call:hover {
    background: #1B2226;
    transform: translateY(-2px);
}

.map-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    border: 0;
    min-height: 360px;
}

.map-footer {
    padding: 1.1rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}

.faq-card:hover {
    border-color: var(--primary);
}

.faq-q {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.faq-q svg {
    color: var(--primary);
    flex-shrink: 0;
}

.faq-a {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1.75rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #12181B;
    color: #94a3b8;
    padding: 3.5rem 1.5rem 2rem;
    border-top: 1px solid #1B2226;
    margin-top: auto;
}

.footer-top {
    max-width: 1280px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 450px;
    color: #94a3b8;
}

.footer-links h5 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #008641;
}

.footer-credit {
    max-width: 1280px;
    margin: 0.9rem auto 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 1.75rem;
    border-top: 1px solid #1B2226;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
}

.footer-warning {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   MODAL / LOGIN MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 24, 27, 0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #12181B 0%, #1B2226 100%);
    color: #ffffff;
    padding: 1.75rem;
    text-align: center;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-body {
    padding: 2rem;
}

/* ==========================================================================
   EXISTING DASHBOARD STYLES (PRESERVED & POLISHED)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, #171f23 0%, #12181B 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.brand svg { color: var(--primary); filter: drop-shadow(0 0 6px rgba(0, 134, 65, 0.5)); }

.user-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.navbar .btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.navbar .btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.navbar .btn-logout {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.navbar .btn-logout:hover { background: rgba(220, 38, 38, 0.15); color: #fca5a5; border-color: rgba(220, 38, 38, 0.3); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 1.1rem;
    height: 40px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color: #fff; box-shadow: 0 2px 10px rgba(0, 134, 65, 0.3); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(0, 134, 65, 0.4); transform: translateY(-1px); }

.btn-outline {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--neutral-bg); }

.btn-logout {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-logout:hover { background: var(--neutral-bg); color: var(--text-main); }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { filter: brightness(0.94); }

.btn-danger-ghost {
    background: transparent;
    color: var(--danger);
    border: 1px solid transparent;
    height: 32px;
    padding: 0 0.7rem;
    font-size: 0.8rem;
}
.btn-danger-ghost:hover { background: var(--danger-bg); }

.btn-sm { height: 32px; padding: 0 0.75rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- CARD ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--text-main);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1.1rem;
}

/* ---------- STAT GRID ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 0 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-control::placeholder { color: var(--text-faint); }

/* ---------- TABLE ---------- */
.table-responsive { overflow-x: auto; border-radius: var(--radius-sm); }

.table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }

.table thead th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    padding: 0.7rem 0.9rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.table thead th:last-child { border-top-right-radius: var(--radius-sm); }

.table tbody td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.012); }
.table tbody tr:hover { background: var(--primary-light); }
.table code {
    background: var(--neutral-bg);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.82em;
    color: var(--text-muted);
}

/* ---------- BADGES ---------- */
.badge {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--neutral-bg);
    color: var(--neutral);
}
.badge-active, .badge-success { background: var(--success-bg); color: var(--success); }
.badge-passive, .badge-error, .badge-failed, .badge-not_found { background: var(--danger-bg); color: var(--danger); }
.badge-pending, .badge-otp_required, .badge-otp_submitted, .badge-decrease_detected { background: var(--warning-bg); color: var(--warning); }
.badge-sync_error, .badge-login_failed, .badge-otp_timeout { background: var(--danger-bg); color: var(--danger); }

/* ---------- TABS (top bar, used by Tipster section) ---------- */
.tab-bar {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.1rem;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- ADMIN SIDEBAR LAYOUT ---------- */
.admin-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.admin-sidebar {
    width: 232px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 5.25rem;
}

.sidebar-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    padding: 0.6rem 0.7rem 0.4rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.62rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sidebar-link:hover { background: var(--bg-main); color: var(--text-main); }
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-text);
    border-left-color: var(--primary);
    font-weight: 700;
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.85; }
.sidebar-link .badge-count {
    margin-left: auto;
    background: var(--neutral-bg);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}
.sidebar-link.active .badge-count { background: rgba(255,255,255,0.7); color: var(--primary-text); }

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 0.6rem 0.4rem;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 860px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        position: static;
        padding: 0.5rem;
    }
    .sidebar-nav { flex-direction: row; overflow-x: auto; }
    .sidebar-group-label { display: none; }
    .sidebar-link { white-space: nowrap; }
    .sidebar-divider { display: none; }
}

/* ---------- ALERT BANNER ---------- */
.alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.alert-otp {
    background: var(--warning-bg);
    border: 1px solid #fde68a;
    color: #92400e;
}
.alert-otp strong { color: #78350f; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
    font-size: 0.88rem;
}

/* ---------- UTILITY ---------- */
.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    align-items: flex-end;
}
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 0.5rem; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-grid, .contact-layout {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #12181B;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1rem;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .navbar { padding: 0.8rem 1rem; }
    .container { padding: 1.25rem 1rem 3rem; }
    .card { padding: 1.1rem; }
    .about-features-list { grid-template-columns: 1fr; }
}
