:root {
    --primary: var(--primary-color, #0B2C8F);
    --primary-dark: var(--primary-dark-color, #081830);
    --secondary: var(--secondary-color, #081830);
    --secondary-dark: var(--secondary-dark-color, #081830);
    --accent: var(--accent-color, #F2186A);
    --accent2: var(--accent-orange-color, #FF8C1A);
    --navy: var(--secondary-color, #081830);
    --ink: var(--text-color, #081830);
    --muted: var(--muted-color, #6B7280);
    --text: var(--text-color, #081830);
    --text-light: var(--muted-color, #6B7280);
    --background: var(--background-color, #F8FAFC);
    --surface: var(--surface-color, #FFFFFF);
    --surface-alt: var(--surface-alt-color, #F8FAFC);
    --soft: var(--surface-alt-color, #F8FAFC);
    --border: var(--border-color, #E5EAF2);
    --success: var(--success-color, #2E7D32);
    --warning: var(--warning-color, #FF8C1A);
    --danger: var(--danger-color, #FF4B45);
    --brand-gradient: linear-gradient(135deg, #0B2C8F 0%, #F2186A 55%, #FF4B45 80%, #FF8C1A 100%);
    /* UI: Reduced global shadow from heavy single shadow to softer layered shadow */
    --shadow: 0 1px 3px rgba(8, 24, 48, 0.04), 0 6px 16px rgba(8, 24, 48, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* UI: Improved font rendering for crisper typography */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.iframe-body {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* UI: Improved line-height for better readability */
    line-height: 1.6;
}

img,
svg,
canvas,
video,
iframe {
    max-width: 100%;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.iframe-shell {
    display: block;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}

.iframe-container {
    width: min(1600px, calc(100% - 32px));
    margin-inline: auto;
}

.container,
.container-fluid {
    min-width: 0;
}

.iframe-container>*,
.row>*,
.col,
[class*="col-"] {
    min-width: 0;
}

.dashboard-width {
    width: min(100% - 32px, 1500px);
    max-width: 1500px;
    margin-inline: auto;
    padding-inline: 0 !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(8, 24, 48, 0.12);
    box-shadow: 0 10px 24px rgba(8, 24, 48, 0.08);
    backdrop-filter: blur(18px);
}

.site-header .navbar {
    width: 100%;
    min-height: 72px;
    padding: 0;
}

.site-header .iframe-container {
    display: flex;
    flex-wrap: nowrap;
}

.site-header .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 1.22rem;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--brand-gradient);
    font-weight: 800;
}

.small-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.navbar-nav {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    margin-left: auto;
}

.nav-link {
    color: #18324b;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.68rem 0.9rem;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-dark);
    background: rgba(30, 96, 190, 0.12);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.nav-username {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.88rem;
}

.nav-actions form {
    margin: 0;
}

.nav-actions .btn {
    white-space: nowrap;
}

.nav-logout-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.nav-logout-button:hover,
.nav-logout-button:focus {
    color: var(--primary-dark);
}

.user-menu-toggle {
    border: 0;
    background: rgba(30, 96, 190, 0.1);
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
}

.user-menu .dropdown-menu {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.user-menu .dropdown-item {
    font-weight: 700;
}

.user-chip {
    max-width: 150px;
    overflow: hidden;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(30, 96, 190, 0.1);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.83rem;
    font-weight: 700;
}

.btn {
    border-radius: 11px;
    font-weight: 700;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--brand-gradient);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--secondary-dark);
    background: var(--secondary-dark);
}

.btn-ghost-light {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover {
    color: var(--navy);
    background: white;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 98px;
    color: white;
    background: var(--brand-gradient);
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
}

.hero-glow-one {
    top: -180px;
    right: 18%;
    background: var(--accent-color);
}

.hero-glow-two {
    bottom: -220px;
    left: 8%;
    background: var(--primary-color);
}

.hero-grid,
.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    min-width: 0;
}

.hero-copy h1 {
    margin: 18px 0;
    /* max-width: 720px; */
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-copy h1 span {
    color: var(--accent-color);
}

.hero-copy>p {
    max-width: 1250px;
    color: var(--surface-alt-color);
    font-size: 1.15rem;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-hero .hero-badge {
    color: var(--surface-alt-color);
    letter-spacing: 0.05em;
    text-transform: none;
}

.hero-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.hero-copy-centered {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.hero-copy-centered h1 {
    margin-inline: auto;
}

.hero-copy-centered>p {
    margin-inline: auto;
}

.hero-copy-centered .availability-fields,
.hero-copy-centered .availability-band,
.hero-copy-centered .availability-result {
    margin-inline: auto;
}

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

.hero-copy-centered .hero-trust {
    justify-content: center;
}

.hero-actions,
.hero-trust,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin: 30px 0;
}

.hero-trust {
    color: var(--surface-alt-color);
    font-size: 0.86rem;
}

.hero-trust span::before {
    content: "✓";
    margin-right: 6px;
    color: var(--accent-color);
}

.availability-band {
    margin-bottom: 22px;
}

.availability-search {
    margin: 0;
}

.availability-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 10px;
    max-width: 760px;
    padding: 10px;
    border: 1px solid rgba(var(--light-blue-rgb), 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.98), rgba(var(--primary-rgb), 0.96));
    box-shadow: 0 22px 55px rgba(var(--primary-rgb), 0.2);
    animation: availabilityDrop 0.62s cubic-bezier(0.2, 0.85, 0.28, 1) both;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.availability-fields:focus-within {
    border-color: rgba(var(--accent-rgb), 0.88);
    box-shadow: 0 24px 64px rgba(var(--primary-rgb), 0.24), 0 0 0 4px rgba(var(--accent-rgb), 0.16);
    transform: translateY(-2px);
}

.availability-field {
    min-width: 0;
    padding: 0 8px;
    border-radius: 7px;
    transition: background 0.2s ease;
}

.availability-field:focus-within {
    background: rgba(var(--primary-rgb), 0.72);
}

.availability-field label {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.availability-fields .form-control {
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.availability-fields .form-control::placeholder {
    color: var(--muted-color);
}

.availability-fields .form-control:focus {
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.availability-clear {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    white-space: nowrap;
    background: var(--surface-alt-color);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.availability-clear:hover,
.availability-clear:focus {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.28);
    transform: translateY(-1px);
}

.availability-result {
    margin-top: 12px;
    max-width: 760px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    animation: availabilityResultIn 0.32s ease both;
}

.availability-result-success {
    border-color: rgba(94, 234, 212, 0.75);
}

.availability-result-error {
    border-color: rgba(254, 202, 202, 0.8);
}

.availability-shop-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.availability-shop-list article {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    animation: availabilityShopIn 0.28s ease both;
    transition: transform 0.18s ease, background 0.18s ease;
}

.availability-shop-list article:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.availability-shop-list span,
.availability-shop-list small {
    display: block;
    overflow-wrap: anywhere;
}

.availability-shop-list small {
    color: var(--surface-alt-color);
}

.product-preview {
    position: relative;
}

.preview-window {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px 16px;
}

.preview-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted-color);
}

.preview-bar small {
    margin-left: auto;
    color: var(--surface-alt-color);
}

.preview-body {
    padding: 20px;
    border-radius: 16px;
    color: var(--ink);
    background: white;
}

.preview-upload {
    display: grid;
    place-items: center;
    padding: 28px;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    background: var(--surface-alt-color);
}

.preview-upload small,
.preview-file small {
    display: block;
    color: var(--muted);
}

.preview-upload-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 13px;
    color: white;
    background: var(--primary);
    font-size: 1.4rem;
}

.preview-file,
.preview-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 0;
}

.preview-file>div {
    min-width: 0;
}

.preview-file strong,
.preview-file small {
    overflow-wrap: anywhere;
}

.preview-file b {
    margin-left: auto;
    color: var(--primary);
}

.preview-file-icon {
    padding: 9px 7px;
    border-radius: 8px;
    color: white;
    background: var(--danger-color);
    font-size: 0.72rem;
    font-weight: 800;
}

.preview-summary {
    justify-content: space-between;
}

.preview-button {
    margin-top: 14px;
    padding: 13px;
    border-radius: 12px;
    color: white;
    background: var(--primary);
    text-align: center;
    font-weight: 800;
}

.home-flow-mini {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
}

.home-flow-mini span {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.floating-status {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 14px;
    color: var(--ink);
    background: white;
    box-shadow: var(--shadow);
}

.floating-status>span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--primary);
}

.floating-status small {
    display: block;
    color: var(--muted);
}

.status-payment {
    left: -35px;
    bottom: 55px;
}

.status-agent {
    top: 65px;
    right: -45px;
}

.stats-strip {
    background: white;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 25px 0;
}

.stats-grid>div {
    padding: 8px 20px;
    border-right: 1px solid var(--border);
}

.stats-grid>div:last-child {
    border: 0;
}

.stats-grid strong,
.stats-grid span {
    display: block;
    text-align: center;
}

.stats-grid span {
    color: var(--muted);
    font-size: 0.83rem;
}

.section-space {
    padding: 82px 0;
}

.soft-section {
    padding: 72px 0;
    background: var(--surface-alt-color);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.page-heading h1,
.process-copy h2,
.cta-inner h2 {
    margin: 10px 0;
    color: var(--navy);
    letter-spacing: 0;
}

.section-heading p,
.page-heading p,
.process-copy p {
    color: var(--muted);
}

.feature-grid,
.service-grid,
.portal-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card,
.service-card,
.contact-form-card,
.contact-info-card,
.location-card,
.workflow-card,
.portal-entry-card {
    padding: 25px;
    /* UI: Reduced border visibility for cleaner card look */
    border: 1px solid rgba(229, 234, 242, 0.5);
    border-radius: 19px;
    background: white;
    /* UI: Softer card shadow */
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.05);
    min-width: 0;
    overflow-wrap: anywhere;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover,
.service-card:hover,
.contact-form-card:hover,
.contact-info-card:hover,
.location-card:hover,
.workflow-card:hover,
.portal-entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.feature-card p,
.service-card p {
    color: var(--muted);
}

.feature-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 13px;
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-dark);
    font-weight: 800;
}

.icon-purple {
    color: var(--secondary-color);
    background: rgba(var(--primary-rgb), 0.16);
}

.icon-blue {
    color: var(--secondary-dark-color);
    background: rgba(var(--secondary-rgb), 0.08);
}

.icon-green {
    color: var(--success-color);
    background: rgba(46, 125, 50, 0.12);
}

.icon-orange {
    color: var(--warning-color);
    background: rgba(184, 134, 11, 0.14);
}

.process-section {
    padding: 84px 0;
    background: var(--surface-alt-color);
}

.process-list {
    display: grid;
    gap: 12px;
}

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

.process-item,
.workflow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.process-item>span,
.workflow-step>span {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--primary);
    font-weight: 800;
}

.process-item small,
.workflow-step small {
    display: block;
    color: var(--muted);
}

.workflow-card {
    position: relative;
    padding-top: 72px;
    min-height: 100%;
}

.workflow-card::after {
    content: "";
    position: absolute;
    top: 42px;
    right: -18px;
    width: 18px;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.18);
}

.workflow-card:last-child::after {
    display: none;
}

.workflow-icon {
    position: absolute;
    top: 22px;
    left: 25px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    font-weight: 800;
    font-size: 0.82rem;
}

.workflow-card h3,
.print-option-card h3 {
    color: var(--navy);
}

.workflow-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.workflow-cta {
    margin-top: 42px;
    text-align: center;
}

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

.benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.benefit-card span {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.14);
    font-weight: 900;
}

.benefit-card strong {
    color: var(--ink);
    line-height: 1.25;
}

.print-options-section {
    background: white;
}

.print-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nearby-shop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.shop-card,
.shop-list-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    min-width: 0;
    overflow-wrap: anywhere;
    box-shadow: none;
}

.shop-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1rem;
}

.shop-card p {
    margin-bottom: 12px;
    color: var(--muted);
}

.shop-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.shop-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.shop-card dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.shop-card dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.shop-list {
    display: grid;
    gap: 12px;
}

.shop-list-item {
    display: grid;
    gap: 4px;
}

.shop-list-item small {
    color: var(--muted);
}

.home-shops-section {
    background: white;
}

.profile-readonly {
    user-select: none;
}

.profile-readonly .detail-row {
    pointer-events: none;
}

.print-option-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-alt-color);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.print-option-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.print-option-card li {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    background: var(--surface);
    font-weight: 700;
}

.cta-band {
    padding: 58px 0;
    color: white;
    background: linear-gradient(110deg, var(--secondary-color), var(--primary-dark-color));
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.cta-inner h2 {
    color: white;
}

.privacy-trust {
    padding: 72px 0;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(255, 255, 255, 0) 42%),
        #F8FAFC;
}

.privacy-trust-container {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.privacy-trust-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--surface-alt-rgb), 0.92)),
        white;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.11);
    animation: privacyCardIn 0.7s cubic-bezier(0.2, 0.85, 0.28, 1) both;
}

.privacy-trust-card::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 34%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: translateX(-130%) skewX(-12deg);
    animation: privacyShine 4.8s ease-in-out 0.8s infinite;
    pointer-events: none;
}

.privacy-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--primary-dark-color), var(--secondary-dark-color));
    box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.24);
    font-size: 2rem;
    animation: privacyIconFloat 3.2s ease-in-out infinite;
}

.privacy-copy {
    position: relative;
    z-index: 1;
}

.privacy-copy .eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary-dark-color);
    font-weight: 900;
}

.privacy-copy h2 {
    max-width: 720px;
    margin-bottom: 12px;
    color: var(--ink);
}

.privacy-copy p {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.trust-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.trust-badge span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 999px;
    color: var(--primary-dark-color);
    background: rgba(var(--surface-rgb), 0.78);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.08);
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.trust-badge span:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.14);
}

.portal-entry-section {
    padding: 75px 0;
}

.portal-entry-card {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.portal-entry-card>span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--navy);
    font-weight: 800;
}

.portal-entry-card small {
    display: block;
    color: var(--muted);
}

.portal-entry-card b {
    margin-left: auto;
}

.portal-entry-card.highlighted {
    border-color: rgba(var(--primary-rgb), 0.28);
    background: rgba(var(--primary-rgb), 0.12);
}

.page-hero {
    padding: 65px 0;
    color: white;
    background: linear-gradient(125deg, var(--secondary-color), var(--primary-dark-color));
}

.page-hero.compact {
    padding: 50px 0;
}

.page-hero h1 {
    max-width: 800px;
    margin: 14px 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
    color: var(--surface-alt-color);
}

.story-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    color: var(--text-color);
    font-weight: 700;
}

.form-control,
.form-select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    border-color: var(--border-color);
    border-radius: 10px;
}

button,
.btn,
.badge,
.status-badge {
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    white-space: normal;
}

textarea.form-control {
    resize: vertical;
}

.card,
.dashboard-card {
    max-width: 100%;
    min-width: 0;
}

.live-new-row {
    animation: liveRowHighlight 3s ease-out;
}

@keyframes liveRowHighlight {
    0% {
        box-shadow: inset 4px 0 0 var(--primary);
        background: rgba(var(--success-rgb), 0.12);
    }

    100% {
        box-shadow: inset 0 0 0 transparent;
        background: transparent;
    }
}

.service-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-pill-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #E5EAF2;
    border-radius: 999px;
    color: var(--primary-dark-color);
    background: rgba(var(--primary-rgb), 0.14);
    font-weight: 800;
}

.service-pill-list-sm span {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.82rem;
}

.service-pill-list .service-pill-muted {
    color: var(--muted);
    border-color: var(--border);
    background: var(--soft);
}

.service-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-toggle-card {
    display: flex;
    gap: 12px;
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-color);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-toggle-card:hover {
    transform: translateY(-2px);
    border-color: #F2186A;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.service-toggle-card input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
}

.service-toggle-card strong,
.service-toggle-card small {
    display: block;
}

.service-toggle-card small {
    margin-top: 6px;
    color: var(--muted);
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
}

.table th,
.table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.14);
}

/* UI: Added focus-visible outlines for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.15);
}

.contact-service-grid {
    grid-template-columns: repeat(3, 1fr);
}

.support-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.support-topic-card,
.contact-policy-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.support-topic-card {
    min-height: 100%;
}

.support-topic-card>span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--primary);
    font-weight: 800;
}

.support-topic-card h3,
.contact-policy-card h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 1.12rem;
}

.support-topic-card p,
.contact-policy-card p,
.contact-support-text {
    color: var(--muted);
}

.input-icon-group {
    position: relative;
}

.input-icon-group .form-control {
    padding-left: 42px;
}

.textarea-icon-group .input-icon {
    top: 18px;
    transform: none;
}

.btn-submit {
    min-height: 48px;
    padding-inline: 28px;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-badge {
    display: grid;
    flex: 0 0 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.14);
    font-weight: 800;
}

.info-row strong,
.info-row a,
.info-row span:not(.info-badge) {
    display: block;
}

.whatsapp-btn {
    width: 100%;
    color: white;
    border-color: var(--primary-dark-color);
    background: var(--primary-dark-color);
}

.whatsapp-btn:hover {
    color: white;
    border-color: var(--primary-dark-color);
    background: var(--primary-dark-color);
}

.contact-policy-card {
    box-shadow: none;
}

.site-footer {
    flex: 0 0 auto;
    margin-top: 80px;
    color: var(--surface-alt-color);
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--light-blue-rgb), 0)),
        #081830;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 54px 0 36px;
}

.footer-company p,
.footer-section li,
.footer-contact address {
    color: var(--surface-alt-color);
    font-size: 0.94rem;
    line-height: 1.7;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.08rem;
    font-weight: 800;
}

.footer-tagline {
    margin: 18px 0 8px;
    color: var(--accent-color) !important;
    font-weight: 800;
}

.footer-section h2 {
    margin: 4px 0 16px;
    color: white;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-section ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section a {
    color: var(--surface-alt-color);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-contact address {
    display: grid;
    gap: 4px;
    margin: 0;
}

.footer-contact address span {
    margin-top: 8px;
    color: var(--muted-color);
    font-size: 0.73rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact address strong {
    color: var(--surface-alt-color);
    font-style: normal;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted-color);
    font-size: 0.88rem;
}

.footer-bottom a {
    color: white;
    font-weight: 800;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 190px)) auto auto;
    gap: 12px;
    align-items: center;
}

.admin-order-table {
    min-width: 980px;
}

.admin-order-table td,
.admin-order-table th {
    white-space: normal;
}

.admin-order-table .btn,
.admin-order-table .form-control,
.admin-order-table .form-select {
    min-width: 0;
}

.admin-order-table form.d-flex,
.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-order-table form.d-flex .form-select {
    flex: 1 1 160px;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: 170px repeat(5, minmax(120px, 1fr)) 100px 90px;
    gap: 10px;
    align-items: center;
}

.admin-active-check {
    margin: 0;
}

.admin-settings-form .form-check {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounts-filter {
    grid-template-columns: minmax(240px, 1fr) 190px auto auto;
}

.message-cell {
    min-width: 280px;
    max-width: 520px;
    white-space: normal;
}

.message-preview {
    min-width: 220px;
}

.account-edit-card {
    width: min(100%, 680px);
    margin-inline: auto;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.optional-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.agent-status-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--soft);
    min-width: 0;
}

.agent-status-form {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.agent-status-form .form-select {
    min-width: 0;
    width: min(100%, 210px);
}

.agent-file-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.agent-file-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.file-missing {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--danger-color);
    font-size: 0.82rem;
    font-weight: 700;
}

/* Agent dashboard shared stats */
.stat-card {
    border-radius: 16px;
    padding: 22px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(8,24,48,0.1);
}

.stat-card .stat-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.stat-card .stat-icon.blue { color: var(--primary-color); background: rgba(var(--primary-rgb), 0.1); }
.stat-card .stat-icon.orange { color: var(--warning-color); background: rgba(var(--warning-rgb), 0.1); }
.stat-card .stat-icon.green { color: var(--success-color); background: rgba(var(--success-rgb), 0.1); }
.stat-card .stat-icon.pink { color: var(--accent-color); background: rgba(var(--accent-rgb), 0.1); }
.stat-card .stat-value { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { display: block; margin-top: 3px; color: var(--muted); font-size: 0.84rem; }

.status-complete-note {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--primary-dark-color);
    background: rgba(var(--primary-rgb), 0.14);
    font-weight: 700;
}

.page-actions {
    justify-content: flex-end;
}

.page-heading,
.page-heading h1,
.page-heading p,
.metric-card,
.detail-row,
.summary-row {
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-row,
.summary-row {
    align-items: flex-start;
}

.detail-row strong,
.summary-row strong {
    text-align: right;
}

.message-stack {
    padding-top: 16px;
}

.message-stack .alert:last-child {
    margin-bottom: 0;
}

.fade-up {
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@keyframes availabilityDrop {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }

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

@keyframes availabilityResultIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

@keyframes availabilityShopIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes privacyCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

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

@keyframes privacyIconFloat {

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

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

@keyframes privacyShine {

    0%,
    55% {
        transform: translateX(-130%) skewX(-12deg);
    }

    78%,
    100% {
        transform: translateX(360%) skewX(-12deg);
    }
}

@media (max-width: 991px) {
    .site-header .navbar {
        min-height: 64px;
    }

    .site-header .iframe-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    .site-header .navbar-toggler {
        display: grid;
        width: 42px;
        height: 42px;
        padding: 0;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 11px;
        box-shadow: none;
    }

    .site-header .navbar-toggler:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.14);
    }

    .site-header .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 0 16px;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }

    .site-header .navbar-nav {
        width: 100%;
        flex: 0 0 100%;
        flex-direction: column;
        margin: 0 !important;
        align-items: stretch;
        gap: 3px;
    }

    .site-header .nav-link {
        width: 100%;
        padding: 0.7rem 0.8rem;
        border-radius: 9px;
        text-align: left;
    }

    .site-header .nav-link:hover,
    .site-header .nav-link.active {
        color: var(--primary-dark);
        background: rgba(var(--primary-rgb), 0.14);
    }

    .site-header .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
        margin: 3px 0 0 !important;
        padding-top: 0;
        border-top: 0;
    }

    .site-header .nav-actions form,
    .site-header .nav-actions .btn,
    .site-header .nav-actions .nav-logout-button {
        width: 100%;
    }

    .site-header .nav-actions .btn,
    .site-header .nav-actions .nav-logout-button {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
    }

    .site-header .nav-username {
        max-width: 110px;
        font-size: 0.82rem;
    }

    .site-header .user-chip {
        max-width: none;
        grid-column: 1 / -1;
        text-align: center;
    }

    .hero-grid,
    .process-grid,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-preview {
        max-width: 620px;
        margin: auto;
    }

    .status-payment {
        left: 8px;
    }

    .status-agent {
        right: 8px;
    }

    .feature-grid,
    .service-grid,
    .contact-service-grid,
    .support-topic-grid,
    .workflow-grid,
    .nearby-shop-grid,
    .benefit-grid,
    .portal-entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .print-options-grid {
        grid-template-columns: 1fr;
    }

    .workflow-card::after {
        display: none;
    }

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

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-filter-grid,
    .accounts-filter {
        grid-template-columns: 1fr 1fr;
    }

    .contact-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .iframe-container {
        width: min(100% - 24px, 1600px);
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header .brand {
        font-size: 1.08rem;
    }

    .site-header .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .site-header .user-chip {
        grid-column: auto;
    }

    .landing-hero {
        padding: 58px 0 72px;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 13vw, 3.2rem);
        line-height: 1.02;
    }

    .page-hero,
    .page-hero.compact {
        padding: 42px 0;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.08;
    }

    .section-space {
        padding: 54px 0;
    }

    .soft-section {
        padding: 52px 0;
    }

    .process-section {
        padding: 58px 0;
    }

    .cta-band {
        padding: 44px 0;
    }

    .privacy-trust {
        padding: 46px 0;
    }

    .privacy-trust-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .privacy-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        font-size: 1.55rem;
    }

    .trust-badge span {
        width: 100%;
        border-radius: 14px;
    }

    .service-toggle-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        flex: 1 1 100%;
    }

    .availability-fields {
        grid-template-columns: 1fr;
    }

    .availability-fields .btn {
        min-height: 48px;
    }

    .availability-shop-list {
        grid-template-columns: 1fr;
    }

    .floating-status {
        display: none;
    }

    .stats-grid,
    .feature-grid,
    .service-grid,
    .contact-service-grid,
    .support-topic-grid,
    .workflow-grid,
    .nearby-shop-grid,
    .benefit-grid,
    .portal-entry-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid>div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .feature-card,
    .service-card,
    .contact-form-card,
    .contact-info-card,
    .location-card,
    .workflow-card,
    .portal-entry-card,
    .support-topic-card,
    .contact-policy-card {
        padding: 20px;
        border-radius: 16px;
    }

    .workflow-card {
        padding-top: 66px;
    }

    .workflow-icon {
        top: 20px;
        left: 20px;
    }

    .home-flow-mini {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: auto;
    }

    .preview-body {
        padding: 16px;
    }

    .preview-file {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .preview-file b {
        margin-left: 0;
    }

    .process-item,
    .workflow-step {
        align-items: flex-start;
    }

    .detail-row,
    .summary-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-row strong,
    .summary-row strong {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 42px 0 28px;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .admin-filter-grid,
    .accounts-filter,
    .contact-filter-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-order-table {
        min-width: 760px;
    }

    .message-cell,
    .message-preview {
        min-width: 0;
        max-width: none;
    }

    .agent-status-action {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-status-form .form-select,
    .agent-status-form .btn {
        width: 100%;
    }

    .page-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-actions .btn {
        flex: 1 1 100%;
    }

    .metric-card {
        padding: 18px;
    }

    .metric-card strong {
        font-size: 1.45rem;
    }

    .empty-state,
    .receipt-sheet,
    .success-card {
        padding: 24px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .site-header .nav-link {
        padding-inline: 0.35rem;
        font-size: 0.88rem;
    }

    .site-header .nav-actions {
        gap: 0.4rem;
    }

    .site-header .nav-username {
        max-width: 130px;
    }

    .site-header .user-chip {
        display: none;
    }
}

.admin-page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 96px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
    min-width: 0;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-sidebar-link:hover {
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb, 11, 44, 143), 0.06);
}

.admin-sidebar-link.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb, 11, 44, 143), 0.1);
    font-weight: 600;
}

.admin-sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .admin-page-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar-nav {
        flex-direction: row;
        gap: 4px;
        min-width: max-content;
    }

    .admin-sidebar-link {
        padding: 8px 14px;
        font-size: 0.84rem;
    }

    .admin-sidebar-link i {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .admin-sidebar {
        padding: 8px;
    }

    .admin-sidebar-link {
        padding: 7px 10px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .admin-sidebar-link i {
        font-size: 0.95rem;
        width: 18px;
    }
}

@media print {
    body.iframe-body {
        background: white;
    }

    .site-header,
    .site-footer {
        display: none !important;
    }
}

/* ── Admin Mini Sidebar ─────────────────────────────────── */
.admin-mini-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mini-sidebar-link:hover {
    color: var(--primary);
    background: rgba(11, 44, 143, 0.06);
}

.mini-sidebar-link.active {
    color: var(--primary);
    background: rgba(11, 44, 143, 0.1);
    font-weight: 600;
}

.mini-sidebar-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* ── Avatar Initials ────────────────────────────────────── */
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── User Site: Brand Utilities ─────────────────────────── */
.btn-brand {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(11, 44, 143, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-brand:hover {
    color: #fff;
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 44, 143, 0.3);
}
.btn-brand:active { transform: translateY(0); }

.btn-brand-outline {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    transition: all 0.2s ease;
}
.btn-brand-outline:hover {
    background: var(--primary);
    color: #fff;
}

.card-accent-left { border-left: 4px solid var(--accent); }
.card-accent-blue { border-left: 4px solid var(--primary); }
.card-accent-green { border-left: 4px solid var(--success); }
.card-accent-orange { border-left: 4px solid var(--warning); }

.metric-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.metric-card-icon.icon-blue { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.metric-card-icon.icon-pink { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.metric-card-icon.icon-green { background: rgba(var(--success-rgb), 0.1); color: var(--success); }
.metric-card-icon.icon-orange { background: rgba(var(--warning-rgb), 0.1); color: var(--warning); }

.gradient-hero-bg {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--accent-rgb), 0.04) 100%);
}

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

/* ── User Site: Status Accent Strips ────────────────────── */
.status-strip-placed { border-left: 3px solid var(--muted); }
.status-strip-assigned { border-left: 3px solid var(--primary); }
.status-strip-printing { border-left: 3px solid var(--accent); }
.status-strip-accepted, .status-strip-ready { border-left: 3px solid var(--success); }
.status-strip-delivered { border-left: 3px solid var(--success); }
.status-strip-cancelled { border-left: 3px solid var(--danger); }

/* ── User Site: Table Row Hover ─────────────────────────── */
.user-orders-table tbody tr {
    transition: background 0.15s ease;
}
.user-orders-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

/* ── User Site: Gradient Timeline ───────────────────────── */
.timeline-gradient {
    border-image: linear-gradient(to bottom, var(--primary), var(--accent), var(--success)) 1;
}

/* ── User Site: Success Animation ───────────────────────── */
@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.3); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(46, 125, 50, 0); }
}
.success-check-animated {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successCheckDraw {
    0% { stroke-dashoffset: 36; }
    100% { stroke-dashoffset: 0; }
}

/* ── User Site: Step Progress ───────────────────────────── */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    text-align: center;
}
.step-dot .step-circle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: white;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.step-dot.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.step-dot.done .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}
.step-dot .step-label {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.step-dot.active .step-label { color: var(--primary); font-weight: 700; }
.step-dot.done .step-label { color: var(--success); }
.step-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    min-width: 32px;
    margin-top: -18px;
}
.step-line.done { background: var(--success); }

/* ── User Site: Info Tile Accent ────────────────────────── */
.info-tile-accent {
    border-left: 3px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
}
.info-tile-accent.accent-pink { border-left-color: var(--accent); background: rgba(var(--accent-rgb), 0.03); }
.info-tile-accent.accent-green { border-left-color: var(--success); background: rgba(var(--success-rgb), 0.03); }
.info-tile-accent.accent-orange { border-left-color: var(--warning); background: rgba(var(--warning-rgb), 0.03); }

/* ── User Site: Empty State ─────────────────────────────── */
.empty-state-branded {
    padding: 48px 24px;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.02);
}
.empty-state-branded i {
    font-size: 2.5rem;
    color: var(--muted);
    margin-bottom: 12px;
    display: block;
}

/* ── User Site: Page Section Divider ────────────────────── */
.section-divider {
    height: 4px;
    border-radius: 2px;
    background: var(--brand-gradient);
    margin: 0 auto;
    max-width: 120px;
}

/* ── User Site: Mobile Improvements ─────────────────────── */
@media (max-width: 767px) {
    .metric-card-icon { width: 36px; height: 36px; font-size: 0.95rem; border-radius: 10px; }
    .step-dot .step-circle { width: 30px; height: 30px; font-size: 0.75rem; }
    .step-dot .step-label { font-size: 0.65rem; }
    .step-line { min-width: 20px; }
    .empty-state-branded { padding: 32px 16px; }
    .empty-state-branded i { font-size: 2rem; }
}
