/* Local Self-Hosted Fonts */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/nunito-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/rajdhani-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/rajdhani-latin-700.woff2') format('woff2');
}

:root {
    /* Techno AI Theme Colors */
    --bg-base: #080220;
    --bg-surface: #0a0428;
    --bg-surface-elevated: #150a38;
    --bg-acrylic: rgba(8, 2, 32, 0.85);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-primary: #6766ff;
    --accent-primary-hover: #5655d4;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(103, 102, 255, 0.4);

    /* Typography */
    --font-heading: 'Rajdhani', 'Arial Narrow', 'Trebuchet MS', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-transform: capitalize;
}

h1 {
    font-size: 4.0rem;
}

h2 {
    font-size: 3.0rem;
}

h3 {
    font-size: 2rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.navbar.navbar-scrolled {
    background: var(--bg-acrylic);
    border-bottom: 1px solid var(--border-strong);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-img.small {
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.user-header-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-surface-elevated);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-item-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(103, 102, 255, 0.1);
    color: var(--accent-primary);
    padding-left: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.nav-actions .btn {
    font-size: 0.88rem;
    padding: 7px 18px;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .nav-actions {
        gap: 0.6rem;
    }

    .nav-actions .btn {
        font-size: 0.82rem;
        padding: 6px 14px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 10px 20px rgba(103, 102, 255, 0.3);
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: #ffffff;
    border-radius: 40px;
    padding: 8px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
}

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

.btn-text {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-text:hover {
    color: var(--accent-primary);
}

.btn-large {
    padding: 16px 45px;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background-image: url('images/banner-bg-1.jpg');
    background-size: cover;
    background-position: center;
}

.hero-carousel-section {
    padding-bottom: 7rem;
}

.hero-slides-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 550px;
    flex: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
    display: flex;
}

.hero-subtitle-badge {
    display: inline-block;
    background: rgba(103, 102, 255, 0.15);
    border: 1px solid var(--border-strong);
    color: var(--accent-primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 15px rgba(103, 102, 255, 0.2);
}

.hero-carousel-controls {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, width 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    width: 60px;
    background: rgba(255, 255, 255, 0.25);
}

.carousel-dot .dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), #38bdf8);
    border-radius: 4px;
}

.carousel-dot.active .dot-progress {
    animation: carouselProgress var(--carousel-speed, 7000ms) linear forwards;
}

@keyframes carouselProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.hero-carousel-arrows {
    display: flex;
    gap: 0.5rem;
}

.carousel-arrow {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(103, 102, 255, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 5%;
}

.hero p {
    font-size: 1.25rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-images {
    position: relative;
    width: 50%;
    height: 600px;
}

.hero-thumb {
    position: absolute;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.hero-thumb-1 {
    top: 1%;
    right: 0;
    width: 490px;
    z-index: 1;
    animation-delay: 0s;
}

.hero-thumb-2 {
    top: 45%;
    right: 56%;
    width: 450px;
    z-index: 3;
    animation-delay: 1.0s;
}

.hero-thumb-3 {
    top: 10%;
    right: 55%;
    width: 350px;
    z-index: 2;
    animation-delay: 3s;
}

.hero-thumb-4 {
    top: 25%;
    right: 50px;
    width: 650px;
    z-index: 4;
    animation-delay: 3.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections */
.section {
    padding: var(--space-x2) 1.5rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    padding: 20px 20px;
    margin: 0 auto;
}

.section-container-admin {
    max-width: 1600px;
    width: 98%;
    margin: 0 auto;
}

.section-container-profile {
    max-width: 1600px;
    width: 98%;
    margin: 0 auto;
}

.section-container-wide {
    max-width: 1400px;
    margin: 0 auto;
}

.section-container-doc {
    max-width: 950px;
    margin: 0 auto;
}

.section-container-auth {
    max-width: 540px;
    margin: 0 auto;
}

.section-container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-container-center {
    text-align: center;
}

.license-terms-wrapper {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.2rem;
}

/* Techno Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fluent-card {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    padding: 59px 40px 48px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fluent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(91.06deg, rgb(103, 102, 255) 6.82%, rgba(103, 102, 255, 0.2) 37.09%, rgba(103, 102, 255, 0.2) 67.36%, rgb(103, 102, 255) 96.43%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.fluent-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(103, 102, 255, 0.25);
}

/* Ticket System Table Styling */
.ticket-table-wrapper {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.ticket-table thead tr {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.ticket-table th {
    padding: 0.8rem 0.1rem;
    font-weight: 600;
}

.ticket-table th.th-checkbox {
    padding: 0.85rem 0.75rem;
    text-align: center;
    width: 38px;
}

.ticket-table th.th-action {
    text-align: center;
    width: 60px;
}

.ticket-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.ticket-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ticket-table td {
    padding: 0.8rem 0.1rem;
}

.ticket-table td.td-checkbox {
    padding: 0.85rem 0.75rem;
    text-align: center;
}

.ticket-table td.td-number {
    font-family: Consolas, monospace;
    font-weight: 700;
    color: var(--accent-primary);
}

.ticket-table td.td-number a {
    color: var(--accent-primary);
    text-decoration: none;
}

.ticket-table td.td-subject {
    font-weight: 600;
    color: #fff;
}

.ticket-table td.td-subject a {
    color: #fff;
    text-decoration: none;
}

.ticket-table td.td-meta {
    color: var(--text-secondary);
}

.ticket-table td.td-date {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.ticket-table td.td-action {
    text-align: center;
}

.ticket-prio-icon {
    margin-right: 0.35rem;
    font-size: 0.85rem;
}

.ticket-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.ticket-status-open {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.ticket-status-awaiting {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.ticket-status-answered {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.ticket-status-resolved {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.ticket-status-closed {
    background: rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(103, 102, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.card-link:hover {
    color: #ffffff;
}

/* Split Layouts (Image + Text) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-md);
    animation: float 5s ease-in-out infinite;
}

.feature-list {
    list-style: none;
    margin-top: 2.5rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-bullet {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

/* Contact Section */
.contact-section {
    background: var(--bg-surface);
}

.contact-card {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(103, 102, 255, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.fluent-form .form-group {
    margin-bottom: 1.5rem;
}

.fluent-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.fluent-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.fluent-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.fluent-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(103, 102, 255, 0.05);
}

textarea.fluent-input {
    border-radius: 20px;
}

select.fluent-input {
    background-color: rgba(18, 20, 32, 0.95);
    color: #ffffff;
    cursor: pointer;
}

select.fluent-input option {
    background-color: #121420;
    color: #ffffff;
    padding: 0.75rem 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 2rem 2rem;
    background: var(--bg-base);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4rem;
}

.footer-brand {
    width: fit-content;
    width: -moz-fit-content;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.link-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

/* ============================================
   MOBILE MENU TOGGLE BUTTON
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1001;
    transition: all 0.3s ease;
    line-height: 0;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(103, 102, 255, 0.1);
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.nav-container.nav-open .mobile-menu-toggle .hamburger-icon {
    display: none;
}

.nav-container.nav-open .mobile-menu-toggle .close-icon {
    display: block;
}

/* ============================================
   RESPONSIVE — TABLET (≤992px)
   ============================================ */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 10rem;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
        max-width: 100%;
    }

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

    .hero-images {
        width: 100%;
        margin-top: 4rem;
        height: 400px;
    }

    .hero-thumb-1,
    .hero-thumb-2,
    .hero-thumb-3,
    .hero-thumb-4 {
        position: relative;
        width: 80%;
        margin: 0 auto;
        display: block;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .hero-thumb-2,
    .hero-thumb-3,
    .hero-thumb-4 {
        display: none;
    }

    .split-layout,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    /* Force inline card-grids with fixed columns to stack */
    .card-grid[style*="repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Mobile Hamburger Button --- */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Nav Container becomes flex-wrap for mobile overlay --- */
    .nav-container {
        flex-wrap: wrap;
        padding: 0.6rem 1rem;
    }

    /* --- Hide nav links & actions by default on mobile --- */
    .nav-links,
    .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    /* --- Show nav when .nav-open is active --- */
    .nav-container.nav-open .nav-links,
    .nav-container.nav-open .nav-actions {
        display: flex;
        animation: mobileMenuSlideDown 0.3s ease;
    }

    @keyframes mobileMenuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* --- Mobile Nav Links styling --- */
    .nav-container.nav-open .nav-links {
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-subtle);
        margin-top: 0.5rem;
    }

    .nav-container.nav-open .nav-links>a,
    .nav-container.nav-open .nav-links>.nav-item-dropdown>a {
        display: block;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 1rem;
        transition: background 0.2s ease;
    }

    .nav-container.nav-open .nav-links>a:hover,
    .nav-container.nav-open .nav-links>.nav-item-dropdown>a:hover {
        background: rgba(103, 102, 255, 0.1);
    }

    /* --- Mobile Dropdown Accordion --- */
    .nav-container.nav-open .nav-item-dropdown {
        display: flex;
        flex-direction: column;
    }

    .nav-container.nav-open .nav-item-dropdown .dropdown-content {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0.5rem 1.25rem;
        min-width: auto;
        background: transparent;
        animation: none;
    }

    .nav-container.nav-open .nav-item-dropdown.mobile-open .dropdown-content {
        display: block;
        animation: mobileMenuSlideDown 0.2s ease;
    }

    .nav-container.nav-open .dropdown-content a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    /* --- Mobile Nav Actions --- */
    .nav-container.nav-open .nav-actions {
        padding: 0.75rem 0 0.5rem;
        border-top: 1px solid var(--border-subtle);
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .nav-container.nav-open .nav-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    /* --- Hero Section --- */
    .hero {
        padding: 8rem 1.25rem 4rem;
        min-height: auto;
    }

    .hero-images {
        height: 250px;
    }

    /* --- Typography Scaling --- */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

    /* --- Section Padding --- */
    .section-container {
        padding: 30px 20px;
    }

    .section-container-doc,
    .section-container-wide {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-header {
        padding: 4.8rem 1.5rem 0.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* --- Card Grids — Force Single Column --- */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .fluent-card {
        padding: 30px 24px 28px;
    }

    /* --- Split Layouts --- */
    .split-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* --- Contact Card --- */
    .contact-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .fluent-form .form-row {
        grid-template-columns: 1fr;
    }

    /* --- Pricing Grid --- */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    /* --- API / Doc Layout (Sidebar + Main) --- */
    .api-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .api-sidebar {
        position: relative !important;
        top: auto !important;
        z-index: 10;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 1.5rem;
        padding: 0.85rem 1.15rem;
        background: var(--bg-surface-elevated);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    .api-sidebar h4 {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        user-select: none;
        font-size: 1rem;
        color: var(--accent-primary);
    }

    .api-sidebar h4::after {
        content: ' ▾';
        font-size: 1.1rem;
        transition: transform 0.3s ease;
        color: var(--accent-primary);
        font-weight: bold;
    }

    .api-sidebar.mobile-open h4::after {
        transform: rotate(180deg);
    }

    /* By default on mobile, collapse sidebar body to reveal main content */
    .api-sidebar:not(.mobile-open) input,
    .api-sidebar:not(.mobile-open) .api-nav-list {
        display: none !important;
    }

    .api-sidebar.mobile-open h4 {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .api-sidebar.mobile-open input {
        display: block !important;
        margin-bottom: 0.85rem;
    }

    .api-sidebar.mobile-open .api-nav-list {
        display: block !important;
        max-height: 55vh;
        overflow-y: auto;
    }

    /* --- Footer --- */
    .footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* --- Download Items --- */
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    /* --- Tables overflow handling --- */
    .ticket-table-wrapper,
    .doc-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Mission Box --- */
    .mission-box {
        padding: 1.75rem 1.5rem;
    }

    .mission-quote {
        font-size: 1.1rem;
    }

    /* --- Code boxes --- */
    .code-box pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 7rem 1rem 3rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-images {
        display: none;
    }

    .section-container {
        padding: 20px 12px;
    }

    .fluent-card {
        padding: 24px 18px 22px;
    }

    .btn-large {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .fluent-input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .dl-info h2 {
        font-size: 1.35rem;
    }

    .dl-meta {
        gap: 0.5rem;
    }

    .doc-section h2 {
        font-size: 1.6rem;
        flex-wrap: wrap;
    }

    .doc-section h3 {
        font-size: 1.25rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: rgba(14, 14, 16, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card h2,
.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.pricing-card .price {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.pricing-card .price span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card .desc {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    min-height: 42px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.6rem;
    color: #e2e8f0;
    font-size: 0.88rem;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%236766ff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.pricing-card.premium-wrapper {
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(103, 102, 255, 0.2) 100%);
    padding: 2px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(103, 102, 255, 0.35);
    border: none;
}

.pricing-card.premium-wrapper .pricing-card-inner {
    background: #0a0428;
    border-radius: calc(var(--radius-md) - 2px);
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn-block {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* API Documentation Styles */
.api-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.api-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.api-sidebar h4 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.api-nav-list {
    list-style: none;
}

.api-nav-item {
    margin-bottom: 0.25rem;
}

.api-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.api-nav-link:hover,
.api-nav-link.active {
    background: rgba(103, 102, 255, 0.15);
    color: var(--text-primary);
    padding-left: 1rem;
}

.api-nav-link.active {
    border-left: 3px solid var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
}

.api-main {
    min-width: 0;
}

.api-article {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.doc-section h2 {
    font-size: 2.25rem;
    color: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-section h3 {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.doc-badge-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.825rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-net {
    background: rgba(120, 80, 240, 0.2);
    color: #a87ffb;
    border: 1px solid rgba(120, 80, 240, 0.4);
}

.badge-wpf {
    background: rgba(0, 160, 230, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(0, 160, 230, 0.4);
}

.badge-pro {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-free {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-alc {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.code-box {
    background: #050114;
    border: 1px solid rgba(103, 102, 255, 0.25);
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    overflow: hidden;
}

.code-header {
    background: #0d0628;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.code-header .lang-tag {
    color: var(--accent-primary);
    font-weight: bold;
}

.code-copy-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.code-copy-btn:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: rgba(103, 102, 255, 0.2);
}

.code-box pre {
    padding: 1.25rem;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.925rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-box code {
    font-family: inherit;
}

/* Inline Code */
:not(pre)>code {
    background: rgba(103, 102, 255, 0.15);
    color: #a5b4fc;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(103, 102, 255, 0.2);
}

/* Data Tables & Node Detail Tables */
.doc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0 2rem;
    font-size: 0.95rem;
    background: rgba(15, 21, 36, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.doc-table th {
    background: rgba(103, 102, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.doc-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.6;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table td:first-child {
    width: 160px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-table tr:hover td {
    background: rgba(103, 102, 255, 0.04);
}

/* Callouts */
.callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.02);
}

.callout-info {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
}

.callout-tip {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.06);
}

.callout-warning {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.06);
}

.callout-important {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.06);
}

.callout-title {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.callout-info .callout-title {
    color: #38bdf8;
}

.callout-tip .callout-title {
    color: #4ade80;
}

.callout-warning .callout-title {
    color: #facc15;
}

.callout-important .callout-title {
    color: #f43f5e;
}

/* Mermaid & Visual Diagram Cards */
.mermaid-diagram-card {
    background: #090d16;
    border: 1px solid rgba(103, 102, 255, 0.3);
    border-radius: var(--radius-md);
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mermaid-header {
    background: #0f1524;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.mermaid-header .lang-tag {
    color: #38bdf8;
    font-weight: bold;
    letter-spacing: 1px;
}

.mermaid-body {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(103, 102, 255, 0.05) 0%, rgba(5, 8, 15, 0.8) 100%);
    overflow-x: auto;
}

.mermaid-body svg {
    max-width: 100% !important;
    height: auto !important;
}

.ascii-diagram-card {
    background: #050811;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ascii-diagram-card pre {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #38bdf8;
}

/* Software Download Page Styles */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.download-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.download-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.download-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(103, 102, 255, 0.25);
}

.download-item:hover::before {
    opacity: 1;
}

.dl-info {
    flex: 1;
}

.dl-info h2 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dl-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dl-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.dl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Page Header Component */
.page-header {
    padding: 4.8rem 2rem 1rem 0.5rem;
    text-align: center;
    background: radial-gradient(circle at center top, rgba(0, 120, 212, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    margin-bottom: 0.4rem;
}

.page-header p {
    margin-bottom: 0;
}

/* Mission Quote Card */
.mission-box {
    margin: 2.5rem 0;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mission-box:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
}

.mission-box::before {
    content: '“';
    position: absolute;
    top: -15px;
    right: 25px;
    font-size: 9rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(99, 102, 241, 0.12);
    pointer-events: none;
    user-select: none;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.25rem;
}

.mission-quote {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.85;
    color: #f8fafc;
    font-style: italic;
    font-weight: 500;
    font-family: var(--font-heading), 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}



/* Optimized PDF Print Styles */
@media print {

    .navbar,
    footer,
    .btn,
    button,
    .section-subtitle {
        display: none !important;
    }

    .api-sidebar {
        display: none !important;
    }

    .api-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .api-main {
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        background: #0d0f18 !important;
        color: #e2e8f0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .api-article {
        background: #161a29 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
        padding: 2rem !important;
    }

    .page-header {
        padding: 1.5rem 0 1rem !important;
        background: none !important;
    }
}

/* Dashboard & User Profile Layout Grid & Responsive Mobile Styling */
.dashboard-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-sidebar-card {
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
}

.profile-user-badge {
    text-align: center;
    padding: 1.25rem 0.5rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(103, 102, 255, 0.15);
    border: 2px solid var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin: 0 auto 0.75rem;
}

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

@media (max-width: 992px) {
    .dashboard-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .profile-sidebar-card {
        padding: 1rem !important;
    }

    .profile-user-badge {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        gap: 1rem !important;
        padding: 0.5rem 0.25rem 0.85rem !important;
        margin-bottom: 0.85rem !important;
    }

    .profile-avatar {
        margin: 0 !important;
        width: 46px !important;
        height: 46px !important;
        flex-shrink: 0 !important;
    }

    .profile-user-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .profile-user-info h3 {
        font-size: 1.05rem !important;
        margin: 0 !important;
    }

    .profile-user-info p,
    .profile-user-info div {
        font-size: 0.8rem !important;
        margin-top: 0.2rem !important;
    }

    .profile-sidebar-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .profile-sidebar-nav a,
    .profile-sidebar-nav .btn {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: 130px !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .profile-logout-box {
        margin-top: 0.85rem !important;
        padding-top: 0.85rem !important;
    }
}

/* Service & Variant Downloads */
.service-item {
    flex-direction: column !important;
    align-items: stretch !important;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 0.5rem;
}

.variant-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.variant-card:hover {
    border-color: var(--accent-primary);
    background: rgba(103, 102, 255, 0.06);
    box-shadow: 0 8px 25px rgba(103, 102, 255, 0.25);
}

.variant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.variant-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.variant-icon {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
}

.variant-version {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
}

.variant-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.v-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    width: 100%;
}

.v-detail code {
    font-size: 0.8rem;
    color: #a5b4fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.variant-dl-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    border-radius: 20px;
}

/* Tools Vertical Grid Layout */
.tools-vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.tool-card-row {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card-row:hover {
    border-color: var(--accent-primary);
    background: rgba(103, 102, 255, 0.06);
    box-shadow: 0 8px 25px rgba(103, 102, 255, 0.2);
}

.tool-card-body {
    flex: 1;
    min-width: 0;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tool-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(103, 102, 255, 0.12);
    border: 1px solid rgba(103, 102, 255, 0.3);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.tool-card-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tool-card-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .tool-card-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Video Tutorials Hover & Play Overlay */
.video-card:hover .thumb-img {
    transform: scale(1.05);
    opacity: 1 !important;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1) !important;
}

.video-card:hover .play-overlay>div {
    transform: scale(1.15);
}

/* Tech Diagram Cards */
.tech-diagram-card {
    background: var(--bg-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-diagram-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(103, 102, 255, 0.25);
}

.diagram-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
}

/* Plugins Directory Styles */
.category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.category-pill:hover {
    background: rgba(103, 102, 255, 0.15);
    color: var(--accent-primary);
    border-color: var(--border-strong);
}

.category-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(103, 102, 255, 0.4);
}

.pill-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-free {
    background-color: #4ade80;
}

.dot-pro {
    background-color: var(--accent-primary);
}

.category-pill.pill-license-free.active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.category-pill.pill-license-pro.active {
    background: rgba(103, 102, 255, 0.25);
    color: #a5b4fc;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(103, 102, 255, 0.4);
}

.plugin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.plugin-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.plugin-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(103, 102, 255, 0.25);
}

.plugin-card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.25rem;
}

.plugin-icon-box {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 20px;
    background: rgba(103, 102, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(103, 102, 255, 0.25);
}

.plugin-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plugin-icon-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.plugin-icon-link:hover .plugin-icon-box {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(103, 102, 255, 0.3);
    transform: scale(1.03);
}

.plugin-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.plugin-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.plugin-title-link:hover {
    color: var(--accent-primary);
}

.plugin-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plugin-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.plugin-platform-container {
    margin-bottom: 1.2rem;
}

.plugin-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.badge-type {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.badge-version {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.badge-minversion {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-license.license-free {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-license.license-pro {
    background: rgba(103, 102, 255, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--border-strong);
}

.platform-cross {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Mermaid Visual Diagram Theme Styling */
.uniflow-mermaid svg,
.mermaid svg {
    max-width: 100% !important;
    max-height: 280px !important;
    height: auto !important;
    width: auto !important;
}

.uniflow-mermaid .node rect,
.uniflow-mermaid .node circle,
.uniflow-mermaid .node polygon,
.uniflow-mermaid .node path,
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node polygon,
.mermaid .node path {
    fill: #150a38 !important;
    stroke: var(--accent-primary) !important;
    stroke-width: 1.5px !important;
}

.uniflow-mermaid .node .label,
.mermaid .node .label {
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
}

.uniflow-mermaid .cluster rect,
.mermaid .cluster rect {
    fill: rgba(15, 23, 42, 0.6) !important;
    stroke: rgba(103, 102, 255, 0.3) !important;
    stroke-width: 1px !important;
    rx: 8px !important;
}

.uniflow-mermaid .cluster span,
.mermaid .cluster span {
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
}

.uniflow-mermaid .edgePath .path,
.mermaid .edgePath .path {
    stroke: #38bdf8 !important;
    stroke-width: 2px !important;
}

.uniflow-mermaid .marker,
.mermaid .marker {
    fill: #38bdf8 !important;
    stroke: #38bdf8 !important;
}

/* Diagram Lightbox Zoom Modal Styling */
.diagram-zoom-btn {
    background: rgba(103, 102, 255, 0.15);
    border: 1px solid var(--border-strong);
    color: var(--accent-primary);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.diagram-zoom-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(103, 102, 255, 0.4);
}

.mermaid-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mermaid-zoom-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease-out forwards;
}

.mermaid-zoom-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    width: 92vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(103, 102, 255, 0.2);
}

.mermaid-zoom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.mermaid-zoom-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mermaid-zoom-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mermaid-zoom-btn-ctrl {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mermaid-zoom-btn-ctrl:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    color: #fff;
}

.mermaid-zoom-body {
    flex: 1;
    overflow: auto;
    padding: 2.5rem 1.5rem;
    background: radial-gradient(circle at center, rgba(30, 27, 75, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-sizing: border-box;
    display: block !important;
    text-align: center;
}

#mermaidZoomCanvas {
    display: block;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.mermaid-zoom-body svg {
    max-width: 95% !important;
    max-height: 72vh !important;
    width: auto !important;
    height: auto !important;
    transition: transform 0.2s ease;
    display: inline-block !important;
    margin: 0 auto !important;
    transform-origin: top center !important;
}

.platform-windows {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.plugin-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.plugin-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.download-btn {
    padding: 6px 18px;
    font-size: 0.85rem;
    border-radius: 20px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(103, 102, 255, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(103, 102, 255, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* License Terms Page Styles */
.license-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.license-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.license-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(103, 102, 255, 0.25);
}

.commercial-license-card {
    border-color: rgba(103, 102, 255, 0.4);
    background: radial-gradient(circle at top right, rgba(103, 102, 255, 0.08) 0%, var(--bg-surface) 70%);
}

.license-card-header h2 {
    font-size: 1.6rem;
    margin: 0.8rem 0 0.4rem;
    color: var(--text-primary);
}

.license-price {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.free-license-card .license-price {
    color: #4ade80;
}

.license-price span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.license-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.license-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.license-features-list li {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.check-icon {
    color: #4ade80;
    font-weight: 700;
}

.pro-check {
    color: var(--accent-primary);
}

/* License Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    max-width: 580px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    padding: 2rem;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.license-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.license-box ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
}

.license-box li {
    margin-bottom: 0.35rem;
}

.license-text-box {
    background: #050214;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-height: 340px;
    overflow-y: auto;
    margin-bottom: 1.25rem;
    font-family: 'Consolas', 'Courier New', monospace, sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    user-select: none;
    margin-bottom: 1.5rem;
}

.modal-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header & Utility Navigation Helper Classes */
.nav-link-active {
    color: var(--accent-primary) !important;
}

.nav-dropdown-disabled {
    cursor: default;
}

.btn-nav-active {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.btn-admin-active {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    background: rgba(103, 102, 255, 0.15) !important;
}

.btn-login-active {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
}

.btn-logout-icon {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    padding: 0.55rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-svg-icon {
    margin-right: 4px;
    vertical-align: -2px;
}

.logout-svg-icon {
    vertical-align: middle;
}

/* Form Controls & Panel Components */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

select {
    background-color: #0c0926 !important;
    color: #ffffff !important;
}

select option {
    background-color: #121420 !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

/* User Header Avatar & Dropdown Submenu */
.user-header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid var(--accent-primary);
}

.user-dropdown-submenu {
    right: 0 !important;
    left: auto !important;
    min-width: 180px !important;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.9rem;
}

.form-input-disabled {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: not-allowed;
}

.btn-form-submit {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

.panel-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.panel-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.form-section-divider {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.badge-admin-role {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(103, 102, 255, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.badge-admin-assigned {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(103, 102, 255, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(103, 102, 255, 0.3);
}

.alert-success,
.alert-danger,
.alert-warning {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    word-break: break-word;
    box-sizing: border-box;
}

.alert-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.form-box-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-box-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

/* Video Tutorials Component Styles */
.video-header-title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.video-header-title-box h1 {
    margin-bottom: 0;
}

.video-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(10, 4, 40, 0.6);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.video-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 14px;
}

.video-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-play-button-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(103, 102, 255, 0.5);
    transition: transform 0.2s ease;
}

.video-play-svg {
    margin-left: 3px;
    width: 20px;
    height: 20px;
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-card-content {
    padding: 1rem 0.25rem 0.25rem 0.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.video-card-title {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    font-family: var(--font-body);
    font-weight: 600;
}

.video-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.video-card-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* License Terms & FAQ Section Styles */
.term-block {
    margin-bottom: 2rem;
}

.term-block:last-child {
    margin-bottom: 0;
}

.term-block h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.term-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Solutions Telemetry Pipeline Panel Component */
.telemetry-pipeline-panel {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 5rem;
}

.telemetry-pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.telemetry-code-block {
    background: #060218;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    padding: 1.15rem 1.35rem;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.84rem;
    line-height: 1.4;
    letter-spacing: -0.2px;
    overflow-x: auto;
    white-space: normal;
    word-break: break-word;
}

.telemetry-code-block div {
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .telemetry-pipeline-panel {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .telemetry-pipeline-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .telemetry-code-block {
        padding: 1.15rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .telemetry-pipeline-panel {
        padding: 1.15rem;
    }

    .telemetry-code-block {
        padding: 0.85rem;
        font-size: 0.75rem;
    }
}

/* Math / Formula Syntax Styling in Documentation */
.doc-formula {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.88em;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
    margin: 0 0.15rem;
    white-space: nowrap;
}

.doc-formula-block {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1.5rem;
    margin: 1.25rem 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-left: 4px solid var(--accent-primary);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    overflow-x: auto;
}

.doc-formula-block .doc-formula-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: 'Consolas', 'Monaco', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 1.02em;
    color: #f1f5f9;
}

/* Distinct styling for \text{...} elements inside formulas */
.doc-formula .formula-text,
.doc-formula-block .formula-text {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Distinct styling for math operators (+, -, *, =, etc.) */
.doc-formula .formula-op,
.doc-formula-block .formula-op {
    color: #f59e0b;
    font-weight: 700;
    padding: 0 0.15rem;
}

/* Functions like sin, cos, clamp, mod */
.doc-formula .formula-func,
.doc-formula-block .formula-func {
    color: #c084fc;
    font-weight: 600;
    font-style: italic;
}

/* Subscripts and superscripts */
.doc-formula sub,
.doc-formula-block sub {
    font-size: 0.75em;
    color: #a5b4fc;
}

.doc-formula sup,
.doc-formula-block sup {
    font-size: 0.75em;
    color: #f43f5e;
}