* {
    box-sizing: border-box;
}

.is-hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-text);
    background:
        radial-gradient(circle at top left, rgba(192, 10, 39, 0.06), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, var(--c-bg) 100%);
    min-height: 100vh;
}

.c2p-shell-page p,
.c2p-shell-page li,
.c2p-shell-page dt,
.c2p-shell-page dd {
    text-align: left;
}

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(var(--max-w), calc(100vw - 48px));
    margin: 0 auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-row {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain;
}

.brand-copy-stack {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.brand-kicker,
.brand-copy,
.section-chip,
.helper-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--c-primary);
}

.brand-mark {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
}

.brand-copy {
    font-size: 0.72rem;
    color: var(--c-text-light);
    letter-spacing: 0.06em;
}

.header-actions,
.inline-row,
.status-row,
.toolbar-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.align-between {
    justify-content: space-between;
}

.main-shell {
    padding: 32px 0 48px;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.flash {
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: var(--shadow-sm);
}

.flash-success {
    border-color: rgba(21, 128, 61, 0.25);
    color: var(--c-success);
}

.flash-error {
    border-color: rgba(185, 28, 28, 0.22);
    color: var(--c-danger);
}

.muted-chip {
    background: rgba(15, 23, 42, 0.05);
    color: var(--c-text);
}

.page-title {
    margin: 12px 0 0;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
}

.small-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.page-copy,
.card-head p,
.feature-panel span,
.helper-text,
.detail-list,
.summary-list dd,
.info-card p {
    color: var(--c-text-light);
    line-height: 1.7;
    text-align: justify !important;
}

.auth-layout,
.profile-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.single-column-shell {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.hero-card,
.form-card,
.dashboard-hero,
.summary-card,
.profile-main-card,
.verification-card,
.admin-head,
.table-card,
.info-card {
    padding: 28px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.feature-panel {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.82) 100%);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.feature-panel strong,
.card-head h2,
.summary-card h2,
.verification-card h2 {
    font-family: var(--font-heading);
}

.ready-panel {
    border-color: rgba(21, 128, 61, 0.18);
}

.pending-panel {
    border-color: rgba(180, 83, 9, 0.18);
}

.detail-list {
    margin: 24px 0 0;
    padding-left: 20px;
}

.detail-list li {
    margin-bottom: 10px;
}

.card-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.card-head h2 {
    margin: 0;
    font-size: 2rem;
}

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

.compact-form {
    gap: 14px;
}

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

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

.field-grow {
    flex: 1 1 260px;
}

.field span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-text);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--c-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(192, 10, 39, 0.55);
    box-shadow: 0 0 0 4px rgba(192, 10, 39, 0.08);
}

.field textarea {
    min-height: 108px;
    resize: vertical;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--c-text-light);
    line-height: 1.55;
}

.checkbox-line input {
    margin-top: 4px;
}

.text-link {
    color: var(--c-primary);
    font-weight: 600;
}

.switch-copy {
    margin: 20px 0 0;
    color: var(--c-text-light);
}

.google-block,
.verification-card {
    display: grid;
    gap: 12px;
}

.divider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    color: var(--c-text-light);
}

.divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
}

.divider span {
    position: relative;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-shell,
.admin-shell,
.single-column-shell {
    display: grid;
    gap: 24px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.95);
    color: var(--c-text);
    font-weight: 700;
}

.admin-nav-link.is-active {
    background: rgba(192, 10, 39, 0.08);
    border-color: rgba(192, 10, 39, 0.18);
    color: var(--c-primary);
}

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

.dashboard-hero .status-row {
    margin-top: 18px;
}

.dashboard-hero .inline-row {
    margin-top: 14px;
}

.summary-list {
    display: grid;
    gap: 16px;
    margin: 20px 0 24px;
}

.summary-list div {
    display: grid;
    gap: 4px;
}

.summary-list dt {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-text-light);
}

.summary-list dd {
    margin: 0;
    color: var(--c-text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: capitalize;
    background: rgba(15, 23, 42, 0.05);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    min-width: 22px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(15, 23, 42, 0.05);
    color: var(--c-text-light);
    white-space: nowrap;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #64748b;
    flex: 0 0 auto;
}

.status-badge.state-active {
    color: var(--c-success);
    background: rgba(21, 128, 61, 0.12);
}

.status-badge.state-active .status-dot {
    background: var(--c-success);
}

.status-badge.state-inactive {
    color: var(--c-danger);
    background: rgba(185, 28, 28, 0.12);
}

.status-badge.state-inactive .status-dot {
    background: var(--c-danger);
}

.status-badge.state-pending_review {
    color: var(--c-warning);
    background: rgba(180, 83, 9, 0.12);
}

.status-badge.state-pending_review .status-dot {
    background: var(--c-warning);
}

.status-badge.state-deleted {
    color: var(--c-danger);
    background: rgba(185, 28, 28, 0.12);
}

.status-badge.state-deleted .status-dot {
    background: var(--c-danger);
}

.field-status-select {
    min-width: 180px;
}

.compact-status-select {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 14px;
    font-weight: 700;
    color: var(--c-text);
}

.status-active,
.status-verified {
    background: rgba(21, 128, 61, 0.12);
    color: var(--c-success);
}

.status-blocked {
    background: rgba(185, 28, 28, 0.1);
    color: var(--c-danger);
}

.status-pending,
.status-pending_review {
    background: rgba(180, 83, 9, 0.12);
    color: var(--c-warning);
}

.verification-summary {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.84) 100%);
    border: 1px solid rgba(229, 231, 235, 0.9);
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.helper-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-text-light);
}

.otp-meta {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(249, 250, 251, 0.8) 100%);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.stat-tile {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.84) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.stat-tile span {
    display: block;
    color: var(--c-text-light);
    margin-bottom: 10px;
}

.stat-tile strong {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.toolbar-form {
    margin-bottom: 20px;
}

.toolbar-form .field {
    margin-bottom: 0;
}

.toolbar-form .field.field-grow {
    flex: 1 1 420px;
    min-width: 260px;
}

.toolbar-form .field:not(.field-grow) {
    flex: 0 0 140px;
}

.toolbar-form .btn {
    align-self: flex-end;
    min-height: 52px;
}

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

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

.data-table th,
.data-table td {
    padding: 16px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
}

.data-table th {
    font-family: var(--font-heading);
    font-size: 0.92rem;
}

.data-table td span {
    display: block;
    color: var(--c-text-light);
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.listing-meta-stack {
    display: grid;
    gap: 5px;
}

.listing-title {
    display: block;
    font-size: 1.02rem;
    line-height: 1.25;
    color: var(--c-text);
}

.listing-subline {
    display: block;
    color: var(--c-text-light);
    font-size: 0.88rem;
    line-height: 1.35;
}

.listing-excerpt {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: 62ch;
}

.service-editor-form {
    display: grid;
    gap: 22px;
}

.service-section {
    display: grid;
    gap: 14px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 250, 251, 0.82) 100%);
}

.section-headline {
    display: grid;
    gap: 4px;
}

.section-headline h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.section-headline p {
    margin: 0;
    color: var(--c-text-light);
    font-size: 0.85rem;
}

.service-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.inline-form {
    display: inline-flex;
}

.moderation-form {
    display: grid;
    gap: 12px;
    min-width: 260px;
}

.table-inline-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.blog-list-actions,
.table-inline-actions {
    justify-content: flex-start;
}

.table-inline-actions .btn,
.blog-list-actions .btn {
    flex: 0 0 auto;
}

.media-stack {
    display: grid;
    gap: 10px;
}

.media-input-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
}

.media-input-row .media-url-input {
    width: 100%;
    min-width: 0;
}

.media-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.12);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
    padding: 0 10px;
}

.media-state-badge-info {
    background: rgba(37, 99, 235, 0.09);
    border-color: rgba(37, 99, 235, 0.26);
    color: #1d4ed8;
}

.media-state-empty {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.3);
    color: #475569;
}

.media-state-local {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.26);
    color: #166534;
}

.media-state-remote {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.26);
    color: #1d4ed8;
}

.media-state-staged {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.3);
    color: #92400e;
}

.media-state-mixed {
    background: rgba(126, 34, 206, 0.12);
    border-color: rgba(126, 34, 206, 0.3);
    color: #6b21a8;
}

.helper-text {
    display: block;
    margin-top: 6px;
    color: var(--c-text-light);
    font-size: 0.9rem;
    line-height: 1.45;
}

.posting-shell {
    display: grid;
    gap: 20px;
}

.posting-hero,
.posting-workspace,
.posting-stat-card {
    padding: 28px;
}

.posting-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.posting-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

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

.posting-stat-card {
    display: grid;
    gap: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.84) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.posting-stat-card strong {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.posting-stat-card span {
    color: var(--c-text-light);
}

.posting-action-bar {
    margin-bottom: 20px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 280px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--c-text);
    padding: 12px 0;
}

.search-box input::placeholder {
    color: #8a93a5;
}

.search-box-smart {
    min-height: 54px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.search-box-smart:focus-within {
    border-color: rgba(192, 10, 39, 0.45);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(192, 10, 39, 0.08);
}

.btn-create,
.magic-btn,
.btn-create-smart,
.magic-btn-smart,
.btn-sm,
.btn-danger,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn-create,
.btn-create-smart {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,246,248,0.92));
    color: var(--c-text);
    border-color: rgba(229, 231, 235, 0.95);
    box-shadow: var(--shadow-sm);
}

.btn-create:hover,
.btn-create-smart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(192, 10, 39, 0.18);
    color: var(--c-primary);
}

.magic-btn,
.magic-btn-smart {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary) 0%, #9b102b 56%, #690816 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(192, 10, 39, 0.22);
}

.magic-btn::after,
.magic-btn-smart::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 42%);
    pointer-events: none;
}

.magic-btn:hover,
.magic-btn-smart:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(192, 10, 39, 0.28);
}

.magic-btn:disabled,
.magic-btn-smart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    color: var(--c-text-light);
    border-color: rgba(229, 231, 235, 0.95);
    font-size: 0.82rem;
    font-family: var(--font-body);
}

.btn-sm:hover {
    transform: translateY(-1px);
    background: #fff;
    color: var(--c-text);
}

.btn-sm.danger:hover,
.btn-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.btn-danger {
    background: rgba(185, 28, 28, 0.08);
    border-color: rgba(185, 28, 28, 0.2);
    color: var(--c-danger);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(229, 231, 235, 0.75);
    color: var(--c-text-light);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    color: var(--c-text);
    border-color: rgba(192, 10, 39, 0.2);
    background: rgba(255,255,255,0.72);
}

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

.preview-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

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

.preview-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-cover-empty {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-text-light);
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.preview-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.preview-copy {
    color: var(--c-text-light);
    line-height: 1.7;
}

.public-nav-logo img {
    height: 85px;
}

.public-nav-btn {
    padding: 0 16px;
}

.catalog-page-title,
.detail-page-title {
    margin: 0 0 8px;
    color: var(--c-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 2.7rem);
    line-height: 1.08;
}

.catalog-page-copy {
    margin: 0;
    color: var(--c-text-light);
    max-width: 780px;
}

.catalog-budget-group {
    min-width: 220px;
}

.map-count-icon,
.inline-icon {
    width: 16px;
    flex: 0 0 auto;
}

.catalog-loading-state,
.c2p-detail-loader {
    color: var(--c-text-light);
    text-align: center;
}

.catalog-loading-state {
    grid-column: 1 / -1;
    padding: 40px;
}

.c2p-detail-loader {
    padding: 150px 0;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-section-title {
    margin: 0 0 20px;
}

.footer-legal {
    border-top: 1px solid var(--c-border);
    padding-top: 30px;
    text-align: center;
    color: var(--c-text-light);
    font-size: 0.9rem;
}

.modal-footer-actions,
.smart-modal-actions,
.smart-review-actions,
.smart-review-actions-right {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-footer-actions {
    justify-content: flex-end;
}

.smart-modal-shell {
    width: min(98vw, 1480px);
    max-width: min(98vw, 1480px);
}

.smart-close-btn {
    font-size: 1.3rem;
}

.smart-control-block.is-hidden {
    display: none;
}

.smart-span-two {
    grid-column: span 2;
}

.smart-gallery-grid {
    margin-top: 12px;
    min-height: 120px;
}

.seo-tags-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.86);
}

.seo-tags-card .section-headline {
    margin-bottom: 12px;
}

.seo-tags-card textarea {
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    resize: vertical;
}

.form-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.form-topline .helper-copy {
    max-width: 68%;
}

.admin-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.create-panel-shell {
    display: block;
}

.create-panel-shell.panel-hidden {
    display: none;
}

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

.create-panel-head .page-title {
    margin-top: 0;
}

.create-panel-head .helper-copy {
    margin-top: 6px;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
    user-select: none;
}

.status-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--c-primary);
}

.smart-modal-actions {
    justify-content: flex-end;
    margin-top: 25px;
}

.smart-review-copy {
    color: var(--c-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.smart-review-actions {
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
}

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

.content-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.content-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
    border-color: rgba(192, 10, 39, 0.14);
}

.content-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.content-img,
.content-img-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    flex: 0 0 auto;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.content-img {
    object-fit: cover;
}

.content-img-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,246,248,0.9));
    color: var(--c-text-light);
    font-family: var(--font-heading);
    font-size: 0.78rem;
}

.content-text {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
}

.content-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.content-text h4 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-heading);
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-title-row > .offer-badge {
    flex: 1 1 100%;
    width: fit-content;
    max-width: min(100%, 680px);
    margin-top: 2px;
}

.content-text p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--c-text-light);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 360px;
}

.content-offer-line {
    min-width: 0;
    max-width: min(100%, 680px);
    overflow: hidden;
}

.offer-badge {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.12);
    color: var(--c-success);
    border: 1px solid rgba(21, 128, 61, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 40px 24px;
    color: var(--c-text-light);
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: var(--z-modal);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: min(95vw, 980px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background:
        radial-gradient(circle at top right, rgba(192, 10, 39, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,251,0.98));
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(192, 10, 39, 0.12);
    color: var(--c-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

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

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--c-text-light);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid-span-2 {
    grid-column: span 2;
}

.studio-input,
.studio-select,
.studio-textarea {
    width: 100%;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(229, 231, 235, 0.95);
    color: var(--c-text);
    padding: 12px 14px;
    border-radius: 12px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.studio-select {
    min-height: 48px;
}

.studio-textarea {
    min-height: 120px;
    resize: vertical;
}

.studio-input:focus,
.studio-select:focus,
.studio-textarea:focus,
.media-url-input:focus,
.smart-line-input:focus {
    border-color: rgba(192, 10, 39, 0.48);
    box-shadow: 0 0 0 4px rgba(192, 10, 39, 0.08);
}

.rte-wrap {
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(248,249,251,0.92);
}

.rte-btn {
    background: #fff;
    color: var(--c-text);
    border: 1px solid rgba(229,231,235,0.95);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.78rem;
}

.rte-btn:hover {
    border-color: rgba(192, 10, 39, 0.22);
    color: var(--c-primary);
}

.rte-btn-accent {
    color: #fff;
    background: rgba(192, 10, 39, 0.88);
    border-color: rgba(192, 10, 39, 0.92);
}

.rte-editor {
    min-height: 260px;
    max-height: 520px;
    overflow: auto;
    padding: 14px;
    color: var(--c-text);
    line-height: 1.7;
    font-size: 0.95rem;
    outline: none;
}

.rte-source {
    display: none;
    width: 100%;
    min-height: 260px;
    max-height: 520px;
    background: #fff;
    border: none;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
    color: var(--c-text);
    padding: 14px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    outline: none;
    resize: vertical;
}

.rte-wrap.source-mode .rte-editor { display: none; }
.rte-wrap.source-mode .rte-source { display: block; }

.rte-hint {
    padding: 8px 12px;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
    color: var(--c-text-light);
    font-size: 0.74rem;
}

.rte-editor table,
.rte-source table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.rte-editor th,
.rte-editor td {
    border: 1px solid rgba(229, 231, 235, 0.95);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.rte-editor th {
    background: rgba(248,249,251,0.94);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
}

.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 26px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-bottom: 2px solid rgba(229, 231, 235, 0.95);
    color: var(--c-text-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--t-fast);
}

.wizard-step.active {
    color: var(--c-text);
    border-color: var(--c-primary);
}

.wizard-step.done {
    color: var(--c-success);
    border-color: var(--c-success);
}

.wizard-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(229, 231, 235, 0.95);
    font-size: 0.75rem;
}

.wizard-step.active span {
    background: var(--c-primary);
    color: #fff;
}

.wizard-step.done span {
    background: var(--c-success);
    color: #fff;
}

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

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

.helper-field input {
    width: 100%;
}

.smart-modal-box {
    max-width: 800px;
}

.smart-modal-header {
    margin-bottom: 18px;
}

.smart-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.smart-close-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
}

.smart-modal-intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,249,251,0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.smart-intro-copy { max-width: 520px; }

.smart-intro-kicker,
.smart-editor-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--c-text-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.smart-intro-badges,
.smart-editor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-intro-badges {
    justify-content: flex-end;
    align-content: flex-start;
    max-width: 250px;
}

.smart-intro-badges span,
.smart-editor-chips span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(229, 231, 235, 0.95);
    color: var(--c-text);
    font-size: 0.76rem;
    font-weight: 600;
}

.smart-control-block { margin-bottom: 20px; }

.smart-control-label,
.smart-editor-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--c-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.smart-input-shell {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255,255,255,0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.smart-input-shell:focus-within {
    border-color: rgba(192, 10, 39, 0.48);
    box-shadow: 0 0 0 4px rgba(192, 10, 39, 0.08);
}

.smart-select {
    width: 100%;
    appearance: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c90a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center,
        transparent;
    border: none;
    color: var(--c-text);
    font-size: 0.96rem;
    padding: 0 34px 0 0;
    outline: none;
}

.smart-context-guide {
    margin: -6px 0 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,249,251,0.88));
    color: var(--c-text-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

.smart-context-title {
    display: block;
    margin-bottom: 4px;
    color: var(--c-text);
    font-weight: 700;
}

.smart-editor-card,
.smart-helper-card,
.verification-summary,
.feature-panel,
.search-box-smart,
.media-input-row,
.smart-modal-intro {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(229, 231, 235, 0.95);
}

.smart-editor-card {
    margin-bottom: 18px;
    border-radius: 24px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
    overflow: hidden;
}

.smart-editor-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(248,249,251,0.78);
}

.smart-editor-heading strong {
    display: block;
    color: var(--c-text);
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 600;
    max-width: 440px;
}

.smart-rich-textarea {
    min-height: 240px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 20px 22px 22px;
}

.smart-rich-textarea:focus { border: none; box-shadow: none; }

.smart-helper-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.smart-helper-card label { color: var(--c-text); margin-bottom: 8px; }

.smart-helper-note {
    margin-bottom: 12px;
    color: var(--c-text-light);
    font-size: 0.84rem;
    line-height: 1.55;
}

.smart-line-input {
    min-height: 50px;
    border-radius: 14px;
}

.media-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255,255,255,0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    transition: var(--t-fast);
}

.media-input-row:focus-within {
    border-color: rgba(192, 10, 39, 0.42);
    box-shadow: 0 0 0 4px rgba(192, 10, 39, 0.08);
}

.media-type-icon,
.media-preview {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,246,248,0.9));
    border: 1px solid rgba(229,231,235,0.95);
}

.media-preview {
    overflow: hidden;
}

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

.media-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--c-text);
    padding: 10px 0;
    font-size: 0.84rem;
    outline: none;
    min-width: 0;
    font-family: Consolas, 'Courier New', monospace;
}

.media-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-media {
    border: 1px solid rgba(229,231,235,0.95);
    border-radius: 10px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-media-upload {
    background: linear-gradient(135deg, #1d6ed5, #257ce4);
    color: #fff;
    border-color: rgba(29,110,213,0.2);
}

.btn-media-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 124, 228, 0.18);
}

.btn-media-localize {
    background: rgba(255,255,255,0.88);
    color: var(--c-text);
}

.btn-media-localize:hover {
    border-color: rgba(192, 10, 39, 0.22);
    color: var(--c-primary);
}

.studio-array-list {
    display: grid;
    gap: 8px;
}

.studio-array-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.studio-array-input {
    flex: 1;
}

.studio-array-remove,
.studio-array-add {
    border-radius: 10px;
    border: 1px solid rgba(229,231,235,0.95);
    background: rgba(255,255,255,0.92);
    color: var(--c-text-light);
    cursor: pointer;
}

.studio-array-remove {
    min-width: 42px;
    padding: 0 12px;
}

.studio-array-add {
    margin-top: 4px;
    padding: 8px 14px;
    font-size: 0.8rem;
}

.studio-array-remove:hover,
.studio-array-add:hover {
    color: var(--c-primary);
    border-color: rgba(192,10,39,0.22);
}

.img-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    align-items: start;
}

.img-gallery-card {
    position: relative;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(229,231,235,0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--t-fast);
}

.img-gallery-card:hover {
    border-color: rgba(192,10,39,0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.img-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.img-card-actions {
    display: flex;
    gap: 0;
    position: absolute;
    top: 6px;
    right: 6px;
}

.img-card-btn-del {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192,10,39,0.85);
    color: #fff;
    backdrop-filter: blur(8px);
}

.img-card-btn-del:hover {
    background: #ef4444;
    transform: scale(1.08);
}

.img-add-card {
    border: 2px dashed rgba(229,231,235,0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t-fast);
    min-height: 160px;
    width: 100%;
    color: var(--c-text-light);
    background: rgba(255,255,255,0.8);
}

.img-add-card:hover {
    border-color: rgba(192,10,39,0.28);
    color: var(--c-primary);
    background: rgba(192,10,39,0.05);
}

.img-add-card span {
    font-size: 1.8rem;
}

.img-add-card small {
    font-size: 0.7rem;
    margin-top: 4px;
}

.img-add-card-stack {
    gap: 10px;
    padding: 12px;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 100%;
    grid-column: span 2;
    cursor: default;
}

.gallery-url-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(209,213,219,0.95);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.86rem;
    color: var(--c-text-dark);
    background: rgba(255,255,255,0.95);
}

.gallery-add-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.gallery-add-actions .btn-media {
    flex: 1 1 0;
    width: 50%;
    min-height: 36px;
    padding: 0 10px;
}

.gallery-add-actions .btn-media-upload {
    min-width: 88px;
}

.gallery-add-actions .btn-media-localize {
    min-width: 76px;
}

@media (max-width: 760px) {
    .img-add-card-stack {
        grid-column: span 1;
    }
    .gallery-add-actions {
        flex-direction: column;
    }
    .gallery-add-actions .btn-media {
        width: 100%;
    }
}

.smart-gallery-grid {
    margin-top: 12px;
    min-height: 120px;
}

.ai-status {
    text-align: center;
    padding: 60px 20px;
}

.ai-status .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(229, 231, 235, 0.95);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ai-status p {
    color: var(--c-text);
    font-size: 1rem;
}

.ai-status .sub {
    color: var(--c-text-light);
    font-size: 0.85rem;
    margin-top: 8px;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 14px 18px;
    color: var(--c-text);
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    min-width: 320px;
}

.toast-title {
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.toast-msg {
    color: var(--c-text-light);
}

.toast-close {
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--c-text-light);
    cursor: pointer;
}
}
