:root {
    --bg: #f2f4f7;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --surface-muted: #f2f4f7;
    --stroke: rgba(255, 255, 255, 0.58);
    --text: #162221;
    --muted: #a0a8b0;
    --primary: #0b2e59;
    --primary-bright: #3bb54a;
    --secondary: #1c4a7e;
    --dark-green: #1e8c3a;
    --shadow: 0 18px 60px rgba(11, 46, 89, 0.12);
    --radius: 24px;
    --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(59, 181, 74, 0.16), transparent 30%),
        radial-gradient(circle at left center, rgba(11, 46, 89, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f2f4f7 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(11, 46, 89, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
iframe { width: 100%; height: 100%; border: 0; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.site-shell { min-height: 100vh; }
.glass-card,
.metric-card,
.dashboard-panel,
.message-card,
.stat-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(242, 244, 247, 0.75);
    border-bottom: 1px solid rgba(11, 46, 89, 0.08);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 181, 74, 0.28), transparent);
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    transition: 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--primary), var(--primary-bright));
    transition: transform 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover,
.text-link,
.ghost-link {
    color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
}

.header-cta { white-space: nowrap; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(11, 46, 89, 0.12);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(11, 46, 89, 0.14);
}

.theme-toggle .theme-icon-sun { display: none; }
html.dark .theme-toggle .theme-icon-sun { display: block; }
html.dark .theme-toggle .theme-icon-moon { display: none; }

.login-card { position: relative; }
.login-card .theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(59, 181, 74, 0.16);
}
.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
    box-shadow: 0 14px 32px rgba(59, 181, 74, 0.24);
}
.button-secondary {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(11, 46, 89, 0.12);
    color: var(--text);
}
.danger { background: linear-gradient(135deg, #991b1b, #dc2626); }

.hero-section,
.content-section,
.stats-section,
.page-main { padding: 44px 0 90px; }
.hero-grid,
.split-panel,
.detail-hero,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: center;
}

.hero-section { padding-top: 60px; }
.hero-copy,
.hero-media,
.stats-grid,
.card-grid.thirds,
.about-panel,
.contact-hero-block,
.contact-layout-enhanced,
.footer-shell {
    animation: fadeUp 0.7s ease both;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin: 18px 0 18px;
}

.hero-copy h1 span { color: var(--primary); font-style: italic; }
.hero-copy p,
.page-hero p,
.detail-hero p,
.service-card p,
.project-body p,
.contact-layout p { color: var(--muted); line-height: 1.7; font-size: 1.02rem; }

.hero-actions,
.inline-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.pill,
.section-tag,
.project-category,
.filter-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-green);
    background: rgba(59, 181, 74, 0.16);
}

.hero-media,
.detail-cover,
.gallery-card,
.map-frame,
.contact-card,
.form-panel,
.split-panel,
.service-card,
.project-card,
.footer-grid,
.login-card,
.dashboard-panel,
.metric-card,
.message-card { border-radius: var(--radius); overflow: hidden; }

.hero-media,
.detail-cover { min-height: 460px; padding: 18px; }
.hero-media {
    position: relative;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    pointer-events: none;
}

.hero-media img,
.detail-cover img,
.project-card img,
.gallery-card img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); }

.placeholder-art {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    background: linear-gradient(135deg, rgba(59, 181, 74, 0.1), rgba(11, 46, 89, 0.03));
    border-radius: calc(var(--radius) - 6px);
}

.placeholder-art.compact { min-height: 240px; }

.placeholder-art .material-symbols-outlined { font-size: 4rem; color: var(--primary); }
.section-heading { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; align-items: flex-start; text-align: left; }
.section-heading.center { justify-content: center; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; max-width: 760px; }

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card,
.project-body,
.dashboard-panel,
.metric-card,
.message-card,
.contact-card,
.form-panel,
.gallery-card figcaption,
.footer-grid,
.login-card { padding: 28px; }

.service-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(59, 181, 74, 0.12);
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 2rem;
}

.service-card {
    position: relative;
    border-top: 4px solid transparent;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover,
.project-card:hover,
.stat-card:hover,
.contact-info-card:hover,
.contact-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(59, 181, 74, 0.14);
}

.accent-primary { border-top-color: var(--primary-bright); }
.accent-secondary { border-top-color: var(--secondary); }
.accent-tertiary { border-top-color: #a0a8b0; }

.service-card h3,
.project-body h3,
.message-card h3,
.dashboard-panel h1,
.dashboard-panel h2 { margin-bottom: 12px; font-size: 1.4rem; }
.feature-list,
.tag-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feature-list li,
.tag-list span {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card img { aspect-ratio: 4 / 3; }
.project-body { display: flex; flex-direction: column; gap: 14px; }
.project-category { width: fit-content; padding: 8px 12px; }
.text-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: gap 0.22s ease, color 0.22s ease;
}

.text-link::after {
    content: "east";
    font-family: "Material Symbols Outlined";
    font-size: 1rem;
}

.text-link:hover {
    gap: 12px;
}

.stats-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.stat-card,
.metric-card { text-align: center; border-radius: 26px; padding: 28px 16px; }
.stat-card strong,
.metric-card strong { display: block; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--primary); margin-bottom: 8px; }
.stat-card span,
.metric-card span { color: var(--muted); font-weight: 600; }

.page-hero { padding-top: 48px; padding-bottom: 24px; max-width: 900px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
.detail-hero { align-items: start; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery-card figcaption { color: var(--muted); padding-top: 14px; }

.contact-layout { align-items: start; }
.contact-card,
.map-frame { margin-top: 24px; }
.map-frame { min-height: 280px; }
.about-panel {
    position: relative;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 42px;
    padding: 42px;
    overflow: hidden;
}

.about-panel::before,
.about-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}

.about-panel::before {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -60px;
    background: rgba(59, 181, 74, 0.12);
}

.about-panel::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: 18%;
    background: rgba(11, 46, 89, 0.08);
}

.about-copy,
.about-side {
    position: relative;
    z-index: 1;
}

.about-copy h2 {
    font-size: clamp(2rem, 4.3vw, 3.4rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
    margin: 18px 0 16px;
}

.about-copy > p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.about-signals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.about-signals article,
.about-floating-card,
.contact-story-card {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(59, 181, 74, 0.08);
}

.about-signals article {
    padding: 20px;
    border-radius: 22px;
}

.about-signals strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.about-signals span {
    color: var(--muted);
    line-height: 1.65;
}

.about-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-floating-card {
    width: min(100%, 380px);
    padding: 28px;
    border-radius: 28px;
    animation: floatGlow 6s ease-in-out infinite;
}

.soft-tag {
    background: rgba(255, 255, 255, 0.78);
}

.about-floating-card p {
    margin: 18px 0 20px;
    font-size: 1.45rem;
    line-height: 1.4;
    font-weight: 700;
}

.about-mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.about-mini-points span,
.footer-badges span,
.contact-story-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-mini {
    display: grid;
    gap: 18px;
    align-content: center;
    padding-left: 30px;
    border-left: 1px solid rgba(11, 46, 89, 0.1);
}

.contact-mini p {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.full-span { grid-column: 1 / -1; }
label { display: block; margin-bottom: 8px; font-weight: 700; }

.form-input,
.file-input,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(11, 46, 89, 0.12);
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(59, 181, 74, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 181, 74, 0.12);
}

textarea { min-height: 160px; resize: vertical; }
.checkbox-input { width: 18px; height: 18px; }

.flash-stack { padding-top: 20px; display: grid; gap: 12px; }
.flash-message {
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(59, 181, 74, 0.18);
    color: var(--primary);
    font-weight: 700;
}

.site-footer { padding: 8px 0 42px; }
.footer-shell {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.footer-shell::before {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(59, 181, 74, 0.1);
    filter: blur(18px);
    pointer-events: none;
}

.footer-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(11, 46, 89, 0.08);
}

.footer-topline h3 {
    margin-top: 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.05em;
    max-width: 660px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-brand-block {
    display: grid;
    gap: 20px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span { color: var(--muted); line-height: 1.8; display: block; }
.footer-grid a {
    width: fit-content;
    transition: color 0.22s ease, transform 0.22s ease;
}

.footer-grid a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-title { color: var(--text) !important; font-weight: 800; margin-bottom: 8px; }

.footer-bottomline {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(11, 46, 89, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

.contact-hero-block {
    padding-bottom: 8px;
}

.contact-hero-copy {
    margin: 0;
}

.contact-layout-enhanced {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
}

.contact-content-stack {
    display: grid;
    gap: 22px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-info-card,
.contact-story-card,
.contact-form-panel {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.contact-info-card {
    padding: 24px;
    display: grid;
    gap: 10px;
}

.contact-info-card .material-symbols-outlined {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(59, 181, 74, 0.12);
    color: var(--primary);
    font-size: 1.6rem;
}

.contact-info-card strong {
    font-size: 1.02rem;
}

.contact-info-card a,
.contact-info-card p {
    color: var(--muted);
    line-height: 1.65;
}

.contact-info-card a:hover {
    color: var(--primary);
}

.contact-story-card {
    padding: 30px;
    border-radius: 28px;
}

.contact-story-card h2,
.contact-form-header h2 {
    margin: 16px 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.05em;
}

.contact-story-card > p,
.contact-form-header > p {
    color: var(--muted);
    line-height: 1.8;
}

.contact-story-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.contact-map-enhanced {
    overflow: hidden;
}

.contact-map-enhanced iframe {
    filter: saturate(0.92) contrast(1.03);
}

.contact-form-panel {
    padding: 32px;
    position: relative;
}

.contact-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-bright));
}

.contact-form-header {
    margin-bottom: 24px;
}

.contact-field {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(11, 46, 89, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-field:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 181, 74, 0.18);
    box-shadow: 0 16px 32px rgba(59, 181, 74, 0.08);
}

.contact-field textarea,
.contact-field input,
.contact-field select {
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-body {
    background:
        radial-gradient(circle at top left, rgba(59, 181, 74, 0.12), transparent 22%),
        linear-gradient(180deg, #f4f6fa 0%, #e9edf4 100%);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    background:
        radial-gradient(circle at top, rgba(59, 181, 74, 0.18), transparent 35%),
        linear-gradient(180deg, #0b2e59 0%, #081f3d 100%);
    color: #d9e7f6;
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-branding {
    padding: 12px 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}

.dashboard-sidebar .brand {
    color: white;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 1.55rem;
}

.sidebar-branding p {
    color: rgba(217, 231, 246, 0.72);
    line-height: 1.7;
    font-size: 0.95rem;
}

.dashboard-sidebar nav {
    display: grid;
    gap: 18px;
}

.sidebar-group {
    display: grid;
    gap: 8px;
}

.sidebar-label {
    padding: 0 12px;
    color: rgba(217, 231, 246, 0.48);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.dashboard-sidebar form { margin: 0; }
.dashboard-sidebar nav a,
.sidebar-button {
    padding: 13px 14px;
    border-radius: 18px;
    color: #d9e7f6;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: 0.22s ease;
}
.sidebar-button { width: 100%; }
.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active,
.sidebar-button:hover {
    background: linear-gradient(135deg, rgba(59, 181, 74, 0.22), rgba(59, 181, 74, 0.08));
    color: white;
    transform: translateX(2px);
}

.dashboard-main {
    padding: 28px;
    display: grid;
    align-content: start;
    gap: 22px;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.dashboard-topbar h1 {
    margin-top: 12px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -0.05em;
}

.dashboard-topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-header { margin-bottom: 20px; }
.dashboard-header h1 { font-size: 2.4rem; letter-spacing: -0.04em; }
.dashboard-header p:last-child { margin-top: 8px; color: var(--muted); }
.dashboard-panel {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.editor-panel,
.preview-panel {
    min-width: 0;
}

.preview-panel {
    position: sticky;
    top: 24px;
}

.preview-header {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.preview-header h3 {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.dashboard-form {
    display: grid;
    gap: 18px;
}

.field-shell {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(242, 244, 247, 0.74));
    border: 1px solid rgba(11, 46, 89, 0.08);
}

.field-shell label {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.field-shell.is-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.field-shell.is-checkbox label {
    margin: 0;
    order: 2;
}

.field-shell.is-checkbox input {
    order: 1;
}

.field-help,
.dashboard-form .helptext {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.field-errors ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #b91c1c;
}

.has-error {
    border-color: rgba(185, 28, 28, 0.22);
    background: rgba(255, 250, 250, 0.92);
}

.dashboard-form ul,
.login-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #b91c1c;
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-heading p {
    color: var(--muted);
    margin-top: 6px;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.form-section-heading {
    padding-top: 10px;
}

.form-section-heading h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.form-section-heading p {
    color: var(--muted);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
th, td { padding: 16px 14px; text-align: left; vertical-align: top; }
th { font-size: 0.84rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
tbody tr {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(11, 46, 89, 0.06);
}
tbody td:first-child { border-radius: 16px 0 0 16px; }
tbody td:last-child { border-radius: 0 16px 16px 0; }
.row-actions { display: flex; gap: 14px; }
.row-actions a { color: var(--primary); font-weight: 700; }

.inline-formset { display: grid; gap: 18px; margin-bottom: 24px; }
.inline-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(11, 46, 89, 0.08);
}
.message-grid { display: grid; gap: 18px; }
.message-top { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.message-card p { margin-bottom: 12px; color: var(--muted); }
.status-pill.is-read { background: rgba(22, 34, 33, 0.08); color: var(--text); }
.narrow-panel { max-width: 680px; }

.site-preview-card,
.project-preview-card {
    display: grid;
    gap: 18px;
}

.site-preview-media,
.project-preview-media {
    min-height: 240px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 181, 74, 0.14), rgba(11, 46, 89, 0.05));
}

.site-preview-media img,
.project-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    min-height: 240px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
}

.site-preview-body {
    display: grid;
    gap: 16px;
}

.site-preview-body h2 {
    font-size: 2rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.site-preview-body p {
    color: var(--muted);
    line-height: 1.7;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-tags span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.92rem;
}

.preview-contact-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(11, 46, 89, 0.08);
}

.preview-contact-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.preview-contact-card p {
    margin-bottom: 8px;
}

.metric-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}
.login-card { width: min(480px, 100%); }
.login-card h1 {
    margin: 14px 0 22px;
    font-size: 2rem;
    letter-spacing: -0.04em;
}
.login-card form {
    display: grid;
    gap: 16px;
}
.login-card form p {
    margin: 0;
}

@media (max-width: 1080px) {
    .card-grid.thirds,
    .stats-grid,
    .metric-grid,
    .footer-grid,
    .hero-grid,
    .split-panel,
    .detail-hero,
    .contact-layout,
    .dashboard-shell,
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: relative;
        height: auto;
    }

    .preview-panel {
        position: static;
    }

    .contact-mini {
        padding-left: 0;
        border-left: 0;
        padding-top: 12px;
    }

    .about-panel,
    .contact-layout-enhanced {
        grid-template-columns: 1fr;
    }

    .footer-topline,
    .footer-bottomline {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 820px) {
    .nav-links { display: none; }
    .header-inner { justify-content: space-between; }
    .form-grid,
    .gallery-grid { grid-template-columns: 1fr; }
    .about-signals,
    .contact-info-grid { grid-template-columns: 1fr; }
    .hero-media,
    .detail-cover { min-height: 320px; }
    .dashboard-main { padding: 18px; }
    .dashboard-topbar {
        padding: 20px;
        align-items: start;
        flex-direction: column;
    }

    .about-panel,
    .footer-shell,
    .contact-form-panel,
    .contact-story-card {
        padding: 24px;
    }
}

.whatsapp-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.wa-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}

.wa-fab.open {
    transform: rotate(90deg);
}

.wa-popup {
    width: min(340px, calc(100vw - 40px));
    background: var(--surface-solid);
    border: 1px solid rgba(22, 34, 33, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(22, 34, 33, 0.22);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: wa-pop 0.25s ease;
}

.wa-popup.open {
    display: flex;
}

@keyframes wa-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-header-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.wa-header-copy strong {
    font-size: 15px;
    font-weight: 700;
}

.wa-header-copy span {
    font-size: 12px;
    opacity: 0.9;
}

.wa-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.wa-close:hover {
    opacity: 1;
}

.wa-body {
    padding: 14px 16px;
}

.wa-bubble {
    background: #e7f8ee;
    color: var(--text);
    border-radius: 4px 16px 16px 16px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
}

.wa-form {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(22, 34, 33, 0.08);
}

.wa-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(22, 34, 33, 0.18);
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface-muted);
    outline: none;
}

.wa-form input:focus {
    border-color: var(--primary);
    background: var(--surface-solid);
}

.wa-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    transition: background 0.15s ease, transform 0.15s ease;
}

.wa-send:hover {
    background: #1db959;
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .whatsapp-widget {
        right: 16px;
        bottom: 16px;
    }

    .wa-fab {
        width: 54px;
        height: 54px;
    }
}

/* ============ Dark mode ============ */
html.dark {
    color-scheme: dark;
    --bg: #0a1322;
    --surface: rgba(20, 33, 54, 0.78);
    --surface-solid: #142136;
    --surface-muted: #101c30;
    --stroke: rgba(255, 255, 255, 0.09);
    --text: #e8eef7;
    --muted: #9aa9bd;
    --primary: #6a9cdb;
    --primary-bright: #4cc25b;
    --secondary: #8fb5e8;
    --dark-green: #6fd17d;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

html.dark body {
    background:
        radial-gradient(circle at top right, rgba(76, 194, 91, 0.1), transparent 30%),
        radial-gradient(circle at left center, rgba(106, 156, 219, 0.12), transparent 28%),
        linear-gradient(180deg, #0d1830 0%, #0a1322 100%);
}

html.dark body::before {
    background-image: radial-gradient(rgba(148, 190, 240, 0.06) 1px, transparent 1px);
}

html.dark .site-header {
    background: rgba(13, 24, 40, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark .site-header::after {
    background: linear-gradient(90deg, transparent, rgba(76, 194, 91, 0.25), transparent);
}

html.dark .button-secondary,
html.dark .theme-toggle {
    background: rgba(20, 33, 54, 0.7);
    border-color: rgba(255, 255, 255, 0.14);
}

html.dark .theme-toggle:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

html.dark .feature-list li,
html.dark .tag-list span,
html.dark .about-signals article,
html.dark .about-floating-card,
html.dark .contact-story-card,
html.dark .contact-field,
html.dark .inline-card,
html.dark .preview-contact-card {
    background: rgba(20, 33, 54, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .soft-tag,
html.dark .about-mini-points span,
html.dark .footer-badges span,
html.dark .contact-story-points span,
html.dark .preview-tags span {
    background: rgba(20, 33, 54, 0.85);
    color: var(--secondary);
}

html.dark .placeholder-art {
    background: linear-gradient(135deg, rgba(76, 194, 91, 0.1), rgba(106, 156, 219, 0.06));
}

html.dark .about-panel::before {
    background: rgba(76, 194, 91, 0.1);
}

html.dark .about-panel::after {
    background: rgba(106, 156, 219, 0.12);
}

html.dark .contact-mini {
    border-left-color: rgba(255, 255, 255, 0.12);
}

html.dark .form-input,
html.dark .file-input,
html.dark textarea,
html.dark select,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="url"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark input[type="tel"] {
    background: rgba(16, 28, 48, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

html.dark .contact-field textarea,
html.dark .contact-field input,
html.dark .contact-field select {
    background: rgba(16, 28, 48, 0.95);
}

html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
    border-color: rgba(76, 194, 91, 0.5);
    box-shadow: 0 0 0 4px rgba(76, 194, 91, 0.14);
}

html.dark .flash-message {
    background: rgba(76, 194, 91, 0.16);
    color: var(--dark-green);
}

html.dark .footer-topline {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark .dashboard-body {
    background:
        radial-gradient(circle at top left, rgba(76, 194, 91, 0.08), transparent 22%),
        linear-gradient(180deg, #0d1830 0%, #0a1322 100%);
}

html.dark .dashboard-topbar,
html.dark .dashboard-panel {
    background: rgba(20, 33, 54, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .field-shell {
    background: linear-gradient(180deg, rgba(20, 33, 54, 0.8), rgba(16, 28, 48, 0.8));
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .has-error {
    background: rgba(120, 30, 30, 0.35);
}

html.dark tbody tr {
    background: rgba(20, 33, 54, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html.dark .status-pill.is-read {
    background: rgba(232, 238, 247, 0.1);
}

html.dark .site-preview-media,
html.dark .project-preview-media {
    background: linear-gradient(135deg, rgba(76, 194, 91, 0.12), rgba(106, 156, 219, 0.08));
}

html.dark .wa-popup {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

html.dark .wa-form {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark .wa-form input {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(16, 28, 48, 0.9);
}

html.dark .wa-bubble {
    background: rgba(76, 194, 91, 0.14);
}
