/* ==============================
   RESET
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ss-onboarding {
    background: #000000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    color: #d49547;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
}

.ss-body-locked {
    overflow: hidden;
}

/* ==============================
   GLOBAL HEADER
   ============================== */

#global-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.90),
    rgba(0, 0, 0, 0.40),
    rgba(0, 0, 0, 0.0)
    );
    pointer-events: none;
    width: 100%;
}

#global-header .header-left,
#global-header .header-right {
    pointer-events: auto;
}

.header-icon-button {
    border: none;
    background: transparent;
    color: #d49547;
    font-size: 22px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.9;
}

.header-ghost-button {
    border-radius: 6px;
    border: 1px solid rgb(221, 159, 78);
    background: rgba(10, 6, 20, 0.7);
    color: #dd9e4d;
    font-size: 11px;
    padding: 6px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-ghost-button span {
    font-weight: 600;
}

/* ==============================
   Modal (login)
   ============================== */

.app-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 400;
}

.app-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.app-modal-dialog {
    position: relative;
    width: min(480px, 92vw);
    background: rgba(12, 9, 15, 0.94);
    border: 1px solid rgba(233, 192, 120, 0.2);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    color: #f5e0b8;
    text-align: left;
}

.app-modal h2 {
    margin-bottom: 14px;
    font-size: 20px;
    color: #f0d59f;
}

.app-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #f0d59f;
    font-size: 20px;
    cursor: pointer;
}

.app-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.app-modal label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ca985e;
}

.app-modal input[type="email"],
.app-modal input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(233, 192, 120, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: #f5e0b8;
    font-size: 15px;
}

.app-modal input[type="email"]:focus,
.app-modal input[type="password"]:focus {
    outline: none;
    border-color: #f0d59f;
    box-shadow: 0 0 0 2px rgba(240, 213, 159, 0.15);
}

.app-modal .form-error {
    min-height: 18px;
    color: #ffb2b2;
    font-size: 14px;
    margin-bottom: 10px;
}

.app-modal .btn-primary {
    width: 100%;
    margin-top: 6px;
}

/* ==============================
   LAYOUT
   ============================== */

/*google locations autocomplete override*/
.pac-item, .pac-item-query{
    background:#2a2a2a;
    color: #e4a557;
    border: #e4a557;
}

#ss-main {
    /*! min-height: 100vh; */
    /*! padding-top: 64px; */ /* miejsce na header */
    /*! display: flex; */
    flex-direction: column;
    background: #000000;
}

#ss-hero {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 0px;
    padding-bottom: 8px;
}

/* Logo z ciemnosci */

#logo-wrapper {
    width: 100%;
    max-width: 505px;
    opacity: 0;
    transform: translateY(14px);
    /* logo wyłania się wolniej */
    transition: opacity 2.3s ease-out, transform 2.3s ease-out;
}


#logo-wrapper img {
    width: 100%;
    display: block;
}

#logo-wrapper.logo-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dolna czesc z rozmowa */

#ss-conversation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    padding: 10px 18px 32px;
    background: #000000;
}

#ss-onboarding-form {
    width: 100%;
    max-width: 520px;
}

/* ==============================
   Teksty rozmowy
   ============================== */

.ss-step {
    display: none;
}

.ss-step-active {
    display: block;
}

/* bazowa animacja elementow (pojawiaja sie z ciemnosci) */

.ss-anim {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    /* wolniejsze wejście tekstów i inputów */
    transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}


.ss-anim-show {
    opacity: 1;
    transform: translateY(0) scale(1.0);
}

/* lekki „growth” dla glownego pytania */

.ss-anim-grow {
    transform: translateY(10px) scale(0.92);
}

.ss-anim-grow-small {
    transform: translateY(6px) scale(0.94);
}

.ss-line-small,
.ss-line-main {
    max-width: 100%;
}

.ss-line-small, .ss-line-main {
    font-size: 18px;
    color: #c0a45e;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* ==============================
   Choice buttons Tarot / Astro
   ============================== */

.ss-choice-row {
    display: flex;
    gap: 51px;
    margin-top: 6px;
}

.ss-choice-btn {
    flex: 1 1 0;
    border-radius: 9px;
    border: 2px solid rgba(221, 163, 69, 0.75);
    background: transparent;
    color: #ca985e;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.22s ease-out, color 0.22s ease-out, box-shadow 0.22s ease-out;
}

.ss-choice-btn:hover,
.ss-choice-btn:focus-visible {
    background: rgba(245, 227, 192, 0.12);
    box-shadow: 0 0 0 1px rgba(245, 227, 192, 0.35);
    outline: none;
}

/* ==============================
   Pola input - minimalistyczne
   ============================== */

.ss-field-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ca985e;
    margin-bottom: 4px;
    text-align: left;
    margin: 30px 0 4px 0;
}

.ss-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(212, 181, 132, 0.7);
    background: transparent;
    color: #c89d6c;
    font-size: 15px;
    padding: 8px 2px 6px;
    margin-bottom: 18px;
    outline: none;
}

.ss-field-error {
    font-size: 13px;
    color: #e7a856;
    min-height: 1em;
    opacity: 0;
    transition: opacity 0.28s ease-out;
    /* text-align: left; */
    margin-top: 20px;
    width: 100%;
    text-align: center;
    /* border: 1px solid grey; */
    padding: 10px;
}

.ss-field-error.is-visible {
    opacity: 1;
}

.ss-input::placeholder {
    color: rgba(216, 191, 145, 0.5);
}

.ss-input:focus {
    border-bottom-color: #f0d59f;
}

/* data + time w jednym rzedzie */

.ss-inline-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.ss-field-block {
    flex: 1 1 0;
}

/* ==============================
   Nawigacja
   ============================== */

.ss-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 12px;
}

.btn-primary,
.btn-text {
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ca985e, #e3b05e);
    color: #1b1207;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}
.btn-text {
    background: transparent;
    color: #ca985e;
    border: 1px solid rgb(202, 153, 95);
}

/* ==============================
   Responsywne drobiazgi
   ============================== */

@media (min-width: 768px) {
    #ss-hero {
        padding-top: 48px;
        padding-bottom: 12px;
    }
    .ss-line-main {
        font-size: 20px;
    }
}

/* Additional UI states for new onboarding flow */
.ss-error {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: rgba(255, 102, 102, 0.12);
    border: 1px solid rgba(255, 153, 153, 0.4);
    color: #ffdede;
    border-radius: 8px;
    font-size: 14px;
}

.ss-error.visible {
    display: block;
}

/* Dashboard shell (mobile-first, future expandable) */
.ss-mobile-body {
    margin: 0;
    min-height: 100vh;
    color: #f7f2e9;
    font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
    /*background: #000 url(/assets/img/clouds_bg.jpg);*/
    background: #000;
    position: relative;
    /*background-size: cover;*/
    /*background-position-y: -47px;*/
    /*background-repeat: no-repeat;*/

}

.ss-mobile-body::after {
    content: "";
    position: absolute;
    inset: 0;

    /* tu ustawiasz jak blednie ornament */
    background: rgba(0, 0, 0, 0.25); /* 0.60 = 60% przyciemnienia */

    pointer-events: none;
    z-index: 0;
}

.ss-mobile-header.ss-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: none;
    /* backdrop-filter: blur(12px); */
    z-index: 10;
    overflow: hidden;
}
.ss-tarot-session .ss-mobile-header.ss-dashboard-header {
    background: none;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(233, 192, 120, 0.18);
}
.ss-mobile-header .ss-logo a{
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e9c078;
    position: relative;
    z-index: 2;
}

.ss-hamburger {
    position: relative;
    overflow: hidden;
    background: none;
    border: none;
    color: #e9c078;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    /* box-shadow: 0 0 18px rgba(233, 192, 120, 0.18), inset 0 0 12px rgba(0, 0, 0, 0.8); */
}

.ss-hamburger-icon {
    position: relative;
    z-index: 2;
}

.ss-menu-panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 215;
}

.ss-menu-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ss-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

.ss-menu-sheet {
    position: relative;
    background: rgba(15, 11, 18, 0.96);
    border: 1px solid rgba(233, 192, 120, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    width: min(360px, 82vw);
    margin: 16px;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
    z-index: 1;
}

.ss-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #f5e0b8;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
}

.ss-menu-link {
    color: #f5e0b8;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(233, 192, 120, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ss-menu-link:hover,
.ss-menu-link:focus-visible {
    background: rgba(233, 192, 120, 0.08);
    border-color: rgba(233, 192, 120, 0.28);
}

/* ==============================
   Legal pages
   ============================== */

.legal-page {
    padding: 88px 18px 36px;
    background: #000000;
    display: flex;
    justify-content: center;
}

.legal-container {
    width: 100%;
    max-width: 760px;
    background: rgba(12, 9, 15, 0.88);
    border: 1px solid rgba(233, 192, 120, 0.18);
    border-radius: 16px;
    padding: 22px 20px 26px;
    color: #f5e0b8;
    text-align: left;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.legal-container h1 {
    font-size: 26px;
    margin-bottom: 16px;
    color: #f0d59f;
}

.legal-container h2 {
    font-size: 18px;
    margin: 18px 0 10px;
    color: #e9c078;
}

.legal-container p,
.legal-container li {
    font-size: 15px;
    line-height: 1.6;
    color: #f8e8c5;
}

.legal-container p + p {
    margin-top: 10px;
}

.legal-container ul {
    margin: 8px 0 14px 18px;
    list-style: disc;
}

.ss-hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin: 12px 20px;
    /* border-radius: 14px; */
    /* background: linear-gradient(135deg, rgba(233, 192, 120, 0.12), rgba(62, 43, 79, 0.7)); */
    /* border: 1px solid rgba(233, 192, 120, 0.32); */
    /*box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);*/
}

.ss-hero-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.ss-hero-text {
    font-size: 16px;
    margin: 0 auto 6px;
    text-align: center;
    color: #efc276;
    line-height: 1.6;
    max-width: 900px;
    padding: 0 14px;
}


.ss-tile {
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(circle at top, rgba(250, 214, 149, 0.16), transparent 55%),
            radial-gradient(circle at bottom, #050307, #000000);
    border: 1px solid rgba(233, 192, 120, 0.45);
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow:
            0 0 28px rgba(221, 163, 69, 0.25),
            inset 0 0 12px rgba(0, 0, 0, 0.85);
    transform: translateY(6px) scale(0.97);
    transform-origin: center bottom;
    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease,
            background 0.35s ease;
}
a.ss-tile{text-decoration: none}
.ss-tile h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #fccd79;
    position: relative;
    z-index: 2;
}

.ss-tile p {
    margin: 0 0 10px;
    color: #bd995a;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.ss-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(233, 192, 120, 0.15);
    border: 1px solid rgba(233, 192, 120, 0.35);
    color: #f3d9a9;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.ss-tile:hover,
.ss-tile:focus-visible {
    transform: translateY(0) scale(1.02);
    box-shadow:
            0 0 38px rgba(221, 163, 69, 0.4),
            inset 0 0 18px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 214, 147, 0.9);
    outline: none;
}

/* Golden matrix streams */
.ss-code-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ss-code-stream {
    position: absolute;
    top: -160%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1.1;
    letter-spacing: 0;
    color: rgba(255, 220, 180, 0.32);
    animation-name: ss-stream-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes ss-stream-fall {
    from {
        top: -160%;
        opacity: 0.45;
    }
    to {
        top: 160%;
        opacity: 0.05;
    }
}

/* Header + hamburger subtle layers */
.ss-mobile-header .ss-code-layer,
.ss-hamburger .ss-code-layer {
    filter: blur(1px);
    opacity: 0.45;
}

.ss-hamburger .ss-code-stream {
    font-size: 13px;
}

.ss-mobile-header .ss-code-stream {
    color: rgba(255, 220, 180, 0.22);
}

@media (min-width: 640px) {
    .ss-dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Session history modal */
.ss-session-history-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 220;
}

.ss-session-history-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ss-session-history-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

.ss-session-history-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    background: radial-gradient(circle at 10% 10%, rgba(233, 192, 120, 0.08), rgba(0, 0, 0, 0.92));
    border: 1px solid rgba(233, 192, 120, 0.28);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
    padding: 16px;
    overflow: hidden;
    z-index: 1;
    margin: 0 10px;
}

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

.ss-session-history-header h2 {
    font-size: 20px;
    color: #f5e0b8;
}

.ss-history-close {
    border: 1px solid rgba(233, 192, 120, 0.32);
    background: rgba(255, 255, 255, 0.05);
    color: #f5e0b8;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.ss-history-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ss-history-tab {
    border-radius: 10px;
    border: 1px solid rgba(233, 192, 120, 0.24);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    color: #f5e0b8;
    font-weight: 700;
    cursor: pointer;
}

.ss-history-tab.is-active {
    background: linear-gradient(135deg, rgba(233, 192, 120, 0.2), rgba(94, 62, 140, 0.45));
    border-color: rgba(233, 192, 120, 0.46);
}

.ss-history-search {
    margin-bottom: 10px;
}

.ss-history-search input[type="search"] {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(233, 192, 120, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: #f5e0b8;
}

.ss-history-content {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(233, 192, 120, 0.16);
    border-radius: 14px;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.ss-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ss-history-item {
    border: 1px solid rgba(233, 192, 120, 0.2);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ss-history-item:hover {
    border-color: rgba(233, 192, 120, 0.45);
}

.ss-history-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ss-history-item-title {
    font-weight: 700;
    color: #f5e0b8;
}

.ss-history-item-meta {
    font-size: 12px;
    color: rgba(245, 224, 184, 0.75);
}

.ss-history-item-snippet {
    font-size: 13px;
    color: rgba(245, 224, 184, 0.88);
}

.ss-history-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(233, 192, 120, 0.32);
}

.ss-history-badge.is-open {
    color: #d1f2c9;
    background: rgba(137, 224, 137, 0.12);
    border-color: rgba(137, 224, 137, 0.32);
}

.ss-history-badge.is-locked {
    color: #ffd2d2;
    background: rgba(255, 118, 118, 0.12);
    border-color: rgba(255, 118, 118, 0.35);
}

.ss-history-empty,
.ss-history-placeholder {
    padding: 12px;
    color: rgba(245, 224, 184, 0.8);
    font-size: 14px;
    text-align: center;
}

@media (min-width: 720px) {
    .ss-session-history-dialog {
        max-width: 640px;
    }
}

/* Tarot session page */
.ss-tarot-session {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(233,192,120,0.06), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(106,76,125,0.35), transparent 25%),
    #08060d;
}

.tarot-header {
    border-bottom: 1px solid rgba(233, 192, 120, 0.18);
}

.tarot-back-link {
    color: #f5e0b8;
    text-decoration: none;
    font-weight: 600;
}

.tarot-title {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tarot-status {
    font-size: 12px;
    color: rgba(245, 224, 184, 0.7);
}

.tarot-session-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 16px 22px;
}

.tarot-spread-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(233, 192, 120, 0.28);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

.tarot-panel-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245, 224, 184, 0.7);
}

.tarot-panel-sub {
    font-size: 15px;
    font-weight: 600;
}

.tarot-panel-actions {
    display: flex;
    gap: 8px;
}

.tarot-offer {
    background: rgba(233, 192, 120, 0.08);
    border: 1px dashed rgba(233, 192, 120, 0.5);
    color: #f5e0b8;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.tarot-spread-canvas {
    min-height: 180px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at 30% 20%, rgba(233,192,120,0.04), transparent 30%),
    rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tarot-spread-canvas.tarot-rendering {
    opacity: 0.75;
}

.tarot-placeholder {
    color: rgba(245, 224, 184, 0.6);
    text-align: center;
    padding: 12px;
}

.tarot-chat-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* background: rgba(255, 255, 255, 0.03); */
    /* border: 1px solid rgba(233, 192, 120, 0.18); */
    border-radius: 14px;
    padding: 12px;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);*/
}

.tarot-chat-log {
    max-height: 48vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tarot-message {
    display: flex;
}

.tarot-message.tarot-user {
    justify-content: flex-end;
}

.tarot-message.tarot-system .tarot-bubble {
    background: rgba(233, 192, 120, 0.1);
    color: #f5e0b8;
}

.tarot-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
    /*background: rgba(255, 255, 255, 0.06);*/
    color: #f7f2e9;
    border: 1px solid rgba(233, 192, 120, 0.12);
}

.tarot-user .tarot-bubble {
    background: linear-gradient(135deg, rgba(233, 192, 120, 0.2), rgba(233, 192, 120, 0.35));
    color: #0c090f;
    border: none;
}

.tarot-input-bar {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    /* border: 1px solid rgba(233, 192, 120, 0.2); */
    /* border-radius: 12px; */
    padding: 5px;
}

.tarot-input-bar input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: #f7f2e9;
}

.tarot-input-bar button {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0c67a, #d49547);
    color: #0c090f;
    font-weight: 700;
    cursor: pointer;
}

.tarot-input-bar button:disabled,
.primary-btn:disabled,
.ghost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.primary-btn {
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0c67a, #d49547);
    border: none;
    color: #0c090f;
    font-weight: 700;
}

.ghost-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(233, 192, 120, 0.4);
    background: transparent;
    color: #f5e0b8;
    font-weight: 600;
}

@media (min-width: 768px) {
    .tarot-chat-log {
        max-height: 60vh;
    }
}

/* Tarot session refresh */
.ss-tarot-session {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #000;
    color: #f7f2e9;
}

.tarot-session-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(233, 192, 120, 0.18);
    background: rgba(0, 0, 0, 0.85);
    position: sticky;
    top: 0;
    z-index: 30;
}

.tarot-session-header .tarot-back-link {
    justify-self: start;
    color: #f5e0b8;
    text-decoration: none;
    font-weight: 600;
}

.tarot-header-title {
    justify-self: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 15px;
}

.tarot-header-status {
    justify-self: end;
    font-size: 12px;
    color: rgba(245, 224, 184, 0.7);
}

.ss-tarot-session {
    --tarot-card-width: 160px;
    --tarot-card-height: 260px;
}

.tarot-session-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 56px;
    height: calc(100vh - 72px - 56px); /* full height minus header and padding */
}

.tarot-inline-viewport {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    min-height: 200px;
    width: 100%;
    background: #373737 url(https://soulsync.pl/assets/isbl_3360x840.75276521_djawoy84.jpg);
    background-size: inherit;
    touch-action: none;
    background-position-x: -2314px;
    background-position-y: -7px;
    background-repeat: no-repeat;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.tarot-bubble.tarot-inline-expanding {
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.tarot-inline-viewport.tarot-spread-hidden {
    opacity: 0;
    filter: brightness(0.35);
    transform: scale(0.98);
}

.tarot-inline-viewport.tarot-spread-visible {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

.tarot-inline-viewport .btn-tarot-deal {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(233, 192, 120, 0.5);
    background: linear-gradient(135deg, rgba(233, 192, 120, 0.22), rgba(233, 192, 120, 0.36));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    color: #e4c791;
    font-weight: 800;
    cursor: pointer;
}

.tarot-inline-canvas.tarot-spread-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(var(--tarot-card-height) + 140px);
}

.tarot-spread-container .tarot-card {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}

.tarot-inline-viewport.tarot-rendering,
.tarot-spread-container.tarot-rendering {
    opacity: 0.8;
}

.tarot-placeholder {
    color: rgba(245, 224, 184, 0.6);
    text-align: center;
    padding: 16px;
}

.tarot-chat-panel {
    flex: 1;
    /* background: rgba(255, 255, 255, 0.03); */
    /* border: 1px solid rgba(233, 192, 120, 0.18); */
    border-radius: 14px;
    padding: 2px;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);*/
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
}

.tarot-chat-log {
    flex: 1;
    min-height: 320px;
    max-height: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px 30px;
}

.tarot-message {
    display: flex;
}

.tarot-message .tarot-bubble {
    max-width: 95%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
    /* background: rgba(255, 255, 255, 0.06); */
    color: #f3d49a;
    border: 1px solid rgba(233, 192, 120, 0.12);
}
.ss-weekly-tarot .tarot-bubble, .ss-daily-tarot .tarot-bubble  {
    max-width: 98%;
    width: 100%;
    margin-bottom: 20px;
}
.tarot-message.user {
    justify-content: flex-end;
}

.tarot-message.user .tarot-bubble {
    background: none;
    color: #fdfdfd;
    border: 1px solid #635e5e;
}

.tarot-message.assistant .tarot-bubble {
    background: #0f0a13;
    border: 1px solid rgba(234, 184, 96, 0.18);
    text-align: justify;
}

.ss-break {
    display: block;
    width: 50%;
    margin: 14px auto;
    object-fit: contain;
}

.ss-tarot-debug-block {
    margin-top: 4px;
    padding: 4px 6px;
    background: #222;
    font-size: 10px;
    color: #6eff7a;
    white-space: pre-wrap;
    word-break: break-word;
}

.ss-tarot-debug-block.is-error {
    color: #ff7070;
}

.tarot-inline-wrapper {
    margin-top: 8px;
    /* background: rgba(255, 255, 255, 0.03); */
    /* border: 1px solid rgba(233, 192, 120, 0.2); */
    /* border-radius: 14px; */
    /* padding: 12px; */
    /*! box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 28px rgba(0, 0, 0, 0.45); */
}

.tarot-spread-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(var(--tarot-card-height) + 140px);
    overflow: hidden;
    touch-action: none;
}

.tarot-spread-transform-layer {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    will-change: transform;
}

.tarot-card {
    width: var(--tarot-card-width);
    height: var(--tarot-card-height);
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: center center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tarot-card.is-dealt { opacity: 1; }

.tarot-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: scale(0.92);
    transition: transform 0.35s ease;
}

.tarot-card.is-dealt .tarot-card-inner { transform: scale(1); }

.tarot-card.is-flipped .tarot-card-inner { transform: scale(1) rotateY(180deg); }

.tarot-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
}

.tarot-card-back { background-color: #250d37; }

.tarot-card-front { transform: rotateY(180deg); }

.tarot-card.reversed .tarot-card-front.is-reversed-image { transform: rotateY(180deg) rotate(180deg); }

.tarot-card-caption {
    position: absolute;
    top: calc(var(--tarot-card-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--tarot-card-width) + 20px);
    text-align: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 1px 2px 1px #000;
}

.tarot-zoom-controls {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 4;
    display: flex;
    gap: 8px;
    background: rgba(15, 10, 19, 0.6);
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(233, 192, 120, 0.35);
    backdrop-filter: blur(10px);
}

.tarot-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(233, 192, 120, 0.55);
    background: rgba(233, 192, 120, 0.12);
    color: #f7f2e9;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.tarot-inline-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-end;
}

.d-none {
    display: none !important;
}

.btn-tarot-deal,
.btn-tarot-interpret {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(233, 192, 120, 0.35);
    background: rgba(233, 192, 120, 0.14);
    color: #f7f2e9;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.25s ease-in-out;
}

.btn-tarot-interpret {
    border: 1px solid #b49c74 !important;
    color: #b49c74;
    /* border: none; */
    margin: 0 auto;
    background: none;
}

.btn-tarot-deal:disabled,
.btn-tarot-interpret:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.tarot-btn-fadeout {
    opacity: 0;
    pointer-events: none;
}

.tarot-message.loader .tarot-bubble {
    color: rgba(245, 224, 184, 0.8);
    font-style: italic;
}

.tarot-message.system .tarot-bubble {
    background: rgba(233, 192, 120, 0.1);
    color: #f5e0b8;
}

.tarot-message.error .tarot-bubble {
    color: #f7a8a8;
}

#card-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 0, 32, 0.8);
    z-index: 9999;
}

#card-modal.is-visible {
    display: flex;
}

#card-modal .card-modal-content {
    position: relative;
    background: rgba(12, 9, 15, 0.92);
    border: 1px solid rgba(233, 192, 120, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

#card-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #f5e0b8;
    font-size: 24px;
    cursor: pointer;
}

#card-modal .card-modal-image {
    width: 200px;
    height: 330px;
    margin: 0 auto 16px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

#card-modal .card-modal-image.reversed {
    transform: rotate(180deg);
}

#card-modal .card-modal-desc {
    color: #f7f2e9;
    font-size: 14px;
}

.tarot-input-bar {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    gap: 10px;
    background: none;
    /* border: 1px solid rgba(233, 192, 120, 0.2); */
    /* border-radius: 12px; */
    /* padding: 10px; */
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.tarot-input-bar textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: #f7f2e9;
    font-family: inherit;
}

.tarot-input-bar button {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0c67a, #d49547);
    color: #0c090f;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 768px) {
    .tarot-session-main {
        padding: 16px 18px 0px;
    }

    /*.tarot-chat-log {*/
    /*    max-height: 60vh;*/
    /*}*/
}
/* =========================================
   Dashboard: stacked gates for mobile first
   ========================================= */

.ss-dashboard-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 0 20px 32px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.ss-dashboard-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
    width: 100%;
}

.ss-dashboard-desc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    color: #c9a775;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.55;
    padding: 5px 10px;
    text-align: center;
}

.dash-tile {
    width: 100%;
}

.dash-copy {
    max-width: 860px;
    width: 100%;
    color: #ffc166;
    opacity: 0.94;
    text-align: left;
}

.dash-desc {
    margin: 0;
}

.tile-desc {
    width: 100%;
    color: inherit;
}

.tile-meta {
    width: 100%;
    font-size: 12px;
    color: #b0adad;
    opacity: 0.88;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

/* wide tiles for mobile */
.ss-tile {
    position: relative;
    overflow: hidden;

    flex: 1 1 auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    min-height: 95px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background:
            radial-gradient(circle at top, rgba(250, 214, 149, 0.18), transparent 55%),
            radial-gradient(circle at bottom, #050307, #000000);
    border-radius: 16px;
    border: 1px solid rgba(233, 192, 120, 0.55);

    padding: 14px 14px 16px;

    box-shadow:
            0 0 22px rgba(221, 163, 69, 0.25),
            inset 0 0 10px rgba(0, 0, 0, 0.85);

    transform-origin: center bottom;
    transform: translateY(6px) scale(0.96);
    transition:
            transform 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease,
            background 0.3s ease;
}

a.ss-tile { text-decoration: none; }

/* text on top of code layer */
.ss-tile h2 {
    margin: 0 0 6px;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fccd79;
    position: relative;
    z-index: 2;
}

.ss-tile p {
    margin: 0;
    font-size: 13px;
    color: #bd995a;
    line-height: 1.35;
    position: relative;
    z-index: 2;
}

@media (min-width: 769px) {
    .ss-dashboard-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 17px;
    }

    .ss-tile {
        flex: 0 0 calc(50% - 10px);
        max-width: 240px;
        min-height: 200px;
    }
}

/* Tarot-inspired palette for dashboard tiles */
.ss-tile--tarot {
    background:
            radial-gradient(circle at top left, rgba(255, 214, 160, 0.22), transparent 60%),
            radial-gradient(circle at bottom, #050309, #000000);
}


.ss-tile:hover,
.ss-tile:focus-visible {
    transform: translateY(0) scale(1.03);
    box-shadow:
            0 0 32px rgba(221, 163, 69, 0.4),
            inset 0 0 14px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 214, 147, 0.95);
    outline: none;
}
/* Ilustracje w tle bram: karta tarota + kolo astrologiczne */
/* Ilustracje w tle bram */
.ss-tile--tarot::before,
.tile-tarot-offer::before {
    content: "";
    position: absolute;
    width: 145%;
    height: 145%;
    bottom: -80%;
    left: 35%;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.65; /* 1.25 jest za duże, i tak przeglądarka utnie do 1 */
    /* USUWAMY transform z bazowej reguły */
    /* transform: translate(0, 0) scale(1); */
    transition: transform 0.45s ease-out, opacity 0.4s ease-out, left 0.4s ease-out, bottom 0.4s ease-out;
    z-index: 0;
    pointer-events: none;
}

/* konkretne grafiki */
.ss-tile--tarot::before {
    background-image: url("/php/app/assets/dashboard_tarot_card.png");
}

/* hover – wyjazd na środek i powiększenie */
.ss-tile:hover::before,
.ss-tile:focus-visible::before {
    left: 80%;
    bottom: 80%;
    transform: translate(-40%, -20%) scale(1.4);
    opacity: 0.75;
}
/* Kontener czatu z warstwą kodu za dymkami */
.ss-chat-shell {
    position: relative;
    overflow: hidden;
}

/* Warstwa kodu w tle czatu */
.ss-chat-shell .ss-code-layer.ss-code-layer--chat {
    z-index: 1;
    opacity: 1;
    /*filter: blur(0.5px);*/
    mix-blend-mode: screen;
}

/* Chat panel clipping for background streams */
.tarot-chat-panel {
    position: relative;
    overflow: hidden;
}

.ss-code-layer--chat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 116px);
    pointer-events: none;
    overflow: hidden;
}

/* Strumienie kodu w wariancie chatowym */
.ss-chat-shell .ss-code-layer--chat .ss-code-stream {
    font-size: 14px; /* było 10px */
    color: rgba(255, 220, 180, 0.25);
    animation-duration: 16s;
}

/* Tarot offers page */
.ss-offer-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 25% 15%, rgba(255, 215, 160, 0.16), transparent 42%),
        radial-gradient(circle at 90% 30%, rgba(255, 215, 160, 0.07), transparent 48%),
        linear-gradient(145deg, #050309, #020102 54%, #0b070f);
    border: 1px solid rgba(255, 214, 147, 0.25);
    box-shadow: 0 0 32px rgba(221, 163, 69, 0.25), inset 0 0 22px rgba(0, 0, 0, 0.92);
}

.ss-offer-heading {
    font-size: 22px;
    margin-bottom: 10px;
    color: #f4e2c4;
    line-height: 1.35;
}

.ss-offer-intro {
    color: #c7a775;
    font-size: 15px;
    line-height: 1.5;
}

.ss-offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ss-offer-tile {
    min-height: 240px;
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tile-tarot-offer {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 160, 0.22), transparent 60%),
        radial-gradient(circle at bottom, #050309, #000000);
    transform: translateY(6px) scale(0.98);
}

.ss-offer-tile h2 {
    font-size: 19px;
    color: #f7e8cd;
    margin-bottom: 6px;
}

.ss-offer-subtitle {
    color: #c9a56b;
    font-size: 14px;
    line-height: 1.48;
}

.ss-offer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    color: #f5dcb3;
}

.ss-offer-price {
    font-size: 20px;
    font-weight: 600;
    color: #ffd699;
    text-shadow: 0 0 12px rgba(255, 214, 153, 0.4);
}

.ss-offer-note {
    font-size: 12px;
    color: #c69458;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ss-offer-cta {
    align-self: flex-start;
    margin-top: 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 214, 160, 0.2), rgba(221, 163, 69, 0.28));
    color: #fbeddd;
    border: 1px solid rgba(255, 214, 147, 0.5);
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(255, 214, 147, 0.45);
    box-shadow: 0 0 22px rgba(221, 163, 69, 0.3);
}

.tile-tarot-offer::before {
    background-image: url("/php/app/assets/dashboard_tarot_card.png");
    width: 175%;
    height: 175%;
    bottom: -85%;
    left: 28%;
    opacity: 0.72;
}

.ss-offer-tile:hover::before,
.ss-offer-tile:focus-visible::before {
    transform: translate(-36%, -18%) scale(1.5);
    opacity: 0.82;
}

@media (min-width: 720px) {
    .ss-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ss-offer-heading {
        font-size: 26px;
    }
}


/* Log czatu nad warstwą kodu */
.ss-chat-shell .tarot-chat-log {
    position: relative;
    z-index: 2;
}

/* Pojedyncze wiadomości jeszcze wyżej */
.ss-chat-shell .tarot-message,
.ss-chat-shell .tarot-bubble {
    position: relative;
    z-index: 3;
}


.tarot-chat-log .tarot-message:last-child .tarot-bubble {
    margin-bottom: 40px; /* komfortowy odstęp nad formularzem */
}

/* ==============================
   Desktop/responsive layout
   ============================== */
@media (min-width: 1024px) {
    body.ss-tarot-session,
    .ss-app-shell,
    .ss-app-frame {
        min-height: 100vh;
        /*height: 100vh;*/
        display: flex;
        flex-direction: column;
    }

    .ss-app-shell {
        width: 100%;
        max-width: 100vw;
        justify-content: center;
        align-items: stretch;
        padding: 0px 24px;
        box-sizing: border-box;
    }

    .ss-app-frame {
        max-width: 1024px;
        width: 100%;
        margin: 0 auto;
        /*! padding: 24px 32px; */
        box-sizing: border-box;
        position: relative;
        z-index: 1;
        
        /*background: #000 url(/assets/img/clouds_bg.jpg);*/
        background: #000;
        border: 1px solid rgba(233, 192, 120, 0.15);

        /*background-repeat: no-repeat;*/
        /*background-size: cover;*/
        border: 1px solid rgba(233, 192, 120, 0.15);
        border-radius: 18px;
        /* box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6); */
        /* flex: 1 1 auto; */
        display: block;
    }


    .ss-app-frame {

        
    }
    
    
    .ss-onboarding .ss-app-frame {
        background: none;
        border: none;
        box-shadow: none; 
    }
    .ss-mobile-body::after {
        background: rgba(0, 0, 0, 0.35);
    }

    body.ss-onboarding #ss-main {
        /*! padding-top: 40px; */
        /*! display: flex; */
        /*! flex-direction: column; */
        /*! align-items: center; */
        /*! justify-content: center; */
        /*! gap: 18px; */
        margin: 0;
    }

    body.ss-onboarding #ss-hero {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    body.ss-onboarding #ss-conversation {
        padding: 24px 36px 48px;
    }

    .ss-mobile-header.ss-dashboard-header {
        margin-bottom: 18px;
        position: sticky;
        top: 0;
        backdrop-filter: blur(12px);
        /*background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));*/
        border-bottom: 1px solid rgba(233, 192, 120, 0.25);
    }

    .ss-dashboard-cards {
        gap: 22px;
    }

    .ss-dashboard-item {
        display: grid;
        grid-template-columns: 25% 75%;
        align-items: center;
        gap: 26px;
        text-align: left;
    }

    .ss-dashboard-item .ss-tile {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .ss-dashboard-desc {
        padding-left: 0;
        max-width: none;
        text-align: left;
        align-items: flex-start;
    }

    .dash-copy {
        max-width: 900px;
        padding: 0;
        text-align: left;
    }

    .ss-dashboard-item {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .ss-dashboard-item .ss-tile {
        flex: 0 0 25%;
        /*max-width: 25%;*/
        margin: 0;
    }

    .ss-dashboard-desc {
        flex: 1 1 75%;
        padding-left: 10px;
        max-width: 720px;
        align-items: flex-start;
    }

    .tile-meta {
        text-align: left;
    }

    .ss-hero-card {
        margin-bottom: 20px !important;
    }

    .tarot-session-main {
        flex: 1 1 auto;
        overflow: visible;
        display: block;
        padding-bottom: 96px;
        height: auto;
        box-sizing: border-box;
    }

    .tarot-chat-panel {
        border-radius: 18px;
        /*box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);*/
        min-height: 520px;
    }

    .tarot-chat-panel,
    .tarot-chat-log {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .tarot-input-bar {
        position: fixed;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        max-width: 1024px;
        width: 100%;
        z-index: 1000;
        box-sizing: border-box;
    }

.ss-session-history-dialog {
    margin: 0 auto;
}
}

.tarot-interpretation-paywall {
    position: relative;
    margin: 16px 8px 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(10, 8, 20, 0.85);
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.ss-weekly-tarot .weekly-spread-wrap,
.ss-weekly-tarot .weekly-interpretation-wrap {
    opacity: 0;
    transform: translateY(6px);
}

.ss-weekly-tarot.is-ready .weekly-spread-wrap {
    opacity: 1;
    transform: none;
    transition: opacity 800ms ease, transform 800ms ease;
}

.ss-weekly-tarot.is-ready .weekly-interpretation-wrap {
    opacity: 1;
    transform: none;
    transition: opacity 1000ms ease, transform 1000ms ease;
    transition-delay: 140ms;
}

.tarot-paywall-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 160, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(116, 80, 255, 0.18), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.tarot-paywall-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    color: #f6f0ff;
}

.tarot-paywall-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 214, 153, 0.8), rgba(118, 92, 255, 0.75));
    color: #140f2b;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.tarot-paywall-copy {
    line-height: 1.5;
}

.tarot-paywall-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.tarot-paywall-desc {
    margin: 2px 0 0;
    font-size: 13px;
    color: #e2def3;
}

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

.tarot-paywall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fefefe;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.tarot-paywall-btn:hover,
.tarot-paywall-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.tarot-paywall-btn.primary {
    background: linear-gradient(135deg, #f6c88f, #ad7bff);
    color: #1a1333;
    border: none;
}

.tarot-paywall-btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #f6f0ff;
}

.tarot-paywall-btn.refresh {
    flex: 1 1 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.tarot-interpretation-paywall button.tarot-paywall-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}
