:root {
    --primary: #4caf50;
    --primary-dark: #2e7d32;
    --secondary-yellow: #ffd54f;
    --secondary-blue: #4fc3f7;
    --secondary-pink: #f48fb1;
    --bg: #f5f5f5;
    --bg-soft: #ffffff;
    --text: #244329;
    --text-soft: #5c6f63;
    --line: rgba(76, 175, 80, 0.16);
    --shadow-soft: 0 16px 40px rgba(76, 175, 80, 0.12);
    --shadow-hover: 0 22px 48px rgba(79, 195, 247, 0.18);
    --radius-xl: 32px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #fcfdfb;
}

body {
    margin: 0;
    font-family: "Nunito", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 213, 79, 0.45), transparent 24%),
        radial-gradient(circle at top right, rgba(79, 195, 247, 0.28), transparent 22%),
        radial-gradient(circle at bottom left, rgba(244, 143, 177, 0.24), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.18)),
        radial-gradient(circle at 15% 16%, rgba(79, 195, 247, 0.18), transparent 16%),
        radial-gradient(circle at 88% 20%, rgba(244, 143, 177, 0.16), transparent 18%);
}

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

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

a:hover {
    text-decoration: none;
}

code {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(79, 195, 247, 0.12);
    font-family: Consolas, "Courier New", monospace;
    color: #196b8d;
}

.container {
    width: min(1100px, calc(100% - 28px));
    margin-inline: auto;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

.title,
.title-sm,
.title-xs {
    margin: 0;
    font-family: "Poppins", "Nunito", sans-serif;
    color: var(--primary-dark);
    line-height: 1.15;
}

.title {
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.title-sm {
    font-size: 1.35rem;
}

.title-xs {
    font-size: 1.05rem;
}

.subtitle {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.hero-title {
    margin: 0;
    max-width: 18ch;
    font-family: "Poppins", "Nunito", sans-serif;
    font-size: clamp(1.75rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

.hero-subtitle {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #66756d;
    line-height: 1.5;
}

.hero-description {
    margin: 0;
    max-width: 64ch;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.site-header {
    padding: 22px 0 12px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 195, 247, 0.16);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.navbar-clean {
    padding: 14px 18px;
    border-radius: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-media,
.public-brand-media,
.login-logo-wrap,
.logo-qr-wrap,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-navbar {
    height: 40px;
    width: auto;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.logo-login {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.16);
}

.logo-public {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
}

.logo-powered {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-footer {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-qr {
    width: 40px;
    height: 40px;
    margin-top: 10px;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0.8;
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
}

.navbar-fallback {
    min-height: 40px;
}

.login-fallback {
    min-width: 120px;
    min-height: 90px;
}

.public-fallback,
.powered-fallback,
.footer-fallback,
.qr-fallback {
    min-height: 34px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.brand-copy span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.navbar-actions,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar-actions {
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
}

.navbar-logout,
.nav-links a {
    padding: 11px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.16), rgba(255, 213, 79, 0.22));
    color: var(--primary-dark);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-logout {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 195, 247, 0.18);
    box-shadow: 0 8px 18px rgba(79, 195, 247, 0.1);
}

.navbar-logout:hover,
.nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 195, 247, 0.16);
}

.nav-logout {
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.2), rgba(255, 213, 79, 0.22)) !important;
}

.navbar-logout-subtle {
    padding-inline: 14px;
    font-size: 0.92rem;
}

.notification-shell {
    position: relative;
}

.notification-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(79, 195, 247, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(79, 195, 247, 0.1);
    color: var(--primary-dark);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.notification-toggle:hover,
.notification-toggle[aria-expanded="true"] {
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.24);
    box-shadow: 0 18px 32px rgba(79, 195, 247, 0.18);
}

.notification-toggle-icon {
    width: 22px;
    height: 22px;
}

.notification-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b7a, #ff8f70);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(255, 107, 122, 0.28);
}

.notification-badge.is-hidden {
    display: none;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(420px, calc(100vw - 28px));
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(79, 195, 247, 0.14);
    box-shadow: 0 28px 42px rgba(36, 67, 41, 0.18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: 30;
}

@supports (-webkit-touch-callout: none) {
    html {
        min-height: 100%;
    }

    body {
        min-height: -webkit-fill-available;
    }

    .site-bg {
        display: none;
    }
}

.notification-panel-head,
.notification-panel-foot,
.notification-card-head,
.notification-card-actions,
.notification-meta-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-panel-head strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Poppins", sans-serif;
    color: var(--primary-dark);
    font-size: 1rem;
}

.notification-panel-head p,
.notification-panel-empty p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
    font-size: 0.9rem;
}

.notification-panel-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    margin: 16px 0 14px;
    padding-right: 4px;
}

.notification-panel-empty {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.notification-panel-empty strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.notification-panel-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(79, 195, 247, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.05));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    color: inherit;
    text-decoration: none;
}

.notification-panel-item:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.22);
    box-shadow: 0 12px 24px rgba(79, 195, 247, 0.14);
}

.notification-panel-item.is-unread {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 213, 79, 0.12));
    border-color: rgba(255, 213, 79, 0.24);
}

.notification-panel-icon,
.notification-card-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px rgba(36, 67, 41, 0.08);
}

.notification-tone-soft {
    background: linear-gradient(135deg, rgba(247, 244, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.notification-tone-blue {
    background: linear-gradient(135deg, rgba(227, 247, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.notification-tone-yellow {
    background: linear-gradient(135deg, rgba(255, 244, 199, 0.96), rgba(255, 255, 255, 0.98));
}

.notification-tone-green {
    background: linear-gradient(135deg, rgba(214, 247, 217, 0.96), rgba(255, 255, 255, 0.98));
}

.notification-tone-mint {
    background: linear-gradient(135deg, rgba(224, 247, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.notification-tone-pink {
    background: linear-gradient(135deg, rgba(255, 231, 240, 0.96), rgba(255, 255, 255, 0.98));
}

.notification-panel-content,
.notification-card-body {
    display: grid;
    gap: 8px;
}

.notification-panel-meta,
.notification-time {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.notification-panel-meta {
    display: grid;
    gap: 4px;
}

.notification-panel-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.notification-panel-chip {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
}

.notification-panel-title,
.notification-card-title {
    margin: 0;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    line-height: 1.35;
}

.notification-panel-title {
    font-size: 0.98rem;
}

.notification-card-title {
    font-size: 1.08rem;
}

.notification-panel-message,
.notification-card-message {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.notification-panel-pet,
.notification-pet-name {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 800;
}

.notification-action-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.notification-action-link:hover {
    text-decoration: underline;
}

.table-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.table-map-link.is-approx {
    color: #8a6a26;
}

.table-map-note {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.btn-sm {
    padding: 10px 14px;
    font-size: 0.88rem;
}

.notification-feed {
    display: grid;
    gap: 14px;
}

.notification-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(79, 195, 247, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.04));
}

.notification-card.is-unread {
    border-color: rgba(255, 213, 79, 0.26);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 213, 79, 0.12));
}

.notification-card-head {
    align-items: flex-start;
}

.notification-card-actions {
    flex-wrap: wrap;
}

.notification-meta-line {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.notification-type-badge {
    font-size: 0.78rem;
}

.notification-filter-group {
    justify-content: flex-end;
}

.page-shell {
    display: grid;
    gap: 20px;
    padding: 8px 0 40px;
}

.hero-shell,
.friendly-hero,
.detail-hero,
.summary-card,
.section-card {
    padding: 24px;
}

.hero-shell,
.friendly-hero,
.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 24px;
    align-items: center;
}

.hero-content {
    display: grid;
    gap: 14px;
}

.dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.dashboard-hero-content {
    gap: 10px;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.18), rgba(255, 213, 79, 0.28));
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.85rem;
}

.dashboard-hero .hero-badge {
    padding: 7px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.hero-logo,
.section-logo,
.side-logo,
.error-logo {
    width: min(100%, 180px);
    margin-inline: auto;
}

.official-logo {
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.16);
}

.section-logo-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.section-fallback {
    min-width: 120px;
}

.pill-row,
.detail-badges,
.hero-actions,
.public-actions,
.center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-pill,
.soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
}

.dashboard-pill-row {
    gap: 10px;
    margin-top: 2px;
}

.info-pill.green,
.soft-badge {
    background: rgba(76, 175, 80, 0.12);
    color: var(--primary-dark);
}

.info-pill.yellow {
    background: rgba(255, 213, 79, 0.24);
    color: #8a6800;
}

.info-pill.blue {
    background: rgba(79, 195, 247, 0.2);
    color: #116a87;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7adf6f);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.34), rgba(79, 195, 247, 0.2));
    color: var(--primary-dark);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.88), rgba(255, 112, 67, 0.86));
    color: #fff;
}

.btn-xl {
    padding: 14px 24px;
    font-size: 1rem;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.admin-action-grid,
.stats-grid,
.content-grid,
.upload-preview-grid,
.pet-grid,
.token-grid,
.detail-showcase,
.public-info-grid {
    display: grid;
    gap: 20px;
}

.dashboard-grid,
.admin-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-card,
.admin-action-card {
    min-height: 220px;
    height: 100%;
    padding: 22px;
    display: grid;
    gap: 14px;
    align-content: start;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    text-decoration: none;
}

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

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

.dashboard-section-head {
    margin-bottom: 2px;
}

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

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

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

.dashboard-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    pointer-events: none;
}

.dashboard-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dashboard-card-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(36, 67, 41, 0.08);
    font-size: 1.9rem;
}

.dashboard-card-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.dashboard-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.dashboard-card-footnote {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}

.dashboard-card-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--primary-dark);
}

.dashboard-card-desc {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.dashboard-tone-green {
    background: linear-gradient(180deg, rgba(214, 247, 217, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-tone-yellow {
    background: linear-gradient(180deg, rgba(255, 244, 199, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-tone-blue {
    background: linear-gradient(180deg, rgba(227, 247, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-tone-mint {
    background: linear-gradient(180deg, rgba(230, 252, 243, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-tone-pink {
    background: linear-gradient(180deg, rgba(255, 231, 240, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-tone-soft {
    background: linear-gradient(180deg, rgba(247, 244, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-card-wide {
    min-height: 186px;
}

.dashboard-card-subtle {
    min-height: 186px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 255, 0.72));
}

.dashboard-card-subtle .dashboard-card-icon {
    background: rgba(255, 255, 255, 0.96);
    width: 56px;
    height: 56px;
    font-size: 1.55rem;
}

.dashboard-card-logout {
    border-style: dashed;
    border-color: rgba(244, 143, 177, 0.24);
}

.analytics-dashboard-section {
    display: grid;
    gap: 22px;
}

.analytics-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.analytics-main-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.05));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.analytics-side-grid {
    display: grid;
    gap: 18px;
}

.analytics-side-card {
    height: 100%;
}

.analytics-monthly-chart {
    min-height: 340px;
}

.analytics-species-wrap {
    grid-template-columns: 160px minmax(0, 1fr);
}

.dashboard-analytics-card {
    grid-column: span 2;
    min-height: 100%;
    display: grid;
    gap: 20px;
    padding: 24px;
}

.dashboard-analytics-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.dashboard-analytics-main,
.dashboard-analytics-side {
    display: grid;
    gap: 16px;
}

.dashboard-analytics-main {
    min-width: 0;
}

.dashboard-analytics-side-grid {
    display: grid;
    gap: 14px;
}

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

.dashboard-monthly-chart {
    min-height: 100%;
}

.dashboard-species-wrap {
    grid-template-columns: 150px minmax(0, 1fr);
}

.admin-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 195, 247, 0.28);
    box-shadow: 0 18px 34px rgba(79, 195, 247, 0.16);
}

.action-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.38), rgba(79, 195, 247, 0.24));
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
}

.action-danger .action-icon {
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.26), rgba(255, 213, 79, 0.24));
}

.admin-action-card h2 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.08rem;
    color: var(--primary-dark);
}

.admin-action-card p,
.mini-item p,
.token-card a {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

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

.analytics-card-wide {
    min-height: 100%;
}

.analytics-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.analytics-badge {
    margin-bottom: 10px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-legend-dot.tag,
.monthly-bar-tag {
    background: linear-gradient(180deg, #ffd54f, #f6b43b);
}

.chart-legend-dot.activation,
.monthly-bar-activation {
    background: linear-gradient(180deg, #4caf50, #2e7d32);
}

.chart-legend-dot.scan,
.monthly-bar-scan {
    background: linear-gradient(180deg, #4fc3f7, #1f8cc8);
}

.chart-legend-dot.pet,
.monthly-bar-pet {
    background: linear-gradient(180deg, #f48fb1, #de5f8f);
}

.trend-chart-card {
    padding: 18px 18px 10px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.05)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(79, 195, 247, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.trend-chart {
    width: 100%;
    height: auto;
    display: block;
}

.trend-grid-line {
    stroke: rgba(79, 195, 247, 0.12);
    stroke-width: 1;
    shape-rendering: crispEdges;
}

.trend-axis-line {
    stroke: rgba(79, 195, 247, 0.24);
    stroke-width: 1.25;
}

.trend-axis-label {
    fill: #6b7b73;
    font-family: "Nunito", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.trend-axis-label-x {
    font-size: 12px;
}

.trend-line {
    fill: none;
    stroke-width: 3.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trend-line-tag {
    stroke: #f6b43b;
}

.trend-line-activation {
    stroke: #3d9f4a;
}

.trend-line-scan {
    stroke: #2ea9e8;
}

.trend-line-pet {
    stroke: #e07198;
}

.trend-point {
    stroke: #fff;
    stroke-width: 2.5;
}

.trend-point-tag {
    fill: #f6b43b;
}

.trend-point-activation {
    fill: #3d9f4a;
}

.trend-point-scan {
    fill: #2ea9e8;
}

.trend-point-pet {
    fill: #e07198;
}

.monthly-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 320px;
    padding: 18px 18px 14px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.05)),
        repeating-linear-gradient(
            to top,
            rgba(79, 195, 247, 0.08) 0,
            rgba(79, 195, 247, 0.08) 1px,
            transparent 1px,
            transparent 64px
        );
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.monthly-chart-month {
    display: grid;
    gap: 10px;
    align-items: end;
}

.monthly-chart-bars {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
}

.monthly-bar-column {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.monthly-bar-value {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.monthly-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 16px 16px 8px 8px;
    box-shadow: 0 12px 24px rgba(36, 67, 41, 0.12);
}

.monthly-chart-total {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    text-align: center;
}

.monthly-chart-label {
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

.chart-empty-state,
.chart-empty-inline {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.chart-empty-state h3,
.chart-empty-state p,
.chart-empty-inline p {
    margin: 0;
}

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

.overview-metric-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.overview-metric-card span {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.overview-metric-card strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    line-height: 1.1;
}

.overview-metric-green {
    background: linear-gradient(135deg, rgba(214, 247, 217, 0.88), rgba(255, 255, 255, 0.98));
}

.overview-metric-yellow {
    background: linear-gradient(135deg, rgba(255, 244, 199, 0.9), rgba(255, 255, 255, 0.98));
}

.overview-metric-blue {
    background: linear-gradient(135deg, rgba(227, 247, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.overview-metric-pink {
    background: linear-gradient(135deg, rgba(255, 231, 240, 0.92), rgba(255, 255, 255, 0.98));
}

.overview-chart-grid,
.overview-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.overview-chart-card,
.overview-footer-card,
.dashboard-subsection {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(79, 195, 247, 0.06));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.overview-chart-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.species-donut-wrap {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.species-donut {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(79, 195, 247, 0.08);
}

.species-donut-hole {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 18px rgba(36, 67, 41, 0.08);
}

.species-donut-hole strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
}

.species-donut-hole span {
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 800;
}

.species-list {
    display: grid;
    gap: 10px;
}

.species-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.species-list-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 800;
}

.species-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.species-list-item strong,
.species-list-item small {
    color: var(--text-soft);
    font-weight: 800;
}

.design-popularity-list {
    display: grid;
    gap: 14px;
}

.design-popularity-row {
    display: grid;
    gap: 8px;
}

.design-popularity-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.design-popularity-label span {
    color: var(--primary-dark);
    font-weight: 800;
}

.design-popularity-label strong {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.design-popularity-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(79, 195, 247, 0.1);
    overflow: hidden;
}

.design-popularity-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.compact-mini-list {
    gap: 10px;
}

.compact-mini-item {
    padding: 12px 14px;
}

.stat-card {
    padding: 18px 20px;
}

.stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.84rem;
}

.stat-value {
    font-family: "Poppins", sans-serif;
    font-size: 1.65rem;
    line-height: 1.15;
    color: var(--primary-dark);
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

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

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(79, 195, 247, 0.06));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.mini-item strong {
    display: block;
    margin-bottom: 4px;
}

.mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 800;
}

.hero-actions form,
.pet-card-actions form {
    margin: 0;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    gap: 24px;
}

.form-card {
    padding: 26px;
}

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

.card-lite {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(79, 195, 247, 0.06));
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 800;
    color: var(--primary-dark);
}

.field-help {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.client-form-error {
    margin-bottom: 18px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 18px;
    border: 1px solid rgba(76, 175, 80, 0.16);
    background: #fff;
    font: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(79, 195, 247, 0.56);
    box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.14);
}

.field textarea {
    resize: vertical;
}

.field-wide {
    grid-column: 1 / -1;
}

.compact-field {
    min-width: 180px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
}

.pet-search-form {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.pet-search-field {
    flex: 1 1 360px;
}

.pet-search-caption {
    margin-top: 14px;
}

.design-grid,
.design-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.design-choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.design-select-card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    min-height: auto;
}

.design-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.design-choice-content {
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(79, 195, 247, 0.14);
    box-shadow: 0 14px 30px rgba(79, 195, 247, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.design-choice-selected {
    display: none;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.14);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.design-choice-preview {
    display: block;
}

.design-choice-image-wrap {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.design-choice-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 18px 28px rgba(36, 67, 41, 0.08);
}

.design-choice-tag {
    position: relative;
    isolation: isolate;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(36, 67, 41, 0.06);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 18px 34px rgba(106, 129, 152, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.58));
}

.design-choice-string {
    position: absolute;
    display: none;
}

.design-choice-owner-badge {
    display: none;
}

.design-choice-owner-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.design-choice-owner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-choice-owner-text {
    display: block;
    max-width: 140px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.86rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.design-preview-template1 {
    aspect-ratio: 1.82 / 1;
    min-height: unset;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 247, 255, 0.82) 58%, rgba(246, 242, 255, 0.78)),
        linear-gradient(180deg, rgba(79, 195, 247, 0.08), rgba(255, 255, 255, 0));
}

.design-preview-template2 {
    aspect-ratio: 1 / 1;
    min-height: unset;
    border-radius: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 255, 0.84) 55%, rgba(236, 248, 255, 0.78));
    clip-path: polygon(50% 7%, 62% 0, 81% 0, 100% 17%, 100% 43%, 50% 100%, 0 43%, 0 17%, 19% 0, 38% 0);
    border: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.32),
        0 22px 34px rgba(96, 121, 150, 0.12);
}

.design-preview-template3 {
    aspect-ratio: 1.7 / 1;
    min-height: unset;
    border-radius: 38px;
    background:
        linear-gradient(140deg, rgba(255, 249, 214, 0.96), rgba(255, 230, 240, 0.86) 52%, rgba(226, 247, 255, 0.82)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.design-choice-photo {
    position: absolute;
    overflow: hidden;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 0 0 1px rgba(36, 67, 41, 0.04),
        0 14px 28px rgba(63, 92, 114, 0.12);
    z-index: 2;
}

.design-choice-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-choice-photo-placeholder {
    font-size: 2.4rem;
}

.design-choice-qr {
    position: absolute;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(63, 92, 114, 0.12);
    z-index: 2;
}

.design-choice-qr-grid {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    background:
        conic-gradient(from 90deg at 2px 2px, #233128 90deg, #fff 0) 0 0/15px 15px,
        #fff;
    box-shadow: inset 0 0 0 6px #fff;
}

.design-choice-qr-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.design-choice-name {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    text-align: center;
    z-index: 3;
    text-shadow: 0 6px 18px rgba(22, 33, 42, 0.18);
}

.design-choice-species {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #557068;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 3;
}

.design-choice-text {
    display: grid;
    gap: 6px;
}

.design-choice-text strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.design-choice-text small,
.design-choice-content small {
    color: var(--text-soft);
    line-height: 1.55;
}

.design-choice-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 14px;
    border-radius: 16px;
    background: rgba(79, 195, 247, 0.1);
    color: #1b667f;
    font-weight: 800;
    font-size: 0.9rem;
}

.design-choice-card:hover .design-choice-content,
.design-choice-card input:checked + .design-choice-content {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.34);
    box-shadow: 0 18px 34px rgba(79, 195, 247, 0.16);
}

.design-choice-card input:checked + .design-choice-content .design-choice-selected {
    display: inline-flex;
}

.design-choice-card input:checked + .design-choice-content .design-choice-image-wrap {
    box-shadow: 0 18px 30px rgba(76, 175, 80, 0.14);
    border-color: rgba(76, 175, 80, 0.28);
}

.design-choice-card input:checked + .design-choice-content .design-choice-tag {
    box-shadow: 0 18px 30px rgba(76, 175, 80, 0.12);
}

.design-choice-card input:checked + .design-choice-content .design-choice-cta {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(255, 213, 79, 0.24));
    color: var(--primary-dark);
}

.design-choice-tag::before,
.design-choice-tag::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 5px rgba(133, 154, 176, 0.28);
    z-index: 4;
}

.design-choice-tag::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06));
    box-shadow: none;
    border-radius: 999px;
    z-index: 1;
}

.design-preview-template1::before {
    top: 16px;
    left: 18px;
    width: 18px;
    height: 18px;
}

.design-preview-template1::after {
    top: 16px;
    right: 18px;
    width: 18px;
    height: 18px;
}

.design-preview-template1 .design-choice-name {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
}

.design-preview-template1 .design-choice-species {
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
}

.design-preview-template1 .design-choice-qr {
    left: 26px;
    bottom: 26px;
    width: 38%;
    height: 48%;
    border-radius: 26px;
}

.design-preview-template1 .design-choice-photo {
    right: 28px;
    bottom: 26px;
    width: 34%;
    height: 54%;
    border-radius: 30px;
}

.design-preview-template2::before {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
}

.design-preview-template2::after {
    top: 0;
    left: 12%;
    width: 76%;
    height: 38%;
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0));
}

.design-preview-template2 .design-choice-name {
    top: 20%;
    left: 50%;
    width: 72%;
    transform: translateX(-50%);
    font-size: 1.02rem;
}

.design-preview-template2 .design-choice-species {
    top: 31%;
    left: 50%;
    transform: translateX(-50%);
}

.design-preview-template2 .design-choice-qr {
    left: 14%;
    bottom: 24%;
    width: 33%;
    height: 28%;
    border-radius: 24px;
}

.design-preview-template2 .design-choice-photo {
    right: 12%;
    bottom: 24%;
    width: 36%;
    height: 34%;
    border-radius: 999px;
}

.design-preview-template3::before {
    top: 16px;
    left: 22px;
    width: 18px;
    height: 18px;
}

.design-preview-template3::after {
    top: 22px;
    left: 26px;
    width: 58%;
    height: 28%;
    background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0));
}

.design-preview-template3 .design-choice-name {
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
}

.design-preview-template3 .design-choice-species {
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
}

.design-preview-template3 .design-choice-qr {
    left: 26px;
    bottom: 26px;
    width: 36%;
    height: 48%;
    border-radius: 30px;
}

.design-preview-template3 .design-choice-photo {
    right: 24px;
    bottom: 24px;
    width: 40%;
    height: 56%;
    border-radius: 36px;
}

.preview-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.preview-source-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.06));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.preview-source-media {
    width: 92px;
    min-width: 92px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(36, 67, 41, 0.06);
    color: var(--primary-dark);
    font-size: 2rem;
}

.preview-source-owner {
    border-radius: 26px;
}

.preview-source-pet {
    border-radius: 28px;
}

.preview-source-qr {
    border-radius: 22px;
}

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

.preview-source-qr-grid {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background:
        conic-gradient(from 90deg at 2px 2px, #233128 90deg, #fff 0) 0 0/11px 11px,
        #fff;
    box-shadow: inset 0 0 0 5px #fff;
}

.preview-source-copy {
    display: grid;
    gap: 6px;
}

.preview-source-copy strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.preview-source-copy small {
    color: var(--text-soft);
    line-height: 1.55;
}

.design-preview-focus {
    display: grid;
    gap: 14px;
}

.design-section-head {
    margin-bottom: 0;
}

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

.upload-preview-card {
    display: grid;
    gap: 12px;
}

.upload-preview-frame {
    min-height: 220px;
    border-radius: 20px;
    border: 2px dashed rgba(79, 195, 247, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 213, 79, 0.08));
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-soft);
}

.upload-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-info-card {
    padding: 26px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 800;
}

.alert-error {
    background: rgba(244, 143, 177, 0.18);
    color: #8f3857;
    border: 1px solid rgba(244, 143, 177, 0.22);
}

.alert-success {
    background: rgba(76, 175, 80, 0.14);
    color: var(--primary-dark);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.activation-success {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.success-icon {
    font-size: 2.5rem;
}

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

.pet-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.pet-card-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.pet-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.3), rgba(79, 195, 247, 0.2));
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
    white-space: nowrap;
}

.status-chip.ready {
    background: rgba(76, 175, 80, 0.14);
    color: var(--primary-dark);
}

.status-chip.pending {
    background: rgba(255, 213, 79, 0.28);
    color: #7f6100;
}

.status-chip.denied {
    background: rgba(244, 143, 177, 0.22);
    color: #8f3857;
}

.status-chip.neutral {
    background: rgba(79, 195, 247, 0.14);
    color: #116a87;
}

.status-chip.green {
    background: rgba(76, 175, 80, 0.14);
    color: var(--primary-dark);
}

.status-chip.blue {
    background: rgba(79, 195, 247, 0.14);
    color: #116a87;
}

.status-chip.yellow {
    background: rgba(255, 213, 79, 0.28);
    color: #7f6100;
}

.status-chip.pink {
    background: rgba(244, 143, 177, 0.22);
    color: #8f3857;
}

.pet-card-body {
    display: grid;
    gap: 12px;
}

.pet-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pet-card-actions-balanced {
    display: grid;
    gap: 12px;
}

.pet-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pet-action-group .btn {
    flex: 1 1 140px;
}

.pet-action-group-guarded {
    padding-top: 4px;
    border-top: 1px dashed rgba(79, 195, 247, 0.2);
}

.detail-action-groups {
    justify-content: space-between;
}

.info-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(79, 195, 247, 0.2);
}

.info-line span {
    color: var(--text-soft);
}

.info-line strong {
    text-align: right;
    color: var(--primary-dark);
}

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

.image-card {
    padding: 22px;
    display: grid;
    gap: 14px;
}

.preview-image,
.owner-photo {
    width: 100%;
    border-radius: 26px;
    object-fit: cover;
}

.large-photo {
    aspect-ratio: 1 / 1;
}

.qr-image,
.design-list-qr {
    max-width: 260px;
    width: 100%;
    margin-inline: auto;
}

.large-qr {
    max-width: 300px;
}

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

.image-placeholder {
    min-height: 250px;
    border-radius: 24px;
    border: 2px dashed rgba(79, 195, 247, 0.22);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.88);
}

.image-placeholder.compact {
    min-height: 160px;
}

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

.token-card {
    padding: 18px;
    border-radius: 22px;
    display: grid;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.2), rgba(79, 195, 247, 0.12));
    border: 1px solid rgba(79, 195, 247, 0.14);
}

.public-shell {
    display: grid;
    justify-items: center;
}

.scan-gateway-page .site-header,
.scan-gateway-page .site-footer {
    display: none;
}

.scan-gateway-page .page-shell {
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding: 18px 0;
}

.scan-gateway-shell {
    display: grid;
    justify-items: center;
    width: 100%;
}

.scan-gateway-card {
    width: min(100%, 560px);
    min-height: min(100svh - 36px, 780px);
    padding: 28px 24px;
    display: grid;
    align-content: center;
    gap: 18px;
}

.scan-gateway-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.scan-gateway-brand-media {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scan-gateway-hero {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.scan-gateway-avatar {
    width: 124px;
    height: 124px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.28), rgba(79, 195, 247, 0.2));
    border: 1px solid rgba(79, 195, 247, 0.12);
    display: grid;
    place-items: center;
}

.scan-gateway-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-gateway-placeholder {
    font-size: 3.25rem;
}

.scan-gateway-copy {
    display: grid;
    gap: 8px;
}

.scan-gateway-title {
    margin: 0;
    font-family: "Poppins", "Nunito", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.2;
    color: var(--primary-dark);
}

.scan-gateway-subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.scan-gateway-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(255, 213, 79, 0.14));
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.92rem;
}

.scan-gateway-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scan-gateway-actions {
    display: grid;
    gap: 12px;
}

.scan-gateway-actions .btn {
    min-height: 58px;
    width: 100%;
    font-size: 1rem;
}

.scan-gateway-status-wrap,
.scan-gateway-noscript {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 195, 247, 0.14);
}

.scan-gateway-status-wrap[data-state="loading"] {
    border-color: rgba(79, 195, 247, 0.28);
    box-shadow: inset 0 0 0 1px rgba(79, 195, 247, 0.08);
}

.scan-gateway-status-wrap[data-state="success"] {
    border-color: rgba(76, 175, 80, 0.24);
    background: rgba(76, 175, 80, 0.08);
}

.scan-gateway-status-wrap[data-state="warning"] {
    border-color: rgba(255, 213, 79, 0.3);
    background: rgba(255, 213, 79, 0.14);
}

.scan-gateway-status-wrap strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.scan-gateway-status-wrap p,
.scan-gateway-noscript p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.scan-gateway-noscript {
    display: grid;
    gap: 14px;
}

.scan-gateway-footnote {
    margin: -2px 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.55;
}

.public-profile-card {
    width: min(100%, 860px);
    padding: 28px;
    text-align: center;
}

.public-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.public-brand-logo {
    width: 74px;
}

.powered-by {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-weight: 800;
}

.scan-privacy-box {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(255, 213, 79, 0.18));
    text-align: left;
}

.scan-privacy-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.scan-privacy-box p,
.scan-privacy-box small,
.privacy-note {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.location-consent-card {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    width: min(420px, calc(100vw - 24px));
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(79, 195, 247, 0.16);
    box-shadow: 0 28px 44px rgba(36, 67, 41, 0.16);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.location-consent-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.location-consent-head,
.location-consent-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.location-consent-body {
    display: grid;
    gap: 10px;
    margin: 16px 0 18px;
}

.location-consent-note {
    color: var(--text-soft);
    line-height: 1.55;
}

.location-consent-close {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text-soft);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.location-consent-close:hover {
    color: var(--primary-dark);
}

.lost-banner {
    margin: 22px auto;
    padding: 14px 20px;
    border-radius: 999px;
    width: fit-content;
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.24), rgba(255, 213, 79, 0.34));
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 1.05rem;
}

.public-avatar-wrap {
    display: grid;
    justify-content: center;
    margin-bottom: 18px;
}

.public-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid rgba(79, 195, 247, 0.14);
    background: #fff;
}

.placeholder-avatar {
    display: grid;
    place-items: center;
    font-size: 5rem;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.3), rgba(79, 195, 247, 0.22));
}

.public-pet-name {
    margin: 0 0 8px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    color: var(--primary-dark);
}

.public-subtitle {
    margin-bottom: 20px;
}

.public-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0;
}

.public-info-card {
    padding: 22px;
    border-radius: 24px;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(79, 195, 247, 0.06));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.owner-photo-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin: 10px 0 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(255, 213, 79, 0.12));
}

.owner-photo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
}

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

.qr-preview-box {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.design-stage {
    display: grid;
    gap: 22px;
}

.design-card {
    padding: 24px;
}

.design-list-preview {
    margin: 12px 0 14px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.selected-design-card {
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 18px 34px rgba(76, 175, 80, 0.14);
}

.design-reference-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(79, 195, 247, 0.12);
    color: #116a87;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.design-reference-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(79, 195, 247, 0.16);
    background: rgba(79, 195, 247, 0.18);
}

.design-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.selected-design-badge {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.14);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.84rem;
}

.design-preview {
    padding-top: 6px;
    display: grid;
    justify-items: center;
}

.design-reference-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 20px 32px rgba(36, 67, 41, 0.1);
}

.design-reference-image-large {
    width: min(100%, 820px);
}

.tag-render {
    display: grid;
    justify-items: center;
    width: 100%;
}

.tag-svg {
    display: block;
    width: min(100%, 720px);
    height: auto;
    filter: drop-shadow(0 24px 34px rgba(61, 82, 105, 0.16));
}

.tag-svg-heart {
    width: min(100%, 460px);
}

.design-list-preview .tag-svg-horizontal,
.design-list-preview .tag-svg-colorful {
    width: min(100%, 330px);
}

.design-list-preview .tag-svg-heart {
    width: min(100%, 240px);
}

.selected-design-card .tag-svg {
    filter: drop-shadow(0 28px 36px rgba(76, 175, 80, 0.16));
}

.design-card-header .btn {
    min-width: 132px;
}

.print-tag {
    position: relative;
    width: min(100%, 590px);
    margin: 0 auto;
    padding: 28px 26px 22px;
    border-radius: 38px;
    box-shadow: 0 24px 44px rgba(36, 67, 41, 0.18);
}

.print-tag-hole {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid rgba(46, 125, 50, 0.16);
}

.print-tag-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.print-photo-panel,
.print-qr-panel {
    min-height: 230px;
    padding: 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
}

.print-qr-panel {
    align-content: center;
    gap: 10px;
}

.print-cat-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
}

.print-qr-image {
    width: 100%;
    max-width: 210px;
    border-radius: 20px;
    background: #fff;
}

.print-photo-placeholder {
    width: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-dark);
    font-size: 3rem;
}

.print-species-badge {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.print-name-ribbon {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 999px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.template-theme-green {
    background: linear-gradient(135deg, #d6f7d9, #fff6bf);
}

.template-theme-green .print-photo-panel,
.template-theme-green .print-qr-panel {
    background: rgba(255, 255, 255, 0.76);
}

.template-theme-green .print-name-ribbon {
    background: rgba(76, 175, 80, 0.14);
}

.template-theme-sky {
    background: linear-gradient(135deg, #e6f7ff, #fffef1);
}

.light-theme-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(79, 195, 247, 0.14);
}

.sky-ribbon {
    background: rgba(79, 195, 247, 0.12);
}

.template-theme-pink {
    background: linear-gradient(135deg, #ffe4ee, #fff5bf);
}

.warm-theme-panel {
    background: rgba(255, 255, 255, 0.76);
}

.pink-ribbon {
    background: rgba(244, 143, 177, 0.16);
}

.print-sheet-hero,
.print-sheet-summary,
.production-sheet {
    position: relative;
    overflow: hidden;
}

.print-sheet-hero::after,
.production-sheet::after {
    content: "";
    position: absolute;
    inset: auto -70px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.14), rgba(79, 195, 247, 0));
    pointer-events: none;
}

.print-sheet-summary {
    display: grid;
    gap: 14px;
}

.production-sheet {
    display: grid;
    gap: 24px;
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 247, 0.96)),
        radial-gradient(circle at top right, rgba(255, 213, 79, 0.12), transparent 24%);
}

.production-sheet-header,
.production-meta,
.production-block-head,
.production-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.production-sheet-header {
    align-items: flex-start;
    justify-content: space-between;
}

.production-meta {
    justify-content: flex-end;
}

.production-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.production-block {
    display: grid;
    gap: 14px;
    min-height: 100%;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 195, 247, 0.12);
    box-shadow: 0 18px 32px rgba(36, 67, 41, 0.08);
}

.production-block-head {
    align-items: flex-start;
    justify-content: space-between;
}

.production-block-head small {
    color: var(--text-soft);
    font-size: 0.83rem;
    line-height: 1.5;
}

.production-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.production-name-card {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 210px;
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(214, 247, 217, 0.82), rgba(255, 244, 199, 0.62)),
        rgba(255, 255, 255, 0.96);
    border: 1px dashed rgba(76, 175, 80, 0.24);
}

.production-name-main {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-dark);
    word-break: break-word;
}

.production-name-sub {
    color: var(--text-soft);
    font-size: 0.98rem;
    font-weight: 700;
}

.production-cut-guide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.production-cut-guide span {
    display: block;
    min-height: 10px;
    border-top: 1px dashed rgba(36, 67, 41, 0.18);
}

.production-qr-card,
.production-photo-card {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.14);
}

.production-qr-image {
    width: min(100%, 280px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: 22px;
    box-shadow: 0 16px 28px rgba(36, 67, 41, 0.1);
}

.production-photo-image {
    width: min(100%, 280px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 30px rgba(36, 67, 41, 0.1);
}

.production-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.production-footer {
    align-items: stretch;
}

.production-footer-card {
    flex: 1 1 280px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 213, 79, 0.12));
    border: 1px solid rgba(255, 213, 79, 0.18);
}

.production-footer-card strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
}

.production-footer-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.error-shell,
.login-layout {
    display: grid;
    justify-items: center;
    align-items: center;
    min-height: calc(100vh - 230px);
}

.login-card,
.error-card {
    width: min(100%, 620px);
    padding: 34px;
}

.login-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 18px;
}

.login-logo {
    width: 120px;
}

.site-footer {
    padding: 0 0 34px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 195, 247, 0.14);
    color: var(--text-soft);
    box-shadow: var(--shadow-soft);
}

.footer-brand {
    width: 100%;
    max-width: 860px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
}

.footer-brand-media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
}

.footer-copy {
    display: grid;
    gap: 4px;
}

.footer-copy strong,
.footer-brand span {
    color: var(--text-soft);
    font-weight: 800;
}

.footer-address {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.92rem;
    max-width: 760px;
}

.detail-stats-grid .stat-value {
    font-size: 1.28rem;
}

.detail-stat-text {
    font-size: 1rem !important;
    line-height: 1.45;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(79, 195, 247, 0.12);
    vertical-align: top;
}

.data-table th {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
}

.data-table td {
    color: var(--text);
    font-size: 0.94rem;
}

.cell-wrap {
    max-width: 320px;
    word-break: break-word;
}

.empty-state {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px;
    text-align: left;
}

.empty-state h3,
.empty-state p {
    margin: 0;
}

.log-list {
    display: grid;
    gap: 14px;
}

.log-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(79, 195, 247, 0.05));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.log-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.log-item-top strong {
    color: var(--primary-dark);
}

.log-item-top span,
.log-item p {
    color: var(--text-soft);
}

.log-item p {
    margin: 0;
    line-height: 1.6;
}

.confirm-shell {
    display: grid;
    justify-items: center;
}

.confirm-card {
    width: min(100%, 640px);
    display: grid;
    gap: 18px;
    padding: 30px;
}

.confirm-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.14);
}

.confirm-summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.26), rgba(79, 195, 247, 0.18));
}

.confirm-summary-copy {
    display: grid;
    gap: 4px;
}

.confirm-summary-copy strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
}

.confirm-summary-copy p {
    margin: 0;
    color: var(--text-soft);
}

.confirm-warning {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(255, 213, 79, 0.18));
    border: 1px solid rgba(79, 195, 247, 0.14);
}

.confirm-warning strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.confirm-warning p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.confirm-warning-danger {
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.18), rgba(255, 213, 79, 0.18));
    border-color: rgba(244, 143, 177, 0.18);
}

.public-hero,
.public-cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 24px;
    align-items: center;
}

.public-hero-copy,
.public-hero-panel {
    display: grid;
    gap: 16px;
}

.public-hero-panel {
    align-content: start;
}

.public-hero-stat {
    display: grid;
    gap: 8px;
}

.public-hero-stat strong,
.catalog-card-copy strong,
.service-card strong,
.workflow-step strong,
.order-preview-note strong {
    color: var(--primary-dark);
    font-family: "Poppins", sans-serif;
}

.public-hero-stat p,
.catalog-card-copy p,
.service-card p,
.workflow-step p,
.order-preview-note p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.public-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.catalog-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.catalog-card,
.service-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.catalog-card-media {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(79, 195, 247, 0.12);
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 14px;
}

.catalog-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.workflow-steps {
    display: grid;
    gap: 14px;
}

.workflow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 213, 79, 0.12));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.workflow-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7adf6f);
}

.order-form-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.design-choice-grid-order {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.design-section-head .subtitle {
    max-width: 66ch;
}

.design-choice-grid-order .design-choice-content {
    gap: 12px;
    padding: 16px;
    border-radius: 26px;
}

.design-choice-grid-order .design-choice-preview {
    display: block;
}

.design-choice-grid-order .design-choice-image-wrap {
    display: grid;
    place-items: center;
    min-height: 260px;
    aspect-ratio: 4 / 5;
    padding: 16px;
}

.design-choice-grid-order .design-choice-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.design-choice-grid-order .design-choice-text small {
    min-height: 3.1em;
}

.design-choice-grid-order .design-choice-cta {
    margin-top: auto;
}

.order-preview-sidebar {
    position: sticky;
    top: 100px;
}

.order-preview-reference {
    display: grid;
    gap: 12px;
}

.order-preview-reference-image {
    width: 100%;
    border-radius: 26px;
    border: 1px solid rgba(79, 195, 247, 0.14);
    box-shadow: 0 16px 28px rgba(79, 195, 247, 0.1);
    background: #fff;
}

.order-preview-sources {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.order-preview-note {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 213, 79, 0.12));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.order-terms-card {
    display: grid;
    gap: 14px;
}

.order-terms-head {
    display: grid;
    gap: 8px;
}

.terms-consent-check {
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 195, 247, 0.07));
    border: 1px solid rgba(79, 195, 247, 0.12);
    cursor: pointer;
}

.terms-consent-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.terms-consent-indicator {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 8px;
    border: 1.5px solid rgba(79, 195, 247, 0.34);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(79, 195, 247, 0.06);
    transition: all 0.2s ease;
}

.terms-consent-check input[type="checkbox"]:checked + .terms-consent-indicator {
    background: linear-gradient(135deg, var(--primary), #7adf6f);
    border-color: transparent;
    position: relative;
}

.terms-consent-check input[type="checkbox"]:checked + .terms-consent-indicator::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-consent-check input[type="checkbox"]:focus-visible + .terms-consent-indicator {
    outline: 3px solid rgba(79, 195, 247, 0.18);
    outline-offset: 2px;
}

.terms-consent-copy {
    color: var(--text);
    line-height: 1.7;
}

.terms-consent-copy a {
    font-weight: 800;
}

.terms-consent-help {
    margin: 0;
}

.terms-conditions-card,
.terms-conditions-side {
    align-content: start;
}

.terms-conditions-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
    color: var(--text-soft);
    line-height: 1.7;
}

.order-success-layout,
.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.order-success-preview,
.order-detail-preview-media {
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(79, 195, 247, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.12);
}

.order-success-preview-image,
.order-detail-preview-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 22px 36px rgba(79, 195, 247, 0.12);
}

.info-stack {
    display: grid;
}

.cell-meta {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.soft-badge-muted {
    opacity: 0.45;
}

.order-file-badges {
    gap: 8px;
}

.order-table-actions {
    justify-content: flex-start;
}

.order-detail-actions,
.order-status-form {
    align-content: start;
}

.order-detail-grid {
    align-items: start;
}

.order-detail-photo-card {
    grid-column: span 2;
}

.order-original-photo {
    max-height: 420px;
    object-fit: contain;
    border-radius: 22px;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .admin-action-grid,
    .dashboard-menu-grid,
    .dashboard-primary-grid,
    .dashboard-lower-grid,
    .analytics-grid,
    .analytics-summary-grid,
    .analytics-layout-grid,
    .overview-chart-grid,
    .overview-footer-grid,
    .overview-metric-grid,
    .pet-grid,
    .stats-grid,
    .content-grid,
    .detail-showcase,
    .public-info-grid,
    .public-section-grid,
    .order-success-layout,
    .order-detail-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-analytics-card {
        grid-column: span 2;
    }

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

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

    .production-name-block {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .hero-shell,
    .friendly-hero,
    .detail-hero,
    .public-hero,
    .public-cta-banner,
    .public-info-grid,
    .scan-gateway-hero,
    .dashboard-menu-grid,
    .dashboard-primary-grid,
    .dashboard-lower-grid,
    .analytics-grid,
    .analytics-layout-grid,
    .dashboard-analytics-shell,
    .analytics-summary-grid,
    .overview-chart-grid,
    .overview-footer-grid,
    .overview-metric-grid,
    .analytics-species-wrap,
    .species-donut-wrap,
    .design-choice-grid,
    .preview-source-grid,
    .print-tag-content,
    .upload-preview-grid,
    .content-grid,
    .pet-grid,
    .detail-showcase,
    .stats-grid,
    .admin-action-grid,
    .form-grid,
    .token-grid,
    .production-grid {
        grid-template-columns: 1fr;
    }

    .order-detail-photo-card {
        grid-column: span 1;
    }

    .navbar,
    .section-head,
    .design-card-header,
    .owner-photo-box,
    .log-item-top,
    .confirm-summary,
    .notification-panel-head,
    .notification-panel-foot,
    .notification-card-head,
    .notification-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mini-item,
    .pet-card-top,
    .info-line,
    .confirm-summary {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-brand,
    .footer-brand-media {
        justify-content: center;
        align-items: center;
    }

    .footer-brand {
        flex-wrap: wrap;
    }

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

    .location-consent-card {
        right: 14px;
        left: 14px;
        width: auto;
    }

    .location-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .scan-gateway-avatar {
        width: min(100%, 180px);
        height: auto;
        aspect-ratio: 1 / 1;
        margin-inline: auto;
    }

    .scan-gateway-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-preview-sidebar {
        position: static;
        top: auto;
    }

    .dashboard-analytics-card {
        grid-column: span 1;
    }

    .analytics-head {
        flex-direction: column;
        align-items: stretch;
    }

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

    .notification-panel {
        right: -8px;
        width: min(380px, calc(100vw - 20px));
    }

    .logo-navbar {
        height: 34px;
        margin-right: 0;
    }

    .logo-login {
        width: 96px;
        margin-bottom: 14px;
    }

    .logo-public {
        width: 48px;
        height: 48px;
    }

    .logo-qr {
        width: 34px;
        height: 34px;
    }

    .production-name-block {
        grid-column: span 1;
    }

    .production-sheet-header,
    .production-meta,
    .production-block-head,
    .production-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 18px, 1100px);
    }

    .navbar,
    .hero-shell,
    .friendly-hero,
    .detail-hero,
    .summary-card,
    .section-card,
    .pet-card,
    .login-card,
    .error-card,
    .design-card {
        padding: 20px;
    }

    .public-profile-card {
        padding: 22px 18px;
    }

    .scan-gateway-card {
        min-height: calc(100svh - 16px);
        padding: 22px 18px;
    }

    .production-sheet {
        padding: 22px 18px;
    }

    .analytics-monthly-chart,
    .monthly-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px 14px 12px;
    }

    .monthly-chart-bars,
    .monthly-bar-column {
        min-height: 180px;
    }

    .species-donut {
        width: 160px;
        height: 160px;
    }

    .species-donut-hole {
        width: 102px;
        height: 102px;
    }

    .public-avatar {
        width: 180px;
        height: 180px;
    }

    .scan-gateway-actions {
        grid-template-columns: 1fr;
    }

    .notification-card,
    .notification-panel-item {
        grid-template-columns: 1fr;
    }

    .notification-card-icon,
    .notification-panel-icon {
        width: 42px;
        height: 42px;
    }

    .title {
        font-size: 1.9rem;
    }

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

    .terms-consent-check {
        grid-template-columns: auto 1fr;
    }

    .terms-consent-copy {
        grid-column: 2;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    body.print-mode .site-header,
    body.print-mode .site-footer,
    body.print-mode .site-bg,
    body.print-mode .friendly-hero,
    body.print-mode .summary-card {
        display: none !important;
    }

    body.print-mode .design-card {
        display: none !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.print-mode.print-template1 .template1-card,
    body.print-mode.print-template2 .template2-card,
    body.print-mode.print-template3 .template3-card {
        display: block !important;
    }

    body.print-mode .design-card-header {
        display: none !important;
    }

    body.print-mode .design-preview {
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body.print-mode .tag-render,
    body.print-mode .tag-svg {
        box-shadow: none !important;
        filter: none !important;
        margin: 0 auto !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.print-mode.print-template1 .tag-svg-horizontal {
        width: 98mm !important;
    }

    body.print-mode.print-template2 .tag-svg-heart {
        width: 74mm !important;
    }

    body.print-mode.print-template3 .tag-svg-colorful {
        width: 98mm !important;
    }

    body.print-mode .page-shell {
        padding: 0 !important;
        width: 100% !important;
    }

    body.production-print-page {
        background: #fff !important;
    }

    body.production-print-page .site-header,
    body.production-print-page .site-footer,
    body.production-print-page .site-bg,
    body.production-print-page .print-sheet-hero,
    body.production-print-page .print-sheet-summary {
        display: none !important;
    }

    body.production-print-page .page-shell {
        padding: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }

    body.production-print-page .production-sheet {
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.production-print-page .production-sheet::after {
        display: none !important;
    }

    body.production-print-page .production-footer .btn {
        display: none !important;
    }

    body.production-print-page .production-grid,
    body.production-print-page .production-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
