:root {
    --site-bg-start: #050b18;
    --site-bg-mid: #1e293b;
    --site-bg-end: #151e29;
    --site-slate-100: #f1f5f9;
    --site-slate-300: #cbd5e1;
    --site-slate-400: #94a3b8;
    --site-slate-500: #64748b;
    --site-slate-700: #334155;
    --site-slate-900: #0f172a;
    --site-blue-400: #60a5fa;
    --site-blue-500: #3b82f6;
    --site-cyan-400: #22d3ee;
    --ui-bg: #0b1220;
    --ui-panel: #111827;
    --ui-panel-soft: #1f2937;
    --ui-panel-muted: #374151;
    --ui-border: rgba(148, 163, 184, 0.16);
    --ui-text: #e5e7eb;
    --ui-text-soft: #cbd5e1;
    --ui-text-muted: #94a3b8;
    --ui-primary: #3b82f6;
    --ui-primary-soft: #60a5fa;
    --ui-success: #22c55e;
    --ui-danger: #ef4444;
    --ui-warning: #f59e0b;
    --ui-purple: #8b5cf6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
body.site-body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.site-body {
    background: linear-gradient(135deg, var(--site-bg-start) 0%, var(--site-bg-mid) 70%, var(--site-bg-end) 100%);
    color: var(--site-slate-100);
    overflow-x: hidden;
}

body:not(.site-body) {
    background: #f8fafc;
    color: #0f172a;
}

body.admin-body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 30%),
        #0b1220;
    color: #e5e7eb;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-name,
.navbar .nav-link,
.navbar-toggler,
.navbar-brand {
    font-family: "Space Grotesk", "Inter", sans-serif;
}

a {
    color: inherit;
}

.text-gradient {
    background: linear-gradient(135deg, var(--site-blue-400) 0%, var(--site-cyan-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--site-slate-100);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.22);
}

.site-shell,
.app-shell {
    min-height: 100vh;
}

.site-main {
    padding-top: 88px;
    color: var(--ui-text);
}

.app-main {
    padding: 2rem 0;
}

.site-main a,
.app-main a,
.guest-shell a,
.admin-link {
    text-decoration: none;
}

.site-main .container,
.app-main .container {
    position: relative;
}

.site-navbar {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
    background: #020617;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.site-navbar .nav-link,
.app-navbar .nav-link {
    font-size: 0.98rem;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.site-navbar .nav-link {
    color: var(--site-slate-300);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active,
.app-navbar .nav-link.active,
.app-navbar .nav-link:hover {
    color: #fff;
}

.site-navbar .nav-link.active::after,
.site-navbar .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-blue-400), var(--site-cyan-400));
}

.site-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.04);
}

.app-navbar {
    background: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link,
.app-navbar .navbar-text {
    color: #e2e8f0;
}

.page-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.btn-logout {
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    background: transparent;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.guest-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--site-bg-start) 0%, var(--site-bg-mid) 70%, var(--site-bg-end) 100%);
}

.guest-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.guest-frame {
    max-width: 520px;
}

.guest-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
    text-decoration: none;
}

.guest-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.guest-link {
    color: #93c5fd;
    text-decoration: none;
}

.guest-link:hover {
    color: #bfdbfe;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: 4rem;
    padding: 3rem 0 1.4rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72)),
        rgba(15, 23, 42, 0.38);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.8fr));
    gap: 2rem;
    align-items: start;
}

.footer-brand-block {
    max-width: 420px;
}

.footer-heading {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-lead {
    margin: 0;
    color: #b8c5d6;
    font-size: 0.96rem;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 0.7rem;
}

.footer-links a,
.footer-links span {
    color: #9fb0c5;
    text-decoration: none;
    line-height: 1.6;
}

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

.footer-role {
    color: #c0cede;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: center;
}

.footer-copy {
    color: #7d8ea5;
    font-size: 0.88rem;
    margin: 0;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding: 2.25rem 0 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        text-align: center;
    }

    .footer-brand-block {
        max-width: 100%;
    }

    .footer-links {
        justify-items: center;
    }

    .footer-heading {
        margin-bottom: 0.65rem;
        font-size: 0.78rem;
    }

    .footer-lead,
    .footer-links a,
    .footer-links span,
    .footer-role {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .footer-bottom {
        margin-top: 1.4rem;
        padding-top: 0.9rem;
        text-align: center;
    }

    .footer-copy {
        font-size: 0.82rem;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.delay-100 {
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 0.9rem;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14);
}

.btn {
    border-radius: 0.9rem;
    font-weight: 600;
}

.btn-primary {
    padding: 0.95rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: rgba(125, 211, 252, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.btn-outline-secondary {
    border-color: #cbd5e1;
    color: #475569;
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: transparent;
}

.alert {
    border-radius: 1rem;
}

.invalid-feedback.d-block,
.text-danger {
    font-size: 0.92rem;
}

.guest-card .form-label,
.guest-card .text-gray-700,
.guest-card .text-gray-900 {
    color: #0f172a !important;
}

.guest-card .text-gray-600 {
    color: #475569 !important;
}

.guest-card .text-sm {
    font-size: 0.92rem;
}

.modal-content {
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.home-page {
    position: relative;
    overflow: hidden;
}

.home-section {
    position: relative;
    padding: 4.5rem 1.25rem;
}

.hero-section {
    padding-bottom: 4.25rem;
}

.home-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid,
.about-grid,
.skills-grid,
.services-grid,
.portfolio-grid {
    display: grid;
    gap: 1.75rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 2rem;
}

.hero-grid > * {
    min-width: 0;
}

.layer-front {
    position: relative;
    z-index: 1;
}

.about-grid,
.skills-grid {
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 2rem;
}

.services-grid,
.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: #8cccf8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.eyebrow-pill::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.55);
}

.hero-title {
    max-width: 680px;
    margin: 1.1rem 0 0;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-copy,
.section-copy {
    color: #cbd5e1;
    line-height: 1.8;
}

.hero-copy {
    max-width: 620px;
    margin-top: 1.15rem;
    font-size: 0.98rem;
    color: #b6c4d6;
}

.section-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.7vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.018em;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: rgba(103, 232, 249, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.metric-card,
.content-card,
.service-card,
.process-card,
.project-card,
.skills-card,
.cta-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.75rem;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

.metric-card {
    padding: 1rem;
}

.metric-value {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.metric-label {
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.55;
}

.hero-panel {
    padding: 1.6rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.92));
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
}

.hero-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-avatar {
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #020617;
    flex-shrink: 0;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-label {
    margin: 0;
    color: #94a3b8;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel-title {
    margin: 0.35rem 0 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.25;
}

.stack-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.stack-item {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.content-card,
.skills-card,
.cta-card {
    padding: 1.6rem;
}

.text-block {
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.97rem;
    line-height: 1.8;
}

.section-head {
    max-width: 760px;
    margin-bottom: 1.9rem;
}

.service-card,
.project-card,
.process-card {
    padding: 1.25rem;
    height: 100%;
}

.service-number,
.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    font-weight: 700;
}

.service-card h3,
.project-card h3,
.skill-note h3 {
    margin: 0.9rem 0 0.65rem;
    color: #fff;
    font-size: 1.02rem;
}

.service-card p,
.project-card p,
.process-card p,
.skill-note p,
.cta-copy {
    color: #94a3b8;
    line-height: 1.72;
    font-size: 0.94rem;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: 1.75rem;
    align-items: start;
}

.process-list {
    display: grid;
    gap: 1rem;
}

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

.process-card p {
    text-align: center;
    width: 100%;
}

.portfolio-head {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    align-items: flex-end;
    margin-bottom: 1.7rem;
}

.portfolio-intro {
    max-width: 380px;
    color: #94a3b8;
    line-height: 1.72;
    font-size: 0.94rem;
}

.project-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.04);
}

.project-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
}

.project-link {
    display: inline-block;
    margin-top: 0.35rem;
    color: #67e8f9;
    text-decoration: none;
    word-break: break-word;
}

.project-link:hover {
    color: #a5f3fc;
}

.project-summary {
    margin-top: 0.9rem;
}

.tech-list,
.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tech-pill,
.expertise-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(30, 41, 59, 0.78);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
}

.tech-list-spaced {
    margin-top: 1rem;
}

.skills-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.skill-note {
    padding: 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.cta-card {
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.98));
}

.cta-copy {
    max-width: 700px;
    margin: 1rem auto 0;
}

.contact-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.75rem;
    margin-top: 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

#contact .contact-actions {
    justify-content: center;
}

.section-copy-spaced {
    margin-top: 1.25rem;
}

.hero-background::before,
.hero-background::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-background::before {
    top: 8rem;
    left: -8rem;
    width: 18rem;
    height: 18rem;
    background: #22d3ee;
}

.hero-background::after {
    top: 10rem;
    right: -7rem;
    width: 18rem;
    height: 18rem;
    background: #3b82f6;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.22) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

.empty-state {
    padding: 2rem;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 1.75rem;
    text-align: center;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.45);
}

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.w-full { width: 100%; }
.w-3\/4 { width: 75%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-16 { width: 4rem; }
.w-32 { width: 8rem; }
.w-64 { width: 16rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-7xl { max-width: 80rem; }
.min-w-full { min-width: 100%; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 0.75rem; }

.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.rounded { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.65rem; }
.rounded-lg { border-radius: 0.9rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.75rem; }
.rounded-full { border-radius: 999px; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-red-500 { border-color: rgba(239, 68, 68, 0.65); }
.border-green-500 { border-color: rgba(34, 197, 94, 0.65); }
.border-yellow-500 { border-color: rgba(245, 158, 11, 0.65); }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-purple-600 { background-color: #9333ea; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-yellow-600 { background-color: #ca8a04; }
.bg-green-700 { background-color: #15803d; }
.bg-yellow-900\/20 { background-color: rgba(113, 63, 18, 0.2); }
.bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-red-900\/20 { background-color: rgba(127, 29, 29, 0.2); }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-red-800:hover { background-color: #991b1b; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-blue-800:hover { background-color: #1e40af; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-600:hover { background-color: #4b5563; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-gray-800\/50:hover { background-color: rgba(31, 41, 55, 0.5); }
.hover\:bg-purple-700:hover { background-color: #7e22ce; }
.hover\:bg-yellow-700:hover { background-color: #a16207; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent));
}

.from-blue-600 { --tw-gradient-from: #2563eb; }
.from-blue-700 { --tw-gradient-from: #1d4ed8; }
.from-green-600 { --tw-gradient-from: #16a34a; }
.from-green-700 { --tw-gradient-from: #15803d; }
.from-purple-600 { --tw-gradient-from: #9333ea; }
.from-purple-700 { --tw-gradient-from: #7e22ce; }
.from-orange-600 { --tw-gradient-from: #ea580c; }
.from-red-600 { --tw-gradient-from: #dc2626; }
.from-red-700 { --tw-gradient-from: #b91c1c; }
.from-yellow-600 { --tw-gradient-from: #ca8a04; }
.from-yellow-700 { --tw-gradient-from: #a16207; }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }
.to-blue-800 { --tw-gradient-to: #1e40af; }
.to-green-800 { --tw-gradient-to: #166534; }
.to-purple-600 { --tw-gradient-to: #9333ea; }
.to-purple-700 { --tw-gradient-to: #7e22ce; }
.to-purple-800 { --tw-gradient-to: #6b21a8; }
.to-orange-600 { --tw-gradient-to: #ea580c; }
.to-orange-700 { --tw-gradient-to: #c2410c; }
.to-orange-800 { --tw-gradient-to: #9a3412; }
.to-emerald-600 { --tw-gradient-to: #059669; }
.to-emerald-700 { --tw-gradient-to: #047857; }
.to-pink-600 { --tw-gradient-to: #db2777; }
.to-pink-700 { --tw-gradient-to: #be185d; }

.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-start { text-align: left; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.leading-5 { line-height: 1.25rem; }
.leading-tight { line-height: 1.2; }
.tracking-widest { letter-spacing: 0.12em; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-all { word-break: break-all; }

.text-white { color: #ffffff; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-green-100 { color: #dcfce7; }
.text-green-200 { color: #bbf7d0; }
.text-green-400 { color: #4ade80; }
.text-green-600 { color: #16a34a; }
.text-yellow-400 { color: #facc15; }
.text-red-200 { color: #fecaca; }
.text-red-400 { color: #f87171; }
.text-orange-100 { color: #ffedd5; }
.text-orange-400 { color: #fb923c; }
.text-purple-100 { color: #f3e8ff; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-800 { color: #3730a3; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }

.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.shadow { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1); }
.shadow-lg { box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18); }
.shadow-xl { box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28); }

.transition { transition: all 0.2s ease; }
.duration-150 { transition-duration: 0.15s; }
.duration-300 { transition-duration: 0.3s; }
.hover\:opacity-95:hover { opacity: 0.95; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-gray-500:hover { color: #6b7280; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-white:hover { color: #ffffff; }

.focus\:outline-none:focus { outline: none; }
.focus\:border-purple-500:focus { border-color: #a855f7; }
.focus\:ring-2:focus { box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.16); }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.16); }
.focus\:ring-purple-500:focus { box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.16); }
.focus\:ring-offset-2:focus { outline-offset: 2px; }

.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-4 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.ps-3 { padding-left: 0.75rem; }
.pe-4 { padding-right: 1rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 1px;
    border-top-style: solid;
}

.divide-gray-800 > :not([hidden]) ~ :not([hidden]) {
    border-color: #1f2937;
}

.opacity-50 { opacity: 0.5; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-shell {
    min-height: 100vh;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1030;
}

.admin-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 290px;
    max-width: calc(100vw - 2rem);
    display: flex;
    flex-direction: column;
    background: rgba(12, 18, 32, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(12px);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 1040;
}

.admin-sidebar.is-open {
    transform: translateX(0);
}

.admin-sidebar__brand,
.admin-sidebar__footer {
    padding: 1.35rem 1.25rem;
}

.admin-sidebar__brand {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-brand-link {
    display: inline-block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.admin-sidebar__user {
    margin: 0.45rem 0 0;
    color: #94a3b8;
    font-size: 0.92rem;
}

.admin-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
}

.admin-nav-group + .admin-nav-group {
    margin-top: 1.4rem;
}

.admin-nav-label {
    padding: 0 0.75rem;
    margin-bottom: 0.6rem;
    color: #64748b;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.admin-nav-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
}

.admin-nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.18));
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.08);
}

.admin-main {
    min-height: 100vh;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(11, 18, 32, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.admin-topbar__eyebrow {
    color: #60a5fa;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.admin-page-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: #fff;
    font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.admin-topbar__meta {
    color: #94a3b8;
    font-size: 0.92rem;
}

.admin-content {
    padding: 1.1rem;
}

.admin-alert {
    border: 0;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.2);
}

.admin-card,
.admin-panel,
.admin-stat-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.15rem;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
    min-width: 0;
    overflow: hidden;
}

.admin-card,
.admin-panel {
    padding: 1.1rem;
}

.admin-stat-card {
    padding: 1.1rem;
    height: 100%;
}

.admin-stat-card__label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.admin-stat-card__value {
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    line-height: 1.05;
    color: #fff;
    font-weight: 700;
}

.admin-hero {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.2rem;
    padding: 1.2rem 1.25rem;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
}

.admin-hero__content {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
}

.admin-hero__title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    line-height: 1.3;
    margin: 0;
    max-width: 820px;
}

.admin-hero__copy {
    margin: 0.7rem 0 0;
    color: #94a3b8;
    max-width: 760px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.admin-hero__meta {
    min-width: 180px;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-hero__meta-label {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
}

.admin-hero__meta-value {
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
}

.admin-section-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-toolbar__actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.admin-filter-grid > * {
    grid-column: span 12;
}

.admin-filter-grid .span-6 { grid-column: span 6; }
.admin-filter-grid .span-4 { grid-column: span 4; }
.admin-filter-grid .span-3 { grid-column: span 3; }

.admin-table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: rgba(148, 163, 184, 0.12);
    --bs-table-striped-color: #e5e7eb;
    --bs-table-striped-bg: rgba(30, 41, 59, 0.3);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(30, 41, 59, 0.55);
}

.admin-table thead th {
    color: #94a3b8;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(30, 41, 59, 0.72);
    border-bottom-width: 1px;
}

.admin-table td,
.admin-table th {
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-muted {
    color: #94a3b8;
}

.admin-soft-card {
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.95rem;
    padding: 1rem;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.admin-soft-card--tight {
    padding: 0.85rem 0.9rem;
}

.admin-soft-card--action {
    display: flex;
    flex-direction: column;
}

.admin-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-kpi-label {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    margin-bottom: 0.4rem;
}

.admin-kpi-value {
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    line-height: 1.45;
    word-break: break-word;
}

.admin-kpi-value--compact {
    font-size: clamp(0.84rem, 0.95vw, 0.92rem);
}

.admin-page-shell {
    max-width: 1320px;
}

.admin-form-card {
    max-width: 900px;
}

.admin-progress {
    height: 0.85rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    overflow: hidden;
}

.admin-progress__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.admin-log-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.25rem;
}

.admin-log-sidebar,
.admin-log-viewer {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.15rem;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
}

.admin-log-sidebar { padding: 1rem; }
.admin-log-viewer { padding: 1.25rem; }

.admin-log-list,
.admin-date-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-log-list li + li,
.admin-date-list li + li {
    margin-top: 0.35rem;
}

.admin-list-link {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-list-link:hover {
    background: rgba(30, 41, 59, 0.76);
    color: #fff;
}

.admin-list-link.active {
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.24);
    color: #bfdbfe;
    font-weight: 600;
}

.admin-log-meta {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    margin-top: 0.2rem;
}

.admin-log-content {
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.9rem;
    padding: 1rem;
    color: #e2e8f0;
    font-size: 0.8rem;
}

.admin-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-project-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 0.95rem;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.admin-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-empty {
    text-align: center;
    padding: 2.4rem 1.2rem;
    color: #94a3b8;
}

.admin-back-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.admin-back-link:hover {
    color: #bfdbfe;
}

.admin-form-check {
    background: rgba(30, 41, 59, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.95rem;
    padding: 0.95rem 1rem;
}

.quill-editor {
    background: #fff;
    border-radius: 0.95rem;
    overflow: hidden;
}

.quill-editor .ql-toolbar.ql-snow {
    border: 1px solid #d1d5db;
    border-bottom: 0;
}

.quill-editor .ql-container.ql-snow {
    border: 1px solid #d1d5db;
    border-radius: 0 0 0.95rem 0.95rem;
    min-height: 220px;
    color: #0f172a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.quill-editor .ql-editor {
    min-height: 220px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.admin-actions .btn,
.admin-toolbar .btn {
    white-space: nowrap;
}

.admin-card .btn,
.admin-soft-card .btn {
    max-width: 100%;
}

.admin-actions--stack {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--site-slate-900); }
::-webkit-scrollbar-thumb { background: var(--site-slate-700); border-radius: 999px; }

@media (max-width: 1199.98px) {
    .portfolio-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .skills-grid,
    .process-layout,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-title,
    .section-title {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .admin-filter-grid .span-6,
    .admin-filter-grid .span-4,
    .admin-filter-grid .span-3 {
        grid-column: span 12;
    }

    .admin-log-layout,
    .admin-project-grid,
    .admin-stack-grid {
        grid-template-columns: 1fr;
    }

    .site-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        background: rgba(15, 23, 42, 0.92);
        border: 1px solid rgba(148, 163, 184, 0.1);
    }

    .site-navbar .nav-link.active::after,
    .site-navbar .nav-link:hover::after {
        left: 0;
        right: auto;
        width: 2rem;
        bottom: -0.15rem;
    }
}

@media (max-width: 720px) {
    .admin-hero {
        padding: 1rem;
    }

    .admin-hero__content {
        flex-direction: column;
    }

    .admin-hero__meta {
        width: 100%;
        min-width: 0;
    }

    .admin-content,
    .admin-topbar__inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-card,
    .admin-panel,
    .admin-stat-card,
    .admin-log-sidebar,
    .admin-log-viewer {
        padding: 1rem;
    }

    .admin-stat-card__value {
        font-size: 1.2rem;
    }

    .admin-section-title {
        font-size: 1rem;
    }

    .admin-section-head,
    .admin-toolbar,
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions .btn,
    .admin-toolbar .btn {
        width: 100%;
    }

    .home-section {
        padding: 3rem 1rem;
    }

    .hero-section {
        padding-bottom: 3.2rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        line-height: 1.06;
        letter-spacing: -0.018em;
    }

    .hero-copy,
    .text-block,
    .section-copy,
    .portfolio-intro,
    .service-card p,
    .project-card p,
    .process-card p,
    .skill-note p,
    .cta-copy {
        font-size: 0.97rem;
        line-height: 1.72;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .panel-title {
        font-size: 1.12rem;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary,
    .contact-actions .btn-primary,
    .contact-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .hero-metrics,
    .skills-notes {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .content-card,
    .skills-card,
    .cta-card {
        padding: 1.1rem;
    }

    .hero-panel-header {
        align-items: flex-start;
    }

    .service-card,
    .project-card,
    .process-card,
    .skill-note {
        padding: 1rem;
    }

    .portfolio-head,
    .section-head {
        margin-bottom: 1.5rem;
    }

    .contact-meta {
        gap: 0.5rem 1rem;
        font-size: 0.92rem;
    }
}

@media (min-width: 576px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .sm\:rounded-lg { border-radius: 0.9rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .admin-sidebar {
        transform: none;
    }

    .admin-overlay {
        display: none;
    }

    .admin-main {
        margin-left: 290px;
    }

    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1200px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
