.btn-back {
    margin-top: 16px;
    display: none !important; /* Скрываем старые кнопки Назад */
}

.btn-back-primary {
    margin-top: 16px;
    display: none !important; /* Скрываем старые кнопки Назад */
}

/* Скрываем старые кнопки "Вернуться в меню" */
#closeHoroscopeBtn,
#tarotResultBackBtn {
    display: none !important;
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Roboto:wght@300;400;500&display=swap');

:root {
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #1a1a24;
    --card-border: #2a2a3a;
    --purple-dark: #2d1b3d;
    --purple-medium: #4a2c5a;
    --purple-light: #6b3d7a;
    --gold: #d4af37;
    --gold-light: #f5e6d3;
    --smoke-gray: #3a3a4a;
    --text-primary: #e8e6e3;
    --text-secondary: #b8b6b3;
    --text-muted: #888686;
    --shadow-glow: rgba(212, 175, 55, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.8);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

/* Дымный фон */
.smoke-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 44, 90, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 61, 122, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(45, 27, 61, 0.2) 0%, transparent 50%),
        var(--dark-bg);
    animation: smoke-drift 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes smoke-drift {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    50% { 
        background-position: 20% 20%, 80% 80%, 60% 40%;
    }
}

/* Контейнер */
.container {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
    position: relative;
    z-index: 1;
    min-height: 100vh;
    box-sizing: border-box;
}

.premium-ribbon {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, #f6e58d, #f9ca24, #f6e58d);
    color: #1a0f2e;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(246, 229, 141, 0.35);
    z-index: 1200;
    pointer-events: none;
}

/* Фиксированная кнопка Назад */
.global-back-btn {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: calc(env(safe-area-inset-left, 0px) + 12px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 26, 36, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.global-back-btn:hover {
    background: rgba(42, 42, 58, 0.95);
    border-color: var(--purple-medium);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.global-back-btn:active {
    transform: translateY(0);
}

.global-back-btn.hidden {
    display: none;
}

.global-back-text {
    line-height: 1;
}

.feedback-btn {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(26, 26, 36, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.feedback-btn:hover {
    background: rgba(42, 42, 58, 0.95);
    border-color: var(--purple-medium);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.feedback-btn:active {
    transform: translateY(0);
}

.feedback-btn.hidden {
    display: none !important;
}

.feedback-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.feedback-btn-text {
    line-height: 1;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
}

.feedback-modal.hidden {
    display: none !important;
}

.registration-promo-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 16px;
}

.registration-promo-modal.hidden {
    display: none !important;
}

.registration-promo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
}

.registration-promo-dialog {
    position: relative;
    width: min(520px, calc(100% - 48px));
    background: linear-gradient(135deg, rgba(32, 14, 52, 0.98) 0%, rgba(82, 32, 114, 0.95) 50%, rgba(25, 2, 35, 0.96) 100%);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 32px 24px 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.registration-promo-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registration-promo-content h3 {
    margin: 0;
    font-size: 22px;
    color: var(--gold-light);
    line-height: 1.3;
}

.registration-promo-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.registration-promo-btn {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
}

.registration-promo-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

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

.feedback-dialog {
    position: relative;
    width: min(440px, calc(100% - 32px));
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--purple-dark) 100%);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.feedback-title {
    margin: 0;
    font-size: 18px;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.feedback-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.feedback-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

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

.feedback-textarea {
    min-height: 120px;
    resize: none;
}

.feedback-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-counter {
    font-size: 13px;
    color: var(--text-muted);
}

.feedback-status {
    min-height: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feedback-status.success {
    color: #7bd88f;
}

.feedback-status.error {
    color: #ff6b6b;
}

/* Debug Panel */
.debug-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-height: 400px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.debug-panel.hidden {
    display: none;
}

.debug-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.debug-close-btn,
.debug-clear-btn,
.debug-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 12px;
}

.debug-close-btn:hover,
.debug-clear-btn:hover,
.debug-copy-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.debug-log {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #ccc;
}

.debug-log-item {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    word-break: break-word;
}

.debug-log-item.log {
    color: #a8d8ea;
}

.debug-log-item.info {
    color: #7bd88f;
}

.debug-log-item.warn {
    color: #f6e58d;
    background: rgba(246, 229, 141, 0.1);
}

.debug-log-item.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.debug-log-time {
    color: #666;
    font-size: 10px;
    margin-right: 6px;
}

.debug-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.debug-toggle-btn.hidden {
    display: none;
}

.debug-toggle-btn:hover {
    background: rgba(30, 30, 40, 0.95);
    transform: scale(1.05);
}

.debug-toggle-btn.active {
    background: rgba(107, 216, 138, 0.2);
    border-color: rgba(107, 216, 138, 0.4);
}

.premium-chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(246, 229, 141, 0.1);
    border: 1px solid rgba(246, 229, 141, 0.4);
    color: #f6e58d;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.premium-ribbon.hidden,
.premium-chip.hidden {
    display: none !important;
}

#tarotIntroPremiumBadge {
    flex-shrink: 0;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.mystic-circle {
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px var(--shadow-glow),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.mystic-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--purple-light);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px var(--shadow-glow),
            inset 0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px var(--shadow-glow),
            inset 0 0 30px rgba(212, 175, 55, 0.2);
    }
}

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

.tarot-symbol {
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-text {
    margin-top: 30px;
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 
        0 0 20px var(--shadow-glow),
        0 4px 8px var(--shadow-dark);
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 32px;
    opacity: 0.9;
}

.subtitle-text {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Карточки */
.card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--purple-dark) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 30px);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 
        0 10px 40px var(--shadow-dark),
        0 0 20px rgba(107, 61, 122, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold-light);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px var(--shadow-glow);
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Форма */
.registration-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    background: var(--darker-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.form-input,
select.form-input,
textarea.form-input {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 
        0 0 15px var(--shadow-glow),
        inset 0 0 10px rgba(212, 175, 55, 0.1);
    background: var(--dark-bg);
}

.agreement-block {
    margin-top: 1rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.agreement-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.agreement-description {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 0 26px;
    line-height: 1.4;
}

.agreement-link {
    color: #5db2ff;
    text-decoration: underline;
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--card-bg, #120b1e);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    width: min(90%, 720px);
    max-height: 90vh;
    overflow: hidden;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-body {
    display: flex;
}

.agreement-body {
    background: var(--dark-bg);
    border-radius: 16px;
    padding: 16px;
    max-height: 56vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-size: 14px;
}

.modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#firstNameSubmitBtn {
    margin-top: 14px;
}

.form-input[type="date"],
.form-input[type="time"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    text-align: center;
    height: 58px;
    min-height: 58px;
    padding: 0 48px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    font-size: 18px;
    line-height: 1.2;
    position: relative;
}

.form-input[type="time"] {
    padding-right: 16px;
}

.form-input[type="date"]::-webkit-clear-button,
.form-input[type="date"]::-webkit-inner-spin-button,
.form-input[type="time"]::-webkit-clear-button,
.form-input[type="time"]::-webkit-inner-spin-button {
    display: none;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 32px;
    margin: 0;
    opacity: 0.9;
    cursor: pointer;
}

.form-input[type="date"]::-webkit-date-and-time-value,
.form-input[type="time"]::-webkit-date-and-time-value {
    text-align: center;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    color: var(--text-primary);
}

@supports (-webkit-touch-callout: none) {
    .form-input[type="date"],
    .form-input[type="time"] {
        font-size: 17px;
        padding-right: 44px;
    }

    .form-input[type="date"]::-webkit-calendar-picker-indicator,
    .form-input[type="time"]::-webkit-calendar-picker-indicator {
        filter: invert(0.8) brightness(1.1);
    }
}

/* Кнопки */
.btn {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-light) 100%);
    color: var(--text-primary);
    box-shadow: 
        0 4px 15px rgba(107, 61, 122, 0.4),
        0 0 20px var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(107, 61, 122, 0.6),
        0 0 30px var(--shadow-glow);
}

.btn-spread {
    background: linear-gradient(135deg, var(--gold) 0%, #e5c866 100%);
    color: var(--dark-bg);
    font-weight: 700;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        0 0 25px var(--shadow-glow);
}

.btn-spread:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.6),
        0 0 35px var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--card-border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--purple-light);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(107, 61, 122, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: button-glow 3s ease-in-out infinite;
}

@keyframes button-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.btn-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 24px;
}

/* Приложение */
.main-app {
    text-align: center;
}

.app-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--gold-light);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px var(--shadow-glow);
}

.app-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Расклад таро */
.spread-result {
    margin-top: 20px;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--shadow-glow);
}

.result-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tarot-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--purple-dark) 100%);
    border: 2px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px var(--shadow-dark),
        0 0 15px rgba(107, 61, 122, 0.2);
    animation: card-appear 0.6s ease-out;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tarot-card.reversed {
    background: linear-gradient(135deg, #2a1a2a 0%, #3a1a3a 100%);
    border-color: var(--purple-light);
    box-shadow: 
        0 8px 25px var(--shadow-dark),
        0 0 20px rgba(107, 61, 122, 0.4);
}

.tarot-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 35px var(--shadow-dark),
        0 0 25px rgba(107, 61, 122, 0.3);
}

.card-position {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 500;
}

.reversed-badge {
    display: inline-block;
    background: var(--purple-medium);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 8px var(--shadow-glow);
}

.card-meaning {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 10px;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px var(--shadow-glow));
}

/* Приветственная анимация */
.welcome-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

.welcome-animation.show {
    opacity: 1;
    pointer-events: auto;
}

.welcome-animation.hidden {
    pointer-events: none;
}

.animation-container {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.welcome-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--shadow-glow);
}

.welcome-text {
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Приветственное сообщение */
.welcome-message {
    margin-top: 40px;
}

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

.card-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 20px 0 30px 0;
}

/* Сообщения о важности */
.step-message {
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

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

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px var(--shadow-glow);
}

.step-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 20px 0 30px 0;
}

/* Формы ввода */
.step-form {
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.step-form-content {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.step-form .form-input {
    pointer-events: auto !important;
    cursor: text !important;
}

.step-form .date-input {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

/* Стили для ввода даты */
.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.date-input {
    font-size: 18px;
    text-align: center;
    letter-spacing: 1px;
    color: var(--text-primary);
    min-height: 50px;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 10;
}

/* Стилизация для WebKit браузеров (Chrome, Safari) */
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.2);
    cursor: pointer;
    opacity: 0.8;
    padding: 8px;
    margin-left: 5px;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.9) brightness(1.3);
}

.date-input::-webkit-datetime-edit-text {
    color: var(--text-primary);
    padding: 0 5px;
}

.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field,
.date-input::-webkit-datetime-edit-year-field {
    color: var(--text-primary);
    padding: 0 3px;
}

.date-input::-webkit-datetime-edit-month-field:focus,
.date-input::-webkit-datetime-edit-day-field:focus,
.date-input::-webkit-datetime-edit-year-field:focus {
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

/* Для Firefox */
.date-input::-moz-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.2);
    cursor: pointer;
    padding: 8px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

.wallet-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.wallet-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffd166;
}

.tarot-section {
    margin-top: 20px;
}

.tarot-card {
    background: rgba(12, 12, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.3s ease;
}

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

#dreamHistorySection .tarot-header {
    justify-content: center;
    text-align: center;
}

#dreamHistorySection .tarot-header > div {
    text-align: center;
}

.tarot-title {
    font-size: 22px;
    margin: 0 0 6px 0;
}

.tarot-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.tarot-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.price-highlight {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(246, 229, 141, 0.25);
    background: rgba(246, 229, 141, 0.07);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-highlight:hover {
    background: rgba(246, 229, 141, 0.12);
    border-color: rgba(246, 229, 141, 0.4);
    transform: translateY(-1px);
}

.price-highlight:active {
    transform: translateY(0);
}

.price-highlight__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-highlight__text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.price-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.price-highlight > * {
    position: relative;
    z-index: 1;
}

.price-highlight__tag {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-highlight__tag::before {
    content: "💎";
    font-size: 14px;
}

.price-highlight__prices {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.price-highlight__base {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

.price-highlight__arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.price-highlight__discount {
    color: var(--gold-light);
    font-size: 24px;
    text-shadow: 0 0 12px rgba(245, 229, 141, 0.5);
}

.price-highlight__hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.price-highlight.is-premium {
    background: linear-gradient(135deg, rgba(246, 229, 141, 0.25), rgba(246, 229, 141, 0.08));
    border-color: rgba(246, 229, 141, 0.5);
}

.price-highlight.is-premium .price-highlight__hint {
    color: var(--gold-light);
    font-weight: 600;
}

.natal-text-block {
    margin: 16px 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.natal-option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

@media (min-width: 540px) {
    .natal-option-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.natal-mode-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.natal-mode-btn:hover,
.natal-mode-btn.is-hovered,
.natal-mode-btn:focus-visible,
.natal-mode-btn.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.mode-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.mode-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.single-action {
    justify-content: flex-start;
}

.natal-form-mode {
    margin-bottom: 18px;
}

.natal-form-mode.hidden {
    display: none;
}

.compat-person {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.015);
}

.compat-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.natal-result-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 16px;
    overflow: hidden;
}

.natal-result-image img {
    width: 100%;
    height: auto;
    display: block;
}

.natal-summary {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.natal-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.natal-section-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.natal-section-title {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.natal-section-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.btn-compact {
    padding: 10px 16px;
    font-size: 14px;
}

.tarot-form .form-group {
    margin-bottom: 18px;
}

.tarot-question-input {
    resize: none;
}

.tarot-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tarot-answer-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.tarot-answer-card {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 16px;
}

.tarot-card-visual {
    width: 90px;
    min-width: 90px;
    height: auto;
    min-height: 150px;
    aspect-ratio: 400 / 640;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.18), rgba(113, 88, 226, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    overflow: hidden;
    position: relative;
}

.tarot-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

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

.tarot-card-visual span {
    text-align: center;
    padding: 8px;
}

.tarot-card-body {
    flex: 1;
}

.tarot-card-position {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.tarot-card-title {
    margin: 4px 0 8px 0;
    font-size: 16px;
}

.tarot-card-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.tarot-card-advice {
    margin-top: 10px;
    font-size: 14px;
    color: #ffd166;
}

.tarot-summary {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.6;
    font-size: 14px;
}

.tarot-question-meta {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tarot-question-topic {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.tarot-question-question {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.tarot-question-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.tarot-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.tarot-history-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tarot-history-item:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.tarot-history-topic {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.tarot-history-question {
    font-size: 16px;
    font-weight: 500;
    margin: 4px 0 6px 0;
}

.tarot-history-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.tarot-history-summary {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.tarot-history-empty {
    padding: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
}

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

/* Утилиты */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* Адаптивность */
@media (max-width: 480px) {
    .title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .date-input {
        font-size: 16px;
        padding: 12px 10px;
        letter-spacing: 0;
        text-align: left;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
        z-index: 10;
        position: relative;
    }
    
    .date-input::-webkit-datetime-edit-month-field,
    .date-input::-webkit-datetime-edit-day-field,
    .date-input::-webkit-datetime-edit-year-field {
        padding: 0 2px;
    }
    
    .date-input::-webkit-calendar-picker-indicator {
        padding: 10px;
        margin-left: 5px;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    }
    
    .form-group {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .step-form-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .container {
        padding: 15px;
    }
    
    .wallet-panel {
        align-items: flex-start;
    }
    
    .tarot-answer-card {
        flex-direction: column;
    }
    
    .tarot-card-visual {
        width: 100%;
        height: auto;
        min-height: 240px;
        aspect-ratio: 400 / 640;
    }

    .natal-result-image {
        margin-bottom: 20px;
    }

    .tarot-history-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Плавные переходы */
.card, .btn, .form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Главное меню */
.main-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.main-menu.show {
    opacity: 1;
    pointer-events: auto;
}

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

.menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.menu-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px var(--shadow-glow));
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold-light);
    margin: 0;
    text-shadow: 0 2px 10px var(--shadow-glow);
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--purple-dark) 100%);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(107, 61, 122, 0.1);
}

.menu-btn-visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-btn-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 5px var(--shadow-glow));
    min-width: 30px;
    text-align: center;
}

.menu-btn-text {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

.menu-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-btn:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.4),
        0 0 20px var(--shadow-glow),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-light) 100%);
}

.menu-btn:hover .menu-btn-glow {
    opacity: 1;
}

.menu-btn:hover .menu-btn-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--shadow-glow));
}

.menu-btn:active {
    transform: translateY(-1px);
}

.menu-btn-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
    z-index: 10;
}

.menu-btn-badge.free-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Форма выбора пола */
.gender-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.gender-option {
    position: relative;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--purple-dark) 100%);
    border: 2px solid var(--card-border);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gender-option input[type="radio"]:checked + .gender-label {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-light) 100%);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 0 20px var(--shadow-glow);
}

.gender-option:hover .gender-label {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 15px var(--shadow-glow);
}

.gender-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 5px var(--shadow-glow));
}

.gender-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Результат гороскопа */
.horoscope-result {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.horoscope-result.show {
    opacity: 1;
    pointer-events: auto;
}

.horoscope-card {
    text-align: left;
}

.horoscope-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.horoscope-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--gold-light);
    margin: 0;
    text-shadow: 0 2px 10px var(--shadow-glow);
}

.horoscope-content {
    min-height: 200px;
    margin-bottom: 25px;
}

.horoscope-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

.horoscope-text strong {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--gold-light);
    text-align: center;
}

.loading-horoscope {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-horoscope p {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

.horoscope-error {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.subscription-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.subscription-plan-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.subscription-plan-card .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-plan-card .plan-title {
    font-weight: 600;
    font-size: 16px;
}

.subscription-plan-card .plan-duration {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.subscription-plan-card .plan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
}

.subscription-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-light);
}

.subscription-note {
    margin: 10px 0 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.subscription-empty {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

.subscription-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.skeleton-card {
    position: relative;
    overflow: hidden;
}

.skeleton-line,
.skeleton-button {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-title {
    width: 60%;
    height: 14px;
}

.skeleton-duration {
    width: 40%;
    height: 12px;
}

.skeleton-price {
    width: 35%;
    height: 18px;
}

.skeleton-button {
    height: 46px;
    width: 100%;
    border-radius: 12px;
}

.skeleton-card .plan-header {
    gap: 10px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 360px) {
    .form-input {
        font-size: 15px;
        padding: 14px 16px;
    }

    .btn {
        font-size: 16px;
        padding: 16px 20px;
    }

    .card {
        padding: 20px;
    }
}

.horoscope-error p {
    margin-bottom: 10px;
}

/* Адаптивность для главного меню */
@media (max-width: 480px) {
    .menu-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-icon {
        font-size: 28px;
    }
    
    .menu-title {
        font-size: 24px;
    }
    
    .menu-btn {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .menu-btn-icon {
        font-size: 22px;
        min-width: 28px;
    }
    
    .menu-content {
        gap: 12px;
    }
    
    .gender-label {
        padding: 15px 20px;
    }
    
    .gender-icon {
        font-size: 24px;
    }
    
    .gender-text {
        font-size: 16px;
    }
    
    .horoscope-title {
        font-size: 24px;
    }
    
    .horoscope-text {
        font-size: 15px;
    }
}

.tarot-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 400px;
}

.tarot-loading-container .mystic-circle {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.tarot-loading-container .loading-animation {
    animation: pulse-glow 2s ease-in-out infinite, rotate 10s linear infinite;
}

.tarot-loading-container .loading-text {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    min-height: 30px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: loading-dot 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--shadow-glow);
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-dot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===== Сонник ===== */
.dream-result-meta {
    margin-bottom: 16px;
}

.dream-date {
    font-size: 13px;
    color: var(--text-muted);
}

.dream-original {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.dream-section-title {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.dream-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
}

.dream-interpretation {
    background: linear-gradient(145deg, rgba(106, 90, 205, 0.1), rgba(147, 112, 219, 0.08));
    border: 1px solid rgba(147, 112, 219, 0.15);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.interpretation-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
}

.dream-history-item {
    cursor: pointer;
    transition: all 0.2s ease;
}
