/* Global reset */
* {
    box-sizing: border-box;
}

/* Body – dark mode */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(rgba(3, 7, 18, 0.62), rgba(3, 7, 18, 0.82)),
        url('/assets/images/soft_golden_halo_background_150kb.webp') center top / cover fixed no-repeat;
    background-color: #030712;
    color: #e5e7eb;
}

/* Top bar */
.top-bar {
    background: #020617;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.icon-button {
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
}

.top-title {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.top-user {
    position: relative;
    cursor: pointer;
}

/* User dropdown */
.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 2.4rem;
    background: #020617;
    border: 1px solid #1f2937;
    min-width: 160px;
    z-index: 101;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
}

.user-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-menu a:hover {
    background: #111827;
}

/* Side menu */
.side-menu {
    position: fixed;
    left: -260px;
    top: 3rem;
    width: 240px;
    bottom: 0;
    max-height: calc(100dvh - 3rem);
    background: #020617;
    border-right: 1px solid #1f2937;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: left 0.2s ease;
    z-index: 90;
}

.side-menu.open {
    left: 0;
}

.side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.side-menu li a:hover {
    background: #111827;
}

/* Page content */
.page-content {
    padding: 1rem;
}

/* Plans / cards layout */
.plans-section h1 {
    margin-top: 0;
}

.plans-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.plan-card {
    background: #020617;
    border: 1px solid #1f2937;
    padding: 1rem;
    flex: 1 1 200px;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Features */
.features {
    margin-top: 1rem;
}

/* Login box */
.login-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Buttons – gradient (global) */
.btn {
    display: inline-block;
    border-radius: 999px;
    border: none;
    padding: 0.5rem 1.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn.secondary {
    background: #111827;
    border: 1px solid #4b5563;
}

/* Error text */
.error {
    color: #fca5a5;
}

/* Family tree / person cards */
.tree-section .tree-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tree-section .tree-row.center {
    justify-content: center;
}

.person-card {
    background: #020617;
    border: 1px solid #1f2937;
    padding: 0.75rem;
    width: 200px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.person-card input {
    width: 100%;
    padding: 0.25rem 0.4rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
}

/* Form controls */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

input[type="text"],
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
}

input[type="text"]::placeholder,
input[type="date"]::placeholder,
input[type="number"]::placeholder {
    color: #6b7280;
}

/* Form actions */
.form-actions {
    margin-top: 1rem;
    text-align: center;
}

.status {
    margin-left: 1rem;
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #374151;
    background: #020617;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: #111827;
    border-color: #6366f1;
}

.tab-panel {
    display: none;
    background: #020617;
    border: 1px solid #1f2937;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.tab-panel.active {
    display: block;
}

/* Charts */
.chart-wrapper {
    margin-top: 1rem;
}

/* Results (e.g. numerology / purchases) */
.result-box {
    background: rgba(34, 197, 94, 0.12); /* žalsvas permatomas */
    border: 1px solid #22c55e;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.75rem;
}

.result-description {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid #facc15;
    padding: 1rem;
    border-radius: 0.75rem;
}

.result-section p {
    margin: 0.25rem 0;
}

/* ============================
   Tarot pages (taro.php + taro_history.php)
   ============================ */

.tarot-page {
    background: #111827;
    color: #e5e7eb;
    min-height: 100vh;
    padding: 20px 0;
}

.tarot-container {
    max-width: 900px;
    margin: 0 auto;
    background: #020617;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
}

.tarot-page h1,
.tarot-page h2,
.tarot-page h3 {
    color: #f9fafb;
    margin-top: 0;
}

.tarot-intro {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0; /* buves margin-bottom: 1rem; – nuimam, nes tvarkys row */
}
.tarot-birth-date-row {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.tarot-birth-date-label {
    color: #cbd5e1;
    font-weight: 700;
}

.tarot-birth-date-controls {
    display: grid;
    grid-template-columns: minmax(180px, 260px) auto;
    gap: 0.6rem;
    align-items: center;
    justify-content: start;
}

.tarot-birth-date-input {
    width: 100%;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #020617;
    color: #e5e7eb;
    min-height: 42px;
    padding: 0.6rem 0.75rem;
}

.tarot-birth-date-input:focus {
    border-color: #a78bfa;
    outline: 2px solid rgba(167, 139, 250, 0.25);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .tarot-birth-date-controls {
        grid-template-columns: 1fr;
    }
}
/* Tarot form textarea */
.tarot-page textarea {
    width: 100%;
    min-height: 90px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    padding: 10px;
    resize: vertical;
}

/* Controls bar (Generate / Clear / Show cards) */
.tarot-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tarot-checkbox-label {
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.tarot-checkbox-label input[type="checkbox"] {
    accent-color: #6366f1;
}

/* Loading bar */
.tarot-loading-bar {
    margin-top: 10px;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: #111827;
    display: none;
}

.tarot-loading-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    animation: tarot-loading 1.2s infinite;
}

@keyframes tarot-loading {
    0%   { transform: translateX(-100%); width: 40%; }
    50%  { transform: translateX(0%);    width: 60%; }
    100% { transform: translateX(100%);  width: 40%; }
}

/* Cards grid */
.tarot-cards-wrapper {
    margin-top: 20px;
}

.tarot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.tarot-card-item {
    text-align: center;
    background: #020617;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #1f2937;
}

.tarot-card-item img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 0 auto 6px;
}

.tarot-card-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.tarot-card-name-en {
    font-size: 0.8rem;
    color: #9ca3af;
}

.tarot-card-type {
    font-size: 0.8rem;
    color: #9ca3af;
}

.tarot-card-orientation {
    font-size: 0.8rem;
    color: #f97316;
}

/* Sections & answer */
.tarot-section {
    margin-top: 24px;
}

.tarot-answer-box {
    white-space: pre-wrap;
    background: #020617;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #1f2937;
}

.tarot-answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.tarot-tts-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* Make sure tarot secondary button stays dark even with global .btn */
.tarot-page .btn.secondary {
    background: #111827;
    border: 1px solid #4b5563;
}

/* ============================
   Tarot history (taro_history.php)
   ============================ */

.tarot-history-filters {
    margin-top: 1rem;
    background: #020617;
    border-radius: 12px;
    border: 1px solid #1f2937;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.tarot-history-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tarot-filter-field {
    min-width: 160px;
    flex: 1 1 160px;
}

.tarot-filter-field label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.tarot-filter-field input[type="date"],
.tarot-filter-field input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
}

.tarot-history-filters-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tarot-history-table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.tarot-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tarot-history-table thead {
    background: #020617;
}

.tarot-history-table th,
.tarot-history-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #1f2937;
    text-align: left;
}

.tarot-history-table th {
    font-weight: 600;
    color: #e5e7eb;
}

.tarot-history-table tbody tr:hover {
    background: #111827;
}

.tarot-history-detail {
    margin-top: 24px;
    border-top: 1px solid #1f2937;
    padding-top: 16px;
}

.tarot-history-detail-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

.tarot-history-detail-block {
    margin-top: 12px;
}

.tarot-intro-row {
    display: inline-flex;      /* vietoj block flex – inline-flex */
    align-items: center;
    gap: 8px;                  /* tarpas tarp teksto ir ikoneles */
    margin-bottom: 8px;
}

.tarot-intro {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;                 /* kad neplestu blokelio */
}
.tarot-history-icon {
    font-size: 1.3rem;
    text-decoration: none;
    color: #e5e7eb;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.tarot-history-icon:hover {
    background: #1f2937;
}

.tarot-input-block {
    max-width: 600px;       /* ? reguliuok pagal norima ploti */
    margin: 0 auto 16px;    /* centrojame */
}

.tarot-input-block textarea {
    width: 100%;            /* užpildys tik vidini bloka */
    display: block;
}

/* ============================
   adminn.php
   ============================ */

.admin-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #e5e7eb;
}

.users-admin-body {
    padding: 24px;
}

.users-admin-page {
    max-width: 1600px;
    margin: 0 auto;
}

.access-denied-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.no-access-box {
    width: 100%;
    max-width: 520px;
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.no-access-box h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #f8fafc;
}

.no-access-box p {
    margin: 0;
    color: #94a3b8;
}

.db-card {
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.db-head {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    margin-bottom: 16px;
}

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

.admin-topbar-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
}

.admin-topbar-user {
    color: #94a3b8;
    font-size: 0.9rem;
}

.db-form-grid {
    display: grid;
    grid-template-columns: 120px minmax(240px, 1fr) 100px 220px;
    gap: 12px;
    align-items: center;
}

.db-form-grid label {
    color: #cbd5e1;
    font-weight: 600;
}

.db-input,
.db-select,
.tiny-input,
.tiny-select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.92rem;
}

.db-input::placeholder,
.tiny-input::placeholder {
    color: #64748b;
}

.db-input:focus,
.db-select:focus,
.tiny-input:focus,
.tiny-select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.toolbar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-db {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #475569;
    background: #111827;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn-db:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.btn-db.primary {
    border-color: transparent;
    background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
    color: #fff;
}

.btn-db-small {
    min-height: 36px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
}

.btn-db-icon-only {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
}

.btn-db-icon-only .btn-icon {
    width: 18px;
    height: 18px;
    margin: 0;
}

button.btn-db-icon-only {
    appearance: none;
    line-height: 1;
    vertical-align: middle;
}

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

.content-page-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.content-page-actions form {
    display: inline-flex !important;
}

.muted {
    color: #94a3b8;
}

.status-box {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    font-weight: 600;
}

.status-box.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
    color: #dcfce7;
}

.status-box.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #fecaca;
}

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

.db-table {
    width: 100%;
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.db-table thead th {
    background: #0f172a;
    color: #f8fafc;
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #334155;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.db-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #1f2937;
    vertical-align: middle;
    background: rgba(15, 23, 42, 0.45);
}

.db-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.72);
}

.db-table tbody tr.row-expired td {
    background: rgba(250, 204, 21, 0.08);
}

.db-table tbody tr.row-inactive td {
    background: rgba(239, 68, 68, 0.08);
}

.db-table form {
    display: contents;
}

.db-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    color: #cbd5e1;
    word-break: break-all;
    max-width: 260px;
}

.state-active,
.state-inactive,
.state-expired,
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.state-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
    color: #86efac;
}

.state-inactive {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #fca5a5;
}

.state-expired {
    background: rgba(250, 204, 21, 0.12);
    border-color: #facc15;
    color: #fde68a;
}

.plan-free {
    background: rgba(100, 116, 139, 0.18);
    border-color: #64748b;
    color: #cbd5e1;
}

.plan-basic {
    background: rgba(59, 130, 246, 0.14);
    border-color: #3b82f6;
    color: #93c5fd;
}

.plan-premium {
    background: rgba(168, 85, 247, 0.14);
    border-color: #a855f7;
    color: #d8b4fe;
}

.table-note {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .users-admin-body {
        padding: 12px;
    }

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

    .admin-topbar-title {
        font-size: 1.35rem;
    }
}
/* Site footer */
.site-footer {
    margin-top: 2rem;
    padding: 1.5rem 1rem 0;
    color: #9ca3af;
}

.site-footer .disclaimer {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer h2 {
    margin: 0 0 0.5rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}
.site-footer h3 {
    margin: 1.25rem 0 0.5rem;
    color: #d1d5db;
    font-size: 0.9rem;
}

.site-footer ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.site-footer li {
    margin: 0.35rem 0;
}

.disclaimer-section,
.disclaimer-subsection {
    margin-top: 1rem;
}

.legal-page {
    color: #d1d5db;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
    color: #f9fafb;
}

.legal-page h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.legal-page h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
    text-align: left;
}

.legal-page ul,
.legal-page ol {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.5rem;
}

.legal-page-section {
    margin: 0 0 1.75rem;
}

.legal-link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.75rem;
    margin-top: 1.5rem;
}

.legal-link-row a {
    color: #c7d2fe;
    text-decoration: none;
}

.legal-link-row a:hover,
.legal-link-row a:focus {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.footer-link {
    color: #c7d2fe;
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.modal-open {
    overflow: hidden;
}

.agreement-modal[hidden] {
    display: none;
}

.agreement-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.agreement-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
}

.agreement-modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(820px, 92vh);
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agreement-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #1f2937;
}

.agreement-modal-header h2 {
    flex: 1;
    margin: 0;
    color: #e5e7eb;
    font-size: 1.1rem;
}

.agreement-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid #374151;
    border-radius: 999px;
    background: #111827;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.agreement-close:hover,
.agreement-close:focus {
    background: #1f2937;
}

.agreement-modal-body {
    overflow-y: auto;
    padding: 1.25rem;
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
}

.agreement-modal-body p {
    margin: 0 0 0.75rem;
}

.agreement-modal-body h3 {
    margin: 1.25rem 0 0.5rem;
    color: #f3f4f6;
    font-size: 0.95rem;
}

.agreement-modal-body ul {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.25rem;
}

.agreement-modal-body li {
    margin: 0.35rem 0;
}
.footer-legal-details {
    margin-top: 0.75rem;
}

.footer-legal-summary {
    display: none;
    cursor: pointer;
    color: #c7d2fe;
    font-weight: 700;
    text-align: center;
    list-style: none;
}

.footer-legal-summary::-webkit-details-marker {
    display: none;
}

.footer-legal-summary::after {
    content: " +";
    color: #9ca3af;
}

.footer-legal-details[open] .footer-legal-summary::after {
    content: " -";
}
.footer-copyright {
    margin: 0 0 0.5rem;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem 1.2rem;
    margin: 0.75rem auto 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.site-footer .footer-links li {
    margin: 0;
}

.footer-links .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 640px) {
.legal-link-row {
        flex-direction: column;
        gap: 0.55rem;
    }

    .legal-link-row span {
        display: none;
    }

    .footer-legal-summary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.35rem;
        margin-top: 0.35rem;
    }

    .footer-links .footer-link {
        min-height: 38px;
    }
}
.settings-success {
    margin: 0 0 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}
.agreement-modal-body h2 {
    margin: 0 0 0.85rem;
    color: #f9fafb;
    font-size: 1.15rem;
}
.luck-description-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.luck-description-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #111827;
    border: 1px solid #1f2937;
}
@media (max-width: 640px) {
    .agreement-modal {
        align-items: stretch;
        padding: 0.5rem;
    }

    .agreement-modal-panel {
        width: 100%;
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 0.6rem;
    }

    .agreement-modal-header {
        padding: 0.85rem 1rem;
    }

    .agreement-modal-body {
        padding: 1rem;
    }
}
/* Global loading overlay */
.app-loader[hidden] {
    display: none;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(3px);
}

.app-loader-panel {
    display: grid;
    gap: 0.75rem;
    place-items: center;
    min-width: 148px;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(214, 180, 106, 0.35);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.app-loader-icon {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 16px;
    animation: mystic-loader-spin 1.15s linear infinite, mystic-loader-pulse 1.6s ease-in-out infinite;
    transform-origin: 50% 50%;
}

.app-loader-text {
    color: #e5e7eb;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@keyframes mystic-loader-spin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes mystic-loader-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(214, 180, 106, 0)); opacity: 0.92; }
    50% { filter: drop-shadow(0 0 12px rgba(214, 180, 106, 0.72)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .app-loader-icon {
        animation: mystic-loader-pulse 1.6s ease-in-out infinite;
    }
}


/* Responsive table cards, enabled from Administration settings. */
@media (max-width: 640px) {
    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.85rem;
    }

    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) thead {
        display: none;
    }

    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table),
    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) tbody,
    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) tr,
    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) td {
        display: block;
        width: 100%;
    }

    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) tr {
        padding: 0.75rem;
        border: 1px solid #1f2937;
        border-radius: 0.75rem;
        background: #020617;
    }

    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) td {
        display: grid;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: center;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(31, 41, 55, 0.7);
        text-align: left;
    }

    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) td:last-child {
        border-bottom: none;
    }

    body.mobile-card-tables table.mobile-card-table:not(.activation-data-table) td::before {
        content: attr(data-label);
        color: #9ca3af;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    body.mobile-card-tables .table-wrap,
    body.mobile-card-tables .sessions-card {
        overflow-x: visible;
    }
}
.academy-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.academy-card {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.academy-article {
    color: #d1d5db;
    line-height: 1.7;
}

.academy-article h1 {
    margin-top: 0;
    color: #f9fafb;
}

.academy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.academy-warning {
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    font-weight: 700;
}
.academy-article .lead {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.academy-article h2 {
    margin-top: 2rem;
    padding-top: 0.75rem;
    border-top: 1px solid #1f2937;
    color: #f9fafb;
}

.academy-article h3,
.academy-article h4 {
    margin-top: 1.5rem;
    color: #f9fafb;
}

.academy-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.academy-article th,
.academy-article td {
    border: 1px solid #334155;
    padding: 0.75rem 0.875rem;
    text-align: left;
    vertical-align: top;
}

.academy-article th {
    background: #111827;
    color: #f9fafb;
}

.academy-article .matrix td {
    width: 33.333%;
    height: 72px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.academy-article .formula,
.academy-article .note,
.academy-article .warning,
.academy-article .cta,
.academy-article .card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1rem;
}

.academy-article .formula {
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
}

.academy-article .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.academy-article .cta a {
    color: #93c5fd;
    font-weight: 700;
}

@media (max-width: 640px) {
    .academy-card {
        padding: 1rem;
    }

    .academy-article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.content-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.content-form-grid label {
    color: #cbd5e1;
    font-weight: 700;
}

.content-form-wide {
    grid-column: 1 / -1;
}

.content-editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1rem;
}

.content-editor-tab {
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e5e7eb;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 38px;
    padding: 0 18px;
}

.content-editor-tab.active {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border-color: transparent;
    color: #111827;
}

.content-editor-panel[hidden] {
    display: none;
}
.content-textarea-small {
    min-height: 90px;
    resize: vertical;
}

.content-textarea {
    min-height: 360px;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
}


.content-wysiwyg-shell {
    display: grid;
    gap: 0;
    margin-top: 0.45rem;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
}

.content-wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #334155;
    background: rgba(15, 23, 42, 0.94);
}

.content-wysiwyg-button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.content-wysiwyg-button:hover,
.content-wysiwyg-button:focus-visible {
    border-color: #818cf8;
    background: #1f2937;
    color: #ffffff;
    outline: none;
}

.content-wysiwyg-editor {
    min-height: 360px;
    padding: 18px;
    color: #e5e7eb;
    line-height: 1.7;
    font-size: 1rem;
    outline: none;
    overflow: auto;
}

.content-wysiwyg-editor:focus {
    box-shadow: inset 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.content-wysiwyg-editor h2,
.content-wysiwyg-editor h3 {
    color: #f9fafb;
    margin: 1.1rem 0 0.55rem;
}

.content-wysiwyg-editor p {
    margin: 0 0 0.9rem;
}

.content-wysiwyg-editor ul,
.content-wysiwyg-editor ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.content-wysiwyg-editor blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid #facc15;
    border-radius: 8px;
    background: rgba(250, 204, 21, 0.08);
    color: #fde68a;
}

.content-wysiwyg-editor a {
    color: #93c5fd;
}

.content-wysiwyg-source {
    min-height: 360px;
    border: 0;
    border-radius: 0;
    font-family: Consolas, Monaco, monospace;
}

@media (max-width: 720px) {
    .content-wysiwyg-toolbar {
        gap: 5px;
        padding: 8px;
    }

    .content-wysiwyg-button {
        flex: 1 1 calc(50% - 6px);
        padding: 0 8px;
    }

    .content-wysiwyg-editor,
    .content-wysiwyg-source {
        min-height: 300px;
    }
}.content-check-row {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.content-check-row input {
    width: 18px;
    height: 18px;
}


.content-translation-fieldset {
    display: grid;
    gap: 14px;
    margin: 8px 0 16px;
    padding: 16px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
}

.content-translation-fieldset legend {
    padding: 0 8px;
    color: #facc15;
    font-weight: 800;
}

.content-translation-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

#content-translate-status.error {
    color: #fca5a5;
}

.content-language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.content-language-tab {
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e5e7eb;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 36px;
    padding: 0 16px;
}

.content-language-tab.active {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border-color: transparent;
    color: #111827;
}

.content-translation-fieldset[hidden] {
    display: none;
}

.content-pages-table {
    min-width: 980px;
}

@media (max-width: 720px) {
    .content-form-grid {
        grid-template-columns: 1fr;
    }

    .content-textarea {
        min-height: 300px;
    }
}
.admin-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.notice {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
}

.notice.success {
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.notice.error {
    border-color: rgba(248, 113, 113, 0.48);
    color: #fecaca;
}
.guest-login {
    cursor: default;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.42);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(236, 72, 153, 0.9));
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
}

.header-login-btn:hover {
    border-color: rgba(250, 204, 21, 0.68);
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.24);
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.header-login-btn:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.34);
    outline-offset: 3px;
}

.header-login-btn:active {
    transform: translateY(0);
}
.content-page {
    width: 100%;
    padding: 40px 20px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 48px;
    line-height: 1.75;
    font-size: 18px;
    border-radius: 18px;
}

.content-container h1,
.content-container h2,
.content-container h3 {
    line-height: 1.25;
    margin-top: 36px;
    margin-bottom: 16px;
}

.content-container h1:first-child,
.content-container h2:first-child,
.content-container h3:first-child {
    margin-top: 0;
}

.content-container p {
    margin-bottom: 18px;
}

.content-container ul,
.content-container ol {
    margin-bottom: 22px;
    padding-left: 28px;
}

.content-container li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .content-page {
        padding: 24px 12px;
    }

    .content-container {
        max-width: 100%;
        padding: 24px 18px;
        font-size: 17px;
        line-height: 1.65;
    }
}
.top-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.top-title-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.24), 0 8px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
    .top-title-logo {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}
.google-login-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.auth-login-body {
    background: #111827;
    color: #e5e7eb;
}

.auth-login-body .page-content {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 6vw, 64px) 16px;
}

.auth-login-body .site-footer {
    margin-top: 0;
}

.auth-page,
.login-choice-page {
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-card,
.login-choice-panel {
    width: 100%;
    max-width: 440px;
    display: grid;
    gap: 22px;
    padding: 32px;
    border: 1px solid #1f2937;
    border-radius: 22px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.auth-header {
    display: grid;
    gap: 8px;
    text-align: center;
}

.auth-title {
    margin: 0;
    color: #f9fafb;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
}

.auth-subtitle {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.5;
}

.auth-form,
.login-provider-stack {
    width: 100%;
    display: grid;
    gap: 12px;
}

.auth-button,
.login-provider {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.auth-social-icon,
.login-provider-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.auth-social-icon svg,
.login-provider-icon svg,
.auth-social-icon img,
.login-provider-icon img {
    display: block;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
}


.auth-button-google .auth-social-icon,
.login-provider.google .login-provider-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    background: #ffffff;
}

.auth-button-google .auth-social-icon svg,
.auth-button-google .auth-social-icon img,
.login-provider.google .login-provider-icon svg,
.login-provider.google .login-provider-icon img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.auth-button-google,
.login-provider.google {
    min-height: 40px;
    padding: 0 12px;
    gap: 10px;
    background: #ffffff;
    color: #1f1f1f;
    border-color: #747775;
    border-radius: 4px;
    box-shadow: none;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.auth-button-facebook,
.login-provider.facebook {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.22);
}

.auth-button:hover,
.login-provider:hover {
    transform: translateY(-1px);
}

.auth-button-google:hover,
.login-provider.google:hover {
    background: #f8fafd;
    border-color: #747775;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.auth-button-facebook:hover,
.login-provider.facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.auth-button:focus-visible,
.login-provider:focus-visible,
.auth-links a:focus-visible {
    outline: 3px solid rgba(24, 119, 242, 0.28);
    outline-offset: 3px;
}

.auth-error,
.login-error {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(248, 113, 113, 0.42);
    border-radius: 12px;
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    font-weight: 700;
    text-align: center;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    color: #94a3b8;
    font-size: 0.86rem;
}

.auth-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.auth-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-login-body .page-content {
        min-height: calc(100vh - 56px);
        padding: 16px;
    }

    .auth-card,
    .login-choice-panel {
        width: 100%;
        max-width: 440px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 1.45rem;
    }

    .auth-subtitle {
        font-size: 0.94rem;
    }

    .auth-button,
    .login-provider {
        min-height: 46px;
        font-size: 0.96rem;
    }
}


/* Gold button theme, controlled by app_settings.use_gold_color_buttons */
body.gold-buttons .btn,
body.gold-buttons .btn-db.primary,
body.gold-buttons .header-login-btn,
body.gold-buttons .content-wysiwyg-button.is-active,
body.gold-buttons button[type="submit"]:not(.auth-button):not(.login-provider):not(.btn-db-icon-only),
body.gold-buttons input[type="submit"] {
    background: linear-gradient(135deg, #f7d36b 0%, #c7932d 48%, #6f4b13 100%) !important;
    border-color: rgba(247, 211, 107, 0.68) !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(199, 147, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.gold-buttons .btn:hover,
body.gold-buttons .btn-db.primary:hover,
body.gold-buttons .header-login-btn:hover,
body.gold-buttons button[type="submit"]:not(.auth-button):not(.login-provider):not(.btn-db-icon-only):hover,
body.gold-buttons input[type="submit"]:hover {
    background: linear-gradient(135deg, #ffe391 0%, #d5a13a 48%, #7c5418 100%) !important;
    box-shadow: 0 14px 30px rgba(247, 211, 107, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

body.gold-buttons .btn.secondary,
body.gold-buttons .btn-db:not(.primary),
body.gold-buttons button.secondary,
body.gold-buttons .content-wysiwyg-button {
    background: rgba(17, 24, 39, 0.92) !important;
    border-color: rgba(247, 211, 107, 0.42) !important;
    color: #f7d36b !important;
}

body.gold-buttons .btn.secondary:hover,
body.gold-buttons .btn-db:not(.primary):hover,
body.gold-buttons button.secondary:hover,
body.gold-buttons .content-wysiwyg-button:hover {
    background: rgba(48, 36, 14, 0.92) !important;
    border-color: rgba(247, 211, 107, 0.72) !important;
    color: #ffe391 !important;
}

body.gold-buttons .tarot-loading-bar::before {
    background: linear-gradient(90deg, #f7d36b, #c7932d, #6f4b13) !important;
}

.legal-close-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.legal-close-actions .btn {
    min-width: 140px;
}

.tarot-card-gallery {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tarot-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 14px 12px;
    margin-top: 1rem;
}

.tarot-card-thumb {
    margin: 0;
    text-align: center;
}

.tarot-card-thumb img {
    display: block;
    width: 72px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.tarot-card-thumb figcaption {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.25;
}