/* =========================================
   BLOODNET CMS EXTENSIONS
   ========================================= */

/* Toggle switch */
.admin-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.admin-toggle input { opacity: 0; width: 0; height: 0; }
.admin-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.1); border-radius: 26px; transition: 0.3s; }
.admin-toggle-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.admin-toggle input:checked + .admin-toggle-slider { background: #e53e3e; }
.admin-toggle input:checked + .admin-toggle-slider::before { transform: translateX(22px); }

.hero-info-panel {
    border: 1px solid rgba(255, 26, 26, 0.22);
    border-radius: 16px;
    padding: 26px;
    background: rgba(12, 4, 4, 0.72);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
}

.hero-info-panel h3 {
    font-size: 1.45rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 10px;
}

.hero-info-panel p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.hero-info-list li {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-info-list i {
    color: var(--primary);
    font-size: 0.75rem;
}

.hero-split-inner {
    grid-template-columns: 1fr !important;
    max-width: 980px;
    margin: 0 auto;
}

.hs-left {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.hs-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 740px;
}

.hs-actions,
.hs-inline-stats {
    justify-content: center;
}

.catalog-empty {
    border: 1px dashed rgba(255, 26, 26, 0.4);
    background: rgba(255, 26, 26, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
    padding: 24px;
}

/* =========================================
   HOMEPAGE CATEGORIES
   ========================================= */
.categories-home {
    padding: 110px 0;
    position: relative;
}

.categories-home-header {
    text-align: center;
    margin-bottom: 44px;
}

.categories-home-header h2 {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    margin: 12px 0;
}

.categories-home-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 26, 26, 0.2);
    min-height: 540px;
    display: block;
    transition: var(--transition-smooth);
    background: rgba(12, 4, 4, 0.7);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 26, 26, 0.5);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 26, 26, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-card-overlay {
    display: none;
}

.category-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    z-index: 2;
}

.category-card-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
}

.category-card h3 {
    font-size: 1.5rem;
    line-height: 1.1;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.category-card-meta {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 26, 26, 0.16);
    border: 1px solid rgba(255, 26, 26, 0.34);
    color: white;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

/* =========================================
   ADMIN PAGE
   ========================================= */
.admin-page {
    padding: 150px 0 90px;
}

.admin-header {
    text-align: center;
    margin-bottom: 36px;
}

.admin-header h1 {
    font-size: 3rem;
    letter-spacing: -1px;
}

.admin-status {
    color: var(--text-muted);
}

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

.admin-card {
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 26, 26, 0.15);
}

.admin-card h2 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
}

.admin-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
}

.admin-checkbox input {
    width: 16px;
    height: 16px;
}

.admin-table-wrap {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

.admin-delete-btn {
    padding: 7px 12px;
    font-size: 0.72rem;
}

.admin-small-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
}

.admin-variants-wrap {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-variants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.admin-variants-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
}

.variant-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.variant-row-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.6fr auto auto;
    gap: 8px;
    align-items: center;
}

.product-variant-select {
    width: 100%;
    margin-top: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: 8px;
    padding: 9px 10px;
}

.admin-lite {
    background: #050505;
    color: #e5e5e5;
    cursor: auto !important;
}

.admin-lite * {
    cursor: inherit;
}

.admin-lite input,
.admin-lite textarea,
.admin-lite select,
.admin-lite [contenteditable="true"] {
    cursor: text !important;
}

.admin-lite button,
.admin-lite a,
.admin-lite [role="button"],
.admin-lite label {
    cursor: pointer !important;
}

.admin-auth-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #050505;
}

.admin-auth-gate[hidden] {
    display: none;
}

.admin-auth-card {
    width: min(420px, 100%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.admin-auth-card h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
}

.admin-auth-card p {
    margin: 8px 0 16px;
    color: #a3a3a3;
}

.admin-auth-form {
    display: grid;
    gap: 12px;
}

.admin-auth-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: #a3a3a3;
}

.admin-auth-form input {
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-auth-form input:focus {
    outline: none;
    border-color: #FF1A1A;
    box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.2);
}

.admin-remember-row {
    display: flex;
    align-items: center;
    margin: -4px 0 4px;
}
.admin-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    user-select: none;
}
.admin-remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FF1A1A;
    cursor: pointer;
    margin: 0;
}
.admin-remember-label span {
    line-height: 1;
}

.admin-auth-error {
    min-height: 20px;
    margin: 0;
    color: #FF1A1A;
    font-size: 0.88rem;
}

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

.admin-shell[hidden] {
    display: none;
}

.admin-sidebar {
    background: #0a0a0a;
    color: #d5dae3;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.admin-sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.admin-nav-link {
    width: 100%;
    border: 0;
    text-align: left;
    color: #a3a3a3;
    background: transparent;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.admin-nav-link:hover {
    background: rgba(255, 26, 26, 0.08);
    color: #ffffff;
}

.admin-nav-link.active {
    background: rgba(255, 26, 26, 0.15);
    color: #FF1A1A;
}

.admin-back-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.admin-back-link:hover {
    color: #FF1A1A;
}

.admin-main {
    padding: 28px 28px 36px;
    background: #0d0d0d;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    position: relative;
    z-index: 1;
    isolation: isolate;
    text-shadow: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    animation: none;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.admin-user-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    max-width: min(100%, 320px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 12px 6px 5px;
}

.admin-user-chip span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FF1A1A;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admin-user-chip strong {
    color: #e5e5e5;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-logout {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #a3a3a3;
    font-weight: 600;
    line-height: 1;
    padding: 8px 2px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.admin-logout:hover {
    color: #FF1A1A;
}

.admin-inline-status {
    margin-top: 16px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #8a8a8a;
    padding-right: 4px;
}

.admin-inline-status.error {
    color: #FF1A1A;
}

.admin-view {
    display: none;
}

.admin-view.active {
    display: block;
}

.admin-card-light {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.admin-maintenance h3 {
    margin: 0 0 6px;
    color: #ffffff;
}

.admin-maintenance p {
    margin: 0;
    color: #666;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.admin-stat-card span {
    display: block;
    color: #666;
    font-size: 0.84rem;
}

.admin-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    color: #ffffff;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-card-head h3 {
    margin: 0;
    color: #ffffff;
}

.admin-link-btn {
    border: 0;
    background: transparent;
    color: #FF1A1A;
    font-weight: 600;
    cursor: pointer;
}

.admin-chart {
    height: 230px;
}

.admin-bars {
    height: 100%;
    display: flex;
    align-items: end;
    gap: 10px;
}

.admin-bar-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.admin-bar {
    width: 100%;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #FF4444 0%, #FF1A1A 100%);
    min-height: 4px;
}

.admin-bar-item span {
    color: #666;
    font-size: 0.68rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-search {
    width: 100%;
    max-width: 360px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-search:focus {
    outline: none;
    border-color: #FF1A1A;
    box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.2);
}

.admin-search::placeholder {
    color: #555;
}

.admin-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-filter-chips button {
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #a3a3a3;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-filter-chips button:hover {
    border-color: rgba(255, 26, 26, 0.3);
    color: #ffffff;
}

.admin-filter-chips button.active {
    background: #FF1A1A;
    color: #ffffff;
    border-color: #FF1A1A;
}

.admin-primary-btn,
.admin-outline-btn,
.admin-delete-product,
.admin-remove-variant,
.admin-icon-btn {
    height: 38px;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}

.admin-primary-btn {
    border: 1px solid #FF1A1A;
    background: #FF1A1A;
    color: #ffffff;
    transition: all 0.2s;
}

.admin-primary-btn:hover {
    background: #e60000;
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.4);
}

.admin-outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e5e5e5;
    transition: all 0.2s;
}

.admin-outline-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.admin-delete-product,
.admin-remove-variant {
    border: 1px solid rgba(255, 26, 26, 0.3);
    background: rgba(255, 26, 26, 0.1);
    color: #FF1A1A;
    height: 34px;
    transition: all 0.2s;
}

.admin-delete-product:hover,
.admin-remove-variant:hover {
    background: rgba(255, 26, 26, 0.2);
}

.admin-edit-product {
    border: 1px solid rgba(255, 26, 26, 0.4);
    background: linear-gradient(135deg, #FF1A1A, #cc0000);
    color: #fff;
    height: 34px;
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-edit-product:hover {
    background: linear-gradient(135deg, #ff3333, #FF1A1A);
    box-shadow: 0 0 14px rgba(255, 26, 26, 0.35);
    transform: translateY(-1px);
}

.admin-edit-product i {
    font-size: 0.8rem;
}

.admin-category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.admin-category-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-category-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.admin-category-info {
    flex: 1;
    min-width: 0;
}

.admin-category-name {
    font-weight: 600;
    color: #e5e5e5;
    font-size: 0.95rem;
}

.admin-category-slug {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.admin-category-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-category-img-btn {
    border: 1px solid rgba(255, 26, 26, 0.3);
    background: rgba(255, 26, 26, 0.08);
    color: #FF1A1A;
    height: 32px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-category-img-btn:hover {
    background: rgba(255, 26, 26, 0.18);
}

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

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

.admin-table-wrap-lite th,
.admin-table-wrap-lite td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    padding: 10px;
    color: #e5e5e5;
    font-size: 0.9rem;
    vertical-align: top;
}

.admin-table-wrap-lite th {
    color: #666;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.status-pill.paid,
.status-pill.fulfilled,
.status-pill.shipped {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-pill.pending {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.3);
}

.status-pill.cancelled {
    background: rgba(255, 26, 26, 0.15);
    color: #FF1A1A;
    border-color: rgba(255, 26, 26, 0.3);
}

.status-pill.active,
.status-pill.delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-pill.expired,
.status-pill.inactive {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.status-pill.processing,
.status-pill.refunded {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.3);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.admin-modal-content {
    position: relative;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #0a0a0a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    padding: 22px 24px;
}

.admin-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-modal-head h2 {
    margin: 0;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
}

.admin-icon-btn {
    width: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #a3a3a3;
}

.admin-icon-btn:hover {
    color: #FF1A1A;
    border-color: rgba(255, 26, 26, 0.3);
}

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

.admin-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #a3a3a3;
}

.admin-form-grid input,
.admin-form-grid textarea,
.admin-form-grid select {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-form-grid input:focus,
.admin-form-grid textarea:focus,
.admin-form-grid select:focus {
    outline: none;
    border-color: #FF1A1A;
    box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.2);
}

.admin-form-grid select option {
    background: #111;
    color: #e5e5e5;
}

.admin-checkbox-row {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.admin-checkbox-row input {
    width: 16px;
    height: 16px;
}

.admin-subgrid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-full {
    grid-column: 1 / -1;
}

.admin-modal-actions {
    display: flex;
    justify-content: end;
    gap: 10px;
}

@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .admin-back-link {
        margin-top: 16px;
    }
}

@media (max-width: 760px) {
    .admin-main {
        padding: 20px 18px 28px;
    }

    .admin-toolbar,
    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }

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

    .admin-search {
        max-width: 100%;
    }

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

    .admin-form-grid,
    .admin-subgrid,
    .variant-row-grid {
        grid-template-columns: 1fr;
    }

    .admin-modal-actions {
        justify-content: stretch;
    }

    .admin-modal-actions button {
        flex: 1;
    }
}

@media (max-width: 1024px) {
    .home-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
    .variant-row-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 460px; }
}

@media (max-width: 700px) {
    .home-categories-grid { grid-template-columns: 1fr; }
    .categories-home-header h2 { font-size: 2.2rem; }
    .admin-header h1 { font-size: 2.2rem; }
    .category-card { min-height: 420px; }
}

/* =========================================
   STATUS PAGE
   ========================================= */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.status-card {
    padding: 24px;
    border-radius: 14px;
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.status-card-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-undetected {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-detected {
    background: rgba(255, 26, 26, 0.15);
    color: #FF1A1A;
    border: 1px solid rgba(255, 26, 26, 0.3);
}

.status-updating {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.status-card-meta {
    color: #555;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* =========================================
   REVIEWS PAGE
   ========================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-card {
    padding: 24px;
    border-radius: 14px;
}

.review-card-stars {
    color: #ffc800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-card-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.review-card-footer strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.review-card-footer span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* =========================================
   SUPPORT / FAQ PAGE
   ========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-card {
    padding: 24px;
    border-radius: 14px;
}

.faq-card h3 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: #ffffff;
}

.faq-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* =========================================
   ADMIN VISUAL BUG FIXES
   ========================================= */

/* Fix empty state in admin tables — less alarming style */
.admin-view .catalog-empty {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #555;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.9rem;
}

/* Fix stat card inner spacing */
.admin-stat-card {
    padding: 16px 18px;
}

/* =========================================
   PRODUCT FORM — CLEAN REDESIGN
   ========================================= */
.pf-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
}

.pf-label--accent {
    color: #FF1A1A;
}

.pf-hint {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.pf-hint--muted {
    color: #555;
    font-style: italic;
}

.pf-form input[type="text"],
.pf-form input[type="number"],
.pf-form input[type="url"],
.pf-form textarea,
.pf-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e5e5;
    -webkit-text-fill-color: #e5e5e5;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    color-scheme: dark;
}

.pf-form select:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
}

.pf-form input[type="file"].pf-category-file-input,
.pf-form input[type="file"] {
    width: 100%;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #a3a3a3;
    cursor: pointer !important;
}

.pf-form input:focus,
.pf-form textarea:focus,
.pf-form select:focus {
    outline: none;
    border-color: #FF1A1A;
    box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.15);
}

.pf-form input::placeholder,
.pf-form textarea::placeholder {
    color: #444;
}

.pf-form select option {
    background: #111;
    color: #e5e5e5;
}

.pf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pf-subfields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.pf-checkbox-row {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #a3a3a3;
    cursor: pointer;
}

.pf-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FF1A1A;
}

/* ---- Rich Text Editor ---- */
.pf-editor-wrap {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.pf-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.pf-editor-toolbar button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #a3a3a3;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.pf-editor-toolbar button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.pf-toolbar-select {
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #a3a3a3;
    font-size: 0.78rem;
    padding: 0 6px;
    cursor: pointer;
}

.pf-toolbar-select:focus {
    outline: none;
    border-color: rgba(255, 26, 26, 0.3);
}

.pf-toolbar-select option {
    background: #111;
    color: #e5e5e5;
}

.pf-toolbar-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
}

.pf-editor {
    min-height: 140px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 14px;
    color: #e5e5e5;
    font-size: 0.9rem;
    line-height: 1.65;
    font-family: 'Inter', sans-serif;
}

.pf-editor:empty::before {
    content: attr(data-placeholder);
    color: #444;
    pointer-events: none;
}

.pf-editor:focus {
    outline: none;
}

.pf-editor a {
    color: #FF1A1A;
    text-decoration: underline;
}

.pf-editor blockquote {
    border-left: 3px solid #FF1A1A;
    margin: 8px 0;
    padding: 4px 12px;
    color: #999;
}

.pf-editor h2,
.pf-editor h3 {
    color: #ffffff;
    margin: 8px 0 4px;
}

/* ---- Image Dropzone ---- */
.pf-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.pf-dropzone:hover,
.pf-dropzone--active {
    border-color: rgba(255, 26, 26, 0.4);
    background: rgba(255, 26, 26, 0.04);
}

.pf-dropzone i {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.pf-dropzone p {
    margin: 0 0 4px;
    color: #e5e5e5;
    font-size: 0.9rem;
}

.pf-dropzone > span {
    display: block;
    color: #555;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.pf-browse-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e5e5;
    padding: 6px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pf-browse-btn:hover {
    border-color: rgba(255, 26, 26, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.pf-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.pf-image-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-image-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #ff6b6b;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.pf-image-thumb:hover .pf-image-remove {
    opacity: 1;
}

/* ---- Product pricing variant rows (duration / tier) ---- */
.pf-variant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-variant-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.pf-variant-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-variant-grip {
    color: #444;
    cursor: grab;
    font-size: 0.8rem;
}

.pf-variant-title-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #e5e5e5 !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 4px 6px !important;
    border-radius: 6px !important;
}

.pf-variant-title-input:focus {
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
}

.pf-variant-remove {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.pf-variant-remove:hover {
    background: rgba(255, 26, 26, 0.15);
    color: #FF1A1A;
}

.pf-variant-row-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-variant-row-body input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #e5e5e5;
    font-size: 0.84rem;
    font-family: 'Inter', sans-serif;
}

.pf-variant-row-body input:focus {
    outline: none;
    border-color: rgba(255, 26, 26, 0.3);
}

.pf-variant-row-body input::placeholder {
    color: #444;
}

.pf-variant-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pf-add-variant-btn {
    align-self: flex-start;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    color: #888;
    padding: 8px 14px;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.pf-add-variant-btn:hover {
    border-color: rgba(255, 26, 26, 0.3);
    color: #FF1A1A;
    background: rgba(255, 26, 26, 0.04);
}

/* ---- Modal Actions ---- */
.pf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .pf-row-2 {
        grid-template-columns: 1fr;
    }

    .pf-variant-prices {
        grid-template-columns: 1fr;
    }

    .pf-actions {
        flex-direction: column;
    }

    .pf-actions button {
        width: 100%;
    }
}

/* =========================================
   DYNAMIC PRODUCT PAGE + CMS DESCRIPTION PROSE
   (storefront /product/* — Lucent-style readable layout)
   ========================================= */
.product-page.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 48px;
    align-items: start;
}

@media (max-width: 1024px) {
    .product-page.container {
        grid-template-columns: 1fr;
        padding: 100px 20px 80px;
    }
}

.product-media-col,
.product-info-col {
    min-width: 0;
}

.product-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e5e5;
    backdrop-filter: blur(8px);
}

.product-status-badge.undetected {
    border-color: rgba(46, 204, 113, 0.45);
    color: #2ecc71;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-game-badge {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 26, 26, 0.12);
    border: 1px solid rgba(255, 26, 26, 0.28);
    color: var(--primary);
}

.product-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
}

.product-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 20px;
    max-width: 52ch;
}

.product-key-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

@media (max-width: 600px) {
    .product-key-stats {
        grid-template-columns: 1fr;
    }
}

.product-key-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.product-key-stat .material-symbols-outlined {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.product-key-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
}

.product-key-stat-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e5e5;
}

.product-variant-selector {
    margin-bottom: 14px;
}

.product-variant-selector .duration-nav-label {
    display: block;
    margin-bottom: 8px;
}

.product-purchase-panel {
    padding: 22px;
    border-radius: 14px;
}

.purchase-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
}

.purchase-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-bottom: 16px;
}

.purchase-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.purchase-total-row {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.purchase-total-price {
    color: var(--primary);
    font-size: 1.05rem;
}

.btn-add-to-cart {
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.purchase-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.78rem;
    color: #777;
}

.product-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    display: block;
    vertical-align: top;
}

.product-tabs {
    margin-top: 20px;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.product-tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.product-tab-btn {
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: color 0.2s, background 0.2s;
}

.product-tab-btn:hover {
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.04);
}

.product-tab-btn.active {
    color: #fff;
    background: rgba(255, 26, 26, 0.12);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.product-tab-content {
    display: none;
    padding: 20px 22px 22px;
}

.product-tab-content.active {
    display: block;
}

.product-tab-list--static,
.product-tab-steps--static {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tab-list--static li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-tab-list--static li:last-child {
    border-bottom: none;
}

.product-tab-list--static .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.product-tab-steps--static {
    counter-reset: step;
    padding-left: 0;
}

.product-tab-steps--static li {
    position: relative;
    padding: 12px 0 12px 40px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    counter-increment: step;
}

.product-tab-steps--static li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 26, 26, 0.18);
    border: 1px solid rgba(255, 26, 26, 0.35);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-tab-steps--static li:last-child {
    border-bottom: none;
}

/* Rich text from admin CMS */
.product-cms-prose {
    min-height: 1.5em;
}

.cms-prose {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.cms-prose > *:first-child {
    margin-top: 0;
}

.cms-prose > *:last-child {
    margin-bottom: 0;
}

.cms-prose h1,
.cms-prose h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 1.35em 0 0.5em;
    line-height: 1.2;
}

.cms-prose h1 {
    font-size: 1.65rem;
}

.cms-prose h2 {
    font-size: 1.35rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 26, 26, 0.2);
}

.cms-prose h3,
.cms-prose h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #fff;
    margin: 1.25em 0 0.45em;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cms-prose h3::before,
.cms-prose h4::before {
    content: '';
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary-gold));
    flex-shrink: 0;
}

.cms-prose p {
    margin: 0 0 1em;
    color: var(--text-muted);
}

.cms-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-prose a:hover {
    color: #ff6b6b;
}

.cms-prose ul,
.cms-prose ol {
    margin: 0 0 1.15em;
    padding-left: 1.25em;
    color: var(--text-muted);
}

.cms-prose ul {
    list-style: none;
    padding-left: 0;
}

.cms-prose ul > li {
    position: relative;
    padding: 6px 0 6px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cms-prose ul > li:last-child {
    border-bottom: none;
}

.cms-prose ul ul {
    list-style: disc;
    padding-left: 1.35em;
    margin-top: 0.35em;
    margin-bottom: 0.35em;
}

.cms-prose ul ul > li {
    padding-left: 0.15em;
    border-bottom: none;
}

.cms-prose ul ul > li::before {
    display: none;
}

.cms-prose ul > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.85em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.45);
}

.cms-prose ol > li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
}

.cms-prose blockquote {
    margin: 1.25em 0;
    padding: 14px 18px;
    border-left: 3px solid var(--primary);
    background: rgba(255, 26, 26, 0.06);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.cms-prose hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.75em 0;
}

.cms-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.15em 0;
    font-size: 0.88rem;
}

.cms-prose th,
.cms-prose td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    text-align: left;
}

.cms-prose th {
    background: rgba(255, 26, 26, 0.1);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.cms-prose code {
    font-family: ui-monospace, monospace;
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #f0c4c4;
}

.cms-prose-fallback {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-prose-fallback li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cms-prose-fallback li:last-child {
    border-bottom: none;
}

.cms-prose-fallback .material-symbols-outlined {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Order confirmation (post-Stripe) */
.order-success-page {
    padding: 120px 24px 100px;
    max-width: 720px;
}

.order-success-inner {
    margin: 0 auto;
}

.order-success-card {
    padding: 36px 32px;
    border-radius: 16px;
    text-align: center;
}

.order-success-icon {
    font-size: 52px;
    display: block;
    margin: 0 auto 16px;
}

.order-success-icon--ok {
    color: #2ecc71;
}

.order-success-icon--wait {
    color: #f1c40f;
}

.order-success-icon--warn {
    color: var(--primary);
}

.order-success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.order-success-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin: 28px 0 12px;
    text-align: left;
}

.order-success-text {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 8px;
    text-align: left;
}

.order-success-steps {
    text-align: left;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 1.2em;
    margin: 0 0 20px;
}

.order-success-steps li {
    margin-bottom: 8px;
}

.order-id-box {
    margin: 24px 0;
    padding: 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 26, 26, 0.2);
    text-align: center;
}

.order-id-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 8px;
}

.order-id-value {
    display: block;
    font-size: 0.85rem;
    word-break: break-all;
    color: #f0f0f0;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.order-success-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    margin-top: 8px;
}

.order-success-items th,
.order-success-items td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-success-items tfoot td {
    border-bottom: none;
    padding-top: 12px;
}

code.admin-order-id {
    font-size: 0.72rem;
    word-break: break-all;
    display: inline-block;
    max-width: 220px;
    vertical-align: middle;
}

.admin-order-status-select {
    background: var(--bg-card, #1a1a2e);
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, #333);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.78rem;
    cursor: pointer;
}

.admin-delete-order {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
}
.admin-delete-order:hover {
    color: #ef4444;
}
