:root {
    --background: #ffffff;
    --foreground: #0a0a0a;
    --primary: #3a4154;
    --primary-foreground: #ffffff;
    --secondary: #fecd0a;
    --secondary-foreground: #574600;
    --muted: #f5f5f5;
    --muted-foreground: #5f6675;
    --border: #d4d4d8;
    --danger: #dc2626;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--foreground);
    background: var(--background);
}

h1, h2, h3, h4 {
    font-family: "DM Sans", sans-serif;
    margin: 0 0 1rem;
}

p {
    color: var(--muted-foreground);
    line-height: 1.65;
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.text-brand {
    color: #fec80a;
}

.text-secondary-brand {
    color: var(--secondary);
}

.text-brand-foreground {
    color: var(--secondary-foreground);
}

.bg-brand {
    background: #fec80a;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.center {
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(212, 212, 216, 0.8);
    backdrop-filter: blur(12px);
}

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

.brand img,
.footer-logo {
    height: 48px;
    width: auto;
}

.site-navbar {
    min-height: 80px;
    padding: 0.75rem 0;
    justify-content: space-between;
}

.site-navbar .navbar-brand {
    margin-right: auto;
}

.site-navbar-toggler {
    border: 1px solid rgba(58, 65, 84, 0.18);
    border-radius: 14px;
    padding: 0.5rem 0.7rem;
    color: #3a4154;
    background: rgba(255, 255, 255, 0.92);
}

.site-navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(58, 65, 84, 0.16);
}

.site-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2858, 65, 84, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-nav-wrap {
    flex-grow: 0;
}

.main-nav-wrap .navbar-nav {
    margin-left: auto;
}

.main-nav-link {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    font-weight: 600;
    padding-left: 0;
    padding-right: 0;
}

.main-nav-link.active,
.main-nav-link:hover,
.main-nav-link:focus {
    color: var(--primary);
}

.main-nav-cta {
    margin-top: 0;
}

.admin-navbar {
    min-height: 76px;
    padding: 0.75rem 0;
}

.admin-nav-wrap {
    flex-grow: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.btn[disabled],
.btn.is-loading {
    opacity: 0.8;
    cursor: wait;
}

.btn-spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: button-spinner 0.7s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

.btn-small {
    padding: 0.7rem 1.05rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-outline {
    border-color: var(--border);
    color: var(--foreground);
    background: transparent;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3.35rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--primary);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(58, 65, 84, 0.24);
    outline-offset: 2px;
    border-radius: 999px;
}

.password-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}

.btn-outline.light {
    border-color: rgba(255, 255, 255, 0.32);
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(58, 65, 84, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.eyebrow-aqua {
    background: aquamarine;
}

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
    padding: 5rem 0;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stats strong {
    display: block;
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stats span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.section,
.page-hero {
    padding: 5rem 0;
}

.muted,
.page-hero {
    background: linear-gradient(135deg, rgba(58, 65, 84, 0.04), rgba(255, 255, 255, 1), rgba(37, 99, 235, 0.03));
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-head.center {
    display: block;
    text-align: center;
}

.three-cols,
.cards-grid,
.process-grid,
.gallery-grid,
.footer-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

.gallery-grid-large figure {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-grid-large figcaption {
    padding: 1rem 1.1rem;
    background: white;
    font-weight: 600;
}

.gallery-grid img {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.mini-card,
.service-card,
.process-grid article,
.placeholder-panel,
.admin-card {
    background: white;
    border: 1px solid rgba(212, 212, 216, 0.72);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.mini-card,
.process-grid article,
.placeholder-panel {
    padding: 1.5rem;
}

.service-card {
    overflow: hidden;
}

.service-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.5rem;
}

.process-grid article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.split.reverse .media-block {
    order: 2;
}

.media-block img,
.map-placeholder {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow);
    min-height: 360px;
}

.media-block img {
    object-fit: cover;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border: 1px dashed var(--border);
}

.feature-list,
.site-footer ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

.contact-card-compact {
    padding: 2rem;
}

.contact-stack {
    display: grid;
    gap: 1rem;
}

.contact-stack strong {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-family: "DM Sans", sans-serif;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.map-frame-wrap {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: white;
}

.map-frame-wrap iframe {
    display: block;
}

.cta {
    background: var(--primary);
    color: white;
}

.cta p,
.cta h2 {
    color: white;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(212, 212, 216, 0.85);
    background: rgba(245, 245, 245, 0.7);
    padding: 3.5rem 0 1.75rem;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 212, 216, 0.8);
}

.footer-bottom nav {
    display: flex;
    gap: 1rem;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(254, 205, 10, 0.14), transparent 20rem),
        linear-gradient(180deg, #f5f4ef 0%, #f8f7f2 100%);
    color: #0a0a0a;
}

.admin-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100dvh;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
    border-right: 1px solid rgba(58, 65, 84, 0.08);
}

.admin-sidebar-brand {
    padding: 0.15rem 0.25rem;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-sidebar-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
    background: #3a4154;
    color: #fecd0a;
    font-family: "DM Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(58, 65, 84, 0.2);
}

.admin-sidebar-logo-text {
    display: grid;
    gap: 0.15rem;
    color: #0a0a0a;
}

.admin-sidebar-logo-text strong {
    font-family: "DM Sans", sans-serif;
    font-size: 1.1rem;
}

.admin-sidebar-logo-text small {
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.admin-sidebar-collapse {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-sidebar-group {
    display: grid;
    gap: 0.7rem;
}

.admin-sidebar-title {
    padding: 0 0.45rem;
    color: rgba(10, 10, 10, 0.46);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.35rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: #3a4154;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-sidebar-link i {
    width: 1rem;
    text-align: center;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus {
    background: rgba(58, 65, 84, 0.08);
    color: #0a0a0a;
    transform: translateX(2px);
}

.admin-sidebar-link.is-active {
    background: linear-gradient(135deg, #3a4154, #2c3344);
    color: #fecd0a;
    box-shadow: 0 18px 36px rgba(58, 65, 84, 0.24);
}

.admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 0.85rem;
}

.admin-topbar-usercard strong {
    display: block;
    font-size: 0.95rem;
}

.admin-topbar-usercard small {
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.admin-sidebar-avatar,
.admin-topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #fecd0a;
    color: #0a0a0a;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
}

.admin-sidebar-link-logout {
    background: #0a0a0a;
    color: #ffffff;
}

.admin-sidebar-link-logout:hover,
.admin-sidebar-link-logout:focus {
    background: #3a4154;
    color: #fecd0a;
    transform: none;
}

.admin-sidebar-toggler {
    display: none;
}

@media (min-width: 981px) {
    .admin-sidebar-collapse.collapse {
        display: flex !important;
    }
}

.admin-main {
    min-width: 0;
    padding: 1.5rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(58, 65, 84, 0.08);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.admin-topbar-kicker {
    color: rgba(58, 65, 84, 0.7);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-topbar h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.admin-topbar-usercard {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.4rem 0.45rem 0.4rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(58, 65, 84, 0.1);
}

.admin-topbar-usercard-text {
    text-align: right;
}

.admin-main-content .section {
    padding: 0;
}

.admin-dashboard-section {
    display: grid;
    gap: 1.4rem;
}

.admin-dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-dashboard-hero h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.admin-dashboard-hero p {
    max-width: 42rem;
}

.admin-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-dashboard-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(58, 65, 84, 0.12);
    font-weight: 700;
    color: #3a4154;
}

.admin-dashboard-chip-accent {
    background: #fecd0a;
    border-color: rgba(254, 205, 10, 0.3);
    color: #0a0a0a;
}

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

.admin-stat-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.35rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(58, 65, 84, 0.08);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(58, 65, 84, 0.06);
}

.admin-stat-card span {
    color: var(--muted-foreground);
    font-weight: 600;
}

.admin-stat-card strong {
    font-family: "DM Sans", sans-serif;
    font-size: 2.35rem;
    line-height: 1;
    color: #0a0a0a;
}

.admin-stat-card small {
    color: var(--muted-foreground);
}

.admin-stat-card-accent {
    background: linear-gradient(135deg, #3a4154, #2d3241);
}

.admin-stat-card-accent span,
.admin-stat-card-accent strong,
.admin-stat-card-accent small {
    color: #ffffff;
}

.admin-dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.8fr);
    gap: 1rem;
}

.admin-dashboard-panel,
.admin-mini-panel {
    padding: 1.25rem;
}

.admin-toolbar-spread {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0;
}

.admin-toolbar-spread h3,
.admin-mini-panel h3 {
    margin-bottom: 0.25rem;
}

.admin-side-column {
    display: grid;
    gap: 1rem;
}

.admin-progress-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(58, 65, 84, 0.05);
}

.admin-progress-row strong {
    font-family: "DM Sans", sans-serif;
    font-size: 1.2rem;
}

.admin-mini-panel-dark {
    background: linear-gradient(160deg, #0a0a0a, #3a4154);
    color: #ffffff;
}

.admin-mini-panel-dark p,
.admin-mini-panel-dark h3 {
    color: #ffffff;
}

.admin-mini-panel-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(254, 205, 10, 0.16);
    color: #fecd0a;
    font-weight: 700;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-card {
    width: min(460px, 100%);
    padding: 2rem;
}

.alert {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 0 0 1rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.2);
    color: #166534;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.auth-alt-link {
    margin: 1.25rem 0 0;
    text-align: center;
}

.auth-alt-link a {
    color: var(--primary);
    font-weight: 700;
}

.auth-submit {
    width: 100%;
}

.stack-form .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    justify-self: start;
}

.stack-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stack-form .form-check-label {
    margin-bottom: 0;
    font-weight: 600;
}

.stack-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
}

.stack-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
    background: white;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: var(--border);
    padding: 0.85rem 1rem;
    font: inherit;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(58, 65, 84, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(58, 65, 84, 0.12);
}

.admin-form-card {
    width: 100%;
}

.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 1.5rem 0;
}

.admin-search {
    display: flex;
    gap: 0.75rem;
    width: min(560px, 100%);
}

.admin-search input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
    background: white;
}

.table-card {
    background: white;
    border: 1px solid rgba(58, 65, 84, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(58, 65, 84, 0.06);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 212, 216, 0.72);
    vertical-align: top;
}

.admin-table th {
    background: rgba(58, 65, 84, 0.06);
    font-family: "DM Sans", sans-serif;
    color: #3a4154;
}

.muted-text {
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-actions form {
    margin: 0;
}

.admin-action-icon {
    min-width: 2.4rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.admin-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(212, 212, 216, 0.72);
    box-shadow: var(--shadow);
    background: white;
}

.admin-image-panel {
    display: grid;
    gap: 1rem;
}

.admin-image-preview,
.admin-image-placeholder {
    width: 100%;
    min-height: 260px;
    border-radius: 20px;
    border: 1px solid rgba(212, 212, 216, 0.72);
    box-shadow: var(--shadow);
    background: white;
}

.admin-image-preview {
    object-fit: cover;
}

.admin-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    padding: 1.5rem;
}

.btn-danger-soft {
    border-color: rgba(220, 38, 38, 0.2);
    color: #991b1b;
}

.btn-danger-soft:hover {
    background: rgba(220, 38, 38, 0.06);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-recibida {
    background: rgba(58, 65, 84, 0.09);
    border-color: rgba(58, 65, 84, 0.14);
    color: #3a4154;
}

.status-en_proceso {
    background: rgba(254, 205, 10, 0.16);
    border-color: rgba(254, 205, 10, 0.28);
    color: #8a6900;
}

.status-lista {
    background: rgba(58, 65, 84, 0.14);
    border-color: rgba(58, 65, 84, 0.18);
    color: #1e2635;
}

.status-entregada {
    background: rgba(10, 10, 10, 0.1);
    border-color: rgba(10, 10, 10, 0.14);
    color: #0a0a0a;
}

.status-cancelada {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.order-form {
    display: grid;
    gap: 1.5rem;
}

.order-panel {
    background: white;
    border: 1px solid rgba(212, 212, 216, 0.72);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-panel-primary {
    background: linear-gradient(180deg, rgb(152 181 255 / 98%), rgb(139 160 219 / 92%));
    color: white;
}

.order-panel-primary p,
.order-panel-primary label {
    color: rgba(255, 255, 255, 0.82);
}

.order-panel-head {
    margin-bottom: 1.5rem;
}

.order-panel-head h2 {
    margin-bottom: 0.45rem;
}

.order-panel-teeth {
    padding-bottom: 1rem;
}

.order-panel-teeth .order-panel-head {
    margin-bottom: 0.9rem;
}

.order-panel-teeth .order-panel-head p {
    margin-bottom: 0;
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field label,
.block-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--foreground);
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font: inherit;
    background: white;
}

.order-panel-primary .field input {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.22);
}

.order-panel-primary .form-control,
.order-panel-primary .form-select {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.22);
}

.field textarea {
    resize: vertical;
}

.order-inline-field {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.order-inline-field .form-select {
    flex: 1;
}

.order-plus-button {
    min-width: 3rem;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

.field-error {
    margin: 0;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
}

.field-help {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.88rem;
}

.file-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted-foreground);
}

.file-list li + li {
    margin-top: 0.25rem;
}

.check-option {
    display: flex;
}

.check-tile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(245, 245, 245, 0.55);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 100%;
    width: 100%;
}

.check-tile:hover,
.tooth-box:hover .tooth-square {
    border-color: rgba(58, 65, 84, 0.34);
    background: rgba(58, 65, 84, 0.05);
}

.check-tile span {
    font-weight: 600;
    color: var(--foreground);
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.stack-block {
    display: grid;
    gap: 1rem;
}

.implant-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(212, 212, 216, 0.72);
    border-radius: 20px;
    background: rgba(245, 245, 245, 0.62);
}

.teeth-card {
    padding: 0;
    background: transparent;
    overflow: visible;
}

.teeth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.teeth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
    color: var(--primary);
}

.teeth-chart-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.teeth-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 34rem;
    background:
        linear-gradient(to right, transparent calc(50% - 2px), rgba(63, 63, 70, 0.95) calc(50% - 2px), rgba(63, 63, 70, 0.95) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(to bottom, transparent calc(50% - 2px), rgba(63, 63, 70, 0.95) calc(50% - 2px), rgba(63, 63, 70, 0.95) calc(50% + 2px), transparent calc(50% + 2px));
}

.teeth-quadrant {
    display: grid;
    grid-template-columns: repeat(8, minmax(2.25rem, 1fr));
    gap: 0.6rem;
    padding: 0.85rem 0.95rem;
}

.teeth-quadrant-left {
    padding-right: 1.2rem;
}

.teeth-quadrant-right {
    padding-left: 1.2rem;
}

.teeth-quadrant-lower {
    padding-top: 1.2rem;
}

.tooth-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.tooth-box-lower {
    flex-direction: column;
}

.tooth-number {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--foreground);
}

.tooth-checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.tooth-square {
    width: 1.7rem;
    height: 1.7rem;
    border: 2px solid rgba(113, 113, 122, 0.85);
    border-radius: 0.2rem;
    background: white;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tooth-checkbox:checked + .tooth-number + .tooth-square,
.tooth-box-lower .tooth-checkbox:checked + .tooth-square {
    border-color: var(--primary);
    background: rgba(7, 89, 133, 0.12);
    box-shadow: inset 0 0 0 0.3rem rgba(7, 89, 133, 0.18);
}

.tooth-checkbox:focus-visible + .tooth-number + .tooth-square,
.tooth-box-lower .tooth-checkbox:focus-visible + .tooth-square {
    outline: 3px solid rgba(14, 165, 233, 0.28);
    outline-offset: 2px;
}

.order-submit-card {
    display: grid;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 24px;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.order-submit-card p,
.order-submit-card h3 {
    color: white;
}

.order-submit {
    width: 100%;
}

@media (min-width: 1200px) {
    .order-submit-card {
        position: sticky;
        top: 110px;
    }
}

@media (max-width: 980px) {
    .cards-grid,
    .gallery-grid,
    .three-cols,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .main-nav-wrap {
        padding: 1rem 0 0.25rem;
    }

    .main-nav-wrap .navbar-nav {
        align-items: stretch !important;
        gap: 0.35rem;
    }

    .main-nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(212, 212, 216, 0.6);
    }

    .main-nav-cta {
        margin-top: 0.9rem;
        width: 100%;
    }

    .footer-bottom,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .stats {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(58, 65, 84, 0.08);
    }

    .admin-sidebar-toggler {
        display: inline-flex;
        width: fit-content;
        margin-left: auto;
    }

    .admin-sidebar-collapse:not(.show) {
        display: none;
    }

    .admin-topbar,
    .admin-dashboard-hero,
    .admin-toolbar-spread {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar-usercard {
        width: 100%;
        justify-content: space-between;
    }

    .admin-dashboard-grid,
    .admin-dashboard-panels {
        grid-template-columns: 1fr;
    }

    .order-inline-field {
        flex-direction: column;
    }

    .order-submit-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .auth-shell .auth-container,
    .auth-shell .container.narrow {
        width: min(100%, calc(100% - 0.75rem));
    }

    .auth-shell .page-hero .container.narrow,
    .page-hero.auth-shell .container.narrow {
        width: min(100%, calc(100% - 0.75rem));
    }

    .auth-shell .admin-card {
        padding: 1.35rem;
        border-radius: 20px;
    }

    .auth-shell .auth-submit {
        display: flex;
        width: 100%;
    }

    .order-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .admin-main {
        padding: 1rem 0.75rem 1.5rem;
    }

    .order-form {
        gap: 1rem;
    }

    .order-panel-head {
        margin-bottom: 1rem;
    }

    .order-panel-teeth {
        padding: 0.9rem 0.7rem;
    }

    .order-form .row {
        --bs-gutter-x: 0.85rem;
    }

    .order-form .row > * {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .check-tile {
        padding: 0.85rem 0.9rem;
    }

    .teeth-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
        margin-bottom: 0.7rem;
    }

    .teeth-chart {
        min-width: 27rem;
    }

    .teeth-quadrant {
        column-gap: 0.12rem;
        row-gap: 0.35rem;
        padding: 0.55rem 0.1rem;
        grid-template-columns: repeat(8, minmax(1.52rem, 1fr));
    }

    .teeth-quadrant-left {
        padding-right: 0.3rem;
    }

    .teeth-quadrant-right {
        padding-left: 0.3rem;
    }

    .teeth-quadrant-lower {
        padding-top: 0.45rem;
    }

    .tooth-box {
        gap: 0.2rem;
    }

    .tooth-number {
        font-size: 0.8rem;
    }

    .tooth-square {
        width: 1.05rem;
        height: 1.05rem;
    }
}
