/* assets/mystical.css - COMPLETE WORKING VERSION WITH TAROT FIXES */
.mystical-platform {
    font-family: 'Georgia', serif; 
    background: linear-gradient(135deg, #0f0f2f 0%, #1a0f2e 25%, #2d1b42 50%, #1a0f2e 75%, #0f0f2f 100%); 
    color: #e6d7ff; 
    min-height: 100vh; 
    position: relative; 
    padding: 40px 20px; 
    line-height: 1.6;
}

.mystical-platform::before {
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%); 
    pointer-events: none; 
    z-index: 0;
}

.mystical-container {
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 1;
}

.mystical-card {
    background: rgba(26, 15, 46, 0.8); 
    backdrop-filter: blur(10px); 
    padding: 30px; 
    border-radius: 20px; 
    border: 1px solid rgba(230, 215, 255, 0.1); 
    margin-bottom: 20px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease;
}

.mystical-card:hover {
    transform: translateY(-2px); 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mystical-btn {
    background: linear-gradient(135deg, #7777c6, #ff77c6); 
    border: none; 
    padding: 12px 24px; 
    border-radius: 25px; 
    color: white; 
    cursor: pointer; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(119, 119, 198, 0.3); 
    text-decoration: none; 
    display: inline-block; 
    font-size: 14px; 
    font-family: inherit;
}

.mystical-btn:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(119, 119, 198, 0.4); 
    color: white; 
    text-decoration: none;
}

.mystical-btn:active {
    transform: translateY(0);
}

.mystical-btn:disabled {
    opacity: 0.6; 
    cursor: not-allowed; 
    transform: none;
}

.mystical-btn-secondary {
    background: transparent; 
    border: 1px solid rgba(230, 215, 255, 0.2); 
    color: rgba(230, 215, 255, 0.7); 
    padding: 12px 24px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 14px; 
    font-family: inherit;
}

.mystical-btn-secondary:hover:not(:disabled) {
    background: rgba(230, 215, 255, 0.1); 
    color: #fff; 
    text-decoration: none;
}

.mystical-form {
    background: rgba(15, 15, 47, 0.8); 
    padding: 25px; 
    border-radius: 15px; 
    border: 1px solid rgba(230, 215, 255, 0.1); 
    margin-top: 20px;
}

.mystical-input, textarea.mystical-input, select.mystical-input {
    width: 100%; 
    padding: 12px; 
    border: 1px solid rgba(230, 215, 255, 0.2); 
    border-radius: 10px; 
    background: rgba(15, 15, 47, 0.7); 
    color: #e6d7ff !important; 
    font-size: 16px; 
    margin-bottom: 15px; 
    font-family: inherit; 
    transition: all 0.3s ease; 
    box-sizing: border-box;
}

.mystical-input:focus {
    outline: none; 
    border-color: #7777c6; 
    box-shadow: 0 0 10px rgba(119, 119, 198, 0.3); 
    background: rgba(15, 15, 47, 0.9);
}

.mystical-input::placeholder {
    color: rgba(230, 215, 255, 0.5);
}

.mystical-screen {
    display: none; 
    animation: fadeIn 0.5s ease;
}

.mystical-screen.active {
    display: block;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.mystical-tabs {
    display: flex; 
    gap: 10px; 
    margin-bottom: 30px; 
    border-bottom: 1px solid rgba(230, 215, 255, 0.1); 
    flex-wrap: wrap;
}

.mystical-tab {
    padding: 15px 25px; 
    cursor: pointer; 
    border-radius: 10px 10px 0 0; 
    transition: all 0.3s ease; 
    opacity: 0.7; 
    background: rgba(15, 15, 47, 0.5); 
    border: 1px solid rgba(230, 215, 255, 0.1); 
    border-bottom: none; 
    font-family: inherit; 
    color: inherit;
}

.mystical-tab.active {
    background: rgba(119, 119, 198, 0.2); 
    opacity: 1; 
    color: #ff77c6; 
    transform: translateY(-2px);
}

.mystical-tab:hover {
    opacity: 1; 
    background: rgba(119, 119, 198, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block; 
    animation: fadeIn 0.3s ease;
}

.zodiac-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin: 20px 0;
}

.zodiac-card {
    background: rgba(15, 15, 47, 0.8); 
    padding: 20px; 
    border-radius: 15px; 
    border: 1px solid rgba(230, 215, 255, 0.1); 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden;
}

.zodiac-card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255, 119, 198, 0.1), transparent); 
    transition: left 0.5s ease;
}

.zodiac-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(119, 119, 198, 0.3); 
    border-color: #ff77c6;
}

.zodiac-card:hover::before {
    left: 100%;
}

.zodiac-card h4 {
    margin: 0 0 10px 0; 
    font-size: 24px; 
    color: #ff77c6; 
    position: relative; 
    z-index: 1;
}

.zodiac-card p {
    margin: 0; 
    opacity: 0.8; 
    font-size: 14px; 
    position: relative; 
    z-index: 1;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e); 
    color: #1a0f2e; 
    padding: 4px 12px; 
    border-radius: 15px; 
    font-size: 12px; 
    font-weight: bold; 
    margin-left: 10px; 
    display: inline-block; 
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow { 
    from { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); } 
    to { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); } 
}

.credits-display {
    background: rgba(26, 15, 46, 0.8); 
    padding: 8px 15px; 
    border-radius: 25px; 
    font-weight: bold; 
    color: white; 
    border: 1px solid rgba(230, 215, 255, 0.1);
}

/* FIXED: Enhanced Tarot Card Designs with proper layouts */
.tarot-spread {
    display: grid; 
    gap: 20px; 
    margin: 20px 0; 
    perspective: 1000px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Special layout for Celtic Cross (6 cards) - 3x2 grid */
.tarot-spread.celtic-cross {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    max-width: 900px;
    margin: 20px auto;
}

/* Special layout for 3-card spread */
.tarot-spread.three-card {
    grid-template-columns: repeat(3, 1fr);
    max-width: 750px;
    margin: 20px auto;
}

/* Single card centered */
.tarot-spread.single-card {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 20px auto;
}

.tarot-card {
    background: linear-gradient(135deg, #2d1b42, #1a0f2e); 
    padding: 20px; 
    border-radius: 15px; 
    text-align: center; 
    min-height: 280px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    transition: all 0.5s ease; 
    position: relative; 
    overflow: hidden;
    border: 2px solid rgba(230, 215, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.tarot-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff77c6, #7777c6, #77c6ff, #c6ff77, #ff77c6);
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tarot-card:hover {
    transform: translateY(-10px) rotateY(5deg); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.tarot-card:hover::before {
    opacity: 1;
}

.tarot-card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Specific tarot card designs */
.tarot-card.major-arcana {
    background: radial-gradient(circle at center, #4a0e4e, #2d1b42);
    border-color: #ff77c6;
}

.tarot-card.past-card {
    background: linear-gradient(135deg, #3d2914, #2d1b42);
    border-color: #c6a876;
}

.tarot-card.present-card {
    background: radial-gradient(circle at center, #7777c6, #2d1b42);
    border-color: #77c6ff;
}

.tarot-card.future-card {
    background: linear-gradient(135deg, #1a4d3d, #2d1b42);
    border-color: #77ffc6;
}

.tarot-card.situation-card {
    background: radial-gradient(circle at center, #c63d77, #2d1b42);
    border-color: #ff7777;
}

.tarot-card.challenge-card {
    background: linear-gradient(135deg, #4d1a1a, #2d1b42);
    border-color: #ff4444;
}

.tarot-card.outcome-card {
    background: radial-gradient(circle at center, #c6c777, #2d1b42);
    border-color: #ffff77;
}

.tarot-card h4, .tarot-card h5 {
    margin: 0 0 10px 0; 
    color: #ff77c6; 
    position: relative; 
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 119, 198, 0.5);
    font-size: 18px;
}

.tarot-card p {
    margin: 10px 0 0 0; 
    font-size: 14px; 
    position: relative; 
    z-index: 1;
    line-height: 1.4;
}

/* Tarot card symbols */
.tarot-card-inner::before {
    content: attr(data-symbol);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    opacity: 0.3;
    z-index: 0;
}

.major-arcana .tarot-card-inner::before { content: '🔮'; }
.past-card .tarot-card-inner::before { content: '⳿'; }
.present-card .tarot-card-inner::before { content: '🌟'; }
.future-card .tarot-card-inner::before { content: '🔭'; }
.situation-card .tarot-card-inner::before { content: '🎯'; }
.challenge-card .tarot-card-inner::before { content: '⚔️'; }
.outcome-card .tarot-card-inner::before { content: '🏆'; }
.default-card .tarot-card-inner::before { content: '🃏'; }

/* Tarot card images */
.tarot-card img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Notifications */
#mystical-notifications {
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 1000; 
    max-width: 400px;
}

.mystical-notification {
    margin-bottom: 10px; 
    border-radius: 10px; 
    padding: 15px 20px; 
    color: white; 
    font-weight: 500; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    position: relative; 
    animation: slideInRight 0.3s ease; 
    word-wrap: break-word;
}

.mystical-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(25, 135, 84, 0.9));
}

.mystical-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(176, 42, 55, 0.9));
}

.mystical-premium {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 149, 5, 0.9)); 
    color: #1a0f2e;
}

@keyframes slideInRight { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

.close-notification {
    float: right; 
    background: none; 
    border: none; 
    color: inherit; 
    cursor: pointer; 
    font-size: 18px; 
    line-height: 1; 
    margin-left: 15px; 
    padding: 0; 
    opacity: 0.8; 
    transition: opacity 0.3s ease;
}

.close-notification:hover {
    opacity: 1;
}

.analysis-section {
    background: rgba(15, 15, 47, 0.6); 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid rgba(230, 215, 255, 0.1);
}

.analysis-section p { 
    margin: 0 0 15px 0; 
}

.analysis-section p:last-child { 
    margin-bottom: 0; 
}

.analysis-section strong { 
    color: #ff77c6; 
}

.welcome-screen {
    text-align: center; 
    padding: 80px 0;
}

.welcome-screen h1 {
    font-size: 48px; 
    margin-bottom: 20px; 
    background: linear-gradient(135deg, #ff77c6, #7777c6, #77c6ff); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
}

.welcome-screen p {
    font-size: 20px; 
    margin-bottom: 40px; 
    opacity: 0.9;
}

.dashboard-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px;
}

.profile-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin: 20px 0;
}

.feedback-section {
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(230, 215, 255, 0.1); 
    text-align: center;
}

.feedback-section span {
    margin-right: 15px;
}

.feedback-btn {
    background: none; 
    border: 1px solid rgba(230, 215, 255, 0.2); 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    font-size: 18px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin: 0 5px; 
    color: #e6d7ff; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
}

.feedback-btn svg {
    width: 20px; 
    height: 20px; 
    fill: currentColor;
}

.feedback-btn[data-feedback="1"]:hover {
    background: rgba(40, 167, 69, 0.3); 
    border-color: #28a745; 
    color: #fff;
}

.feedback-btn[data-feedback="-1"]:hover {
    background: rgba(220, 53, 69, 0.3); 
    border-color: #dc3545; 
    color: #fff;
}

.feedback-btn[data-feedback="1"].selected {
    background: #28a745; 
    border-color: #28a745; 
    color: white;
}

.feedback-btn[data-feedback="-1"].selected {
    background: #dc3545; 
    border-color: #dc3545; 
    color: white;
}

.crystal-ball-loader {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 40px 0;
}

.crystal-ball-loader .ball {
    width: 80px; 
    height: 80px; 
    background: radial-gradient(circle at 30% 30%, #fff, #a79cff 50%, #7777c6 100%); 
    border-radius: 50%; 
    position: relative; 
    box-shadow: 0 0 30px #a79cff, inset 0 0 15px rgba(255, 255, 255, 0.5); 
    animation: float 3s ease-in-out infinite; 
    overflow: hidden;
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-10px); } 
}

.crystal-ball-loader .sparkle {
    position: absolute; 
    width: 4px; 
    height: 4px; 
    background: white; 
    border-radius: 50%; 
    animation: sparkle-anim 2s infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 50%; left: 70%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 80%; left: 40%; animation-delay: 1s; }

@keyframes sparkle-anim { 
    0%, 100% { opacity: 0; } 
    50% { opacity: 1; } 
}

/* Modal positioning and centering */
.mystical-modal-overlay {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    background: rgba(15, 15, 47, 0.9) !important; 
    backdrop-filter: blur(5px); 
    display: none; 
    align-items: center !important; 
    justify-content: center !important; 
    z-index: 999999 !important; 
    animation: fadeIn 0.3s ease;
}

.mystical-modal-content {
    background: rgba(26, 15, 46, 0.95) !important; 
    padding: 30px; 
    border-radius: 20px; 
    border: 1px solid rgba(230, 215, 255, 0.1); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); 
    max-width: 90% !important; 
    width: 600px !important; 
    position: relative; 
    animation: slideInUp 0.4s ease; 
    max-height: 85vh; 
    overflow-y: auto;
    margin: 20px !important;
    transform: none !important;
}

.mystical-modal-close {
    position: absolute !important; 
    top: 15px !important; 
    right: 15px !important; 
    background: none !important; 
    border: none !important; 
    color: #e6d7ff !important; 
    font-size: 24px !important; 
    cursor: pointer !important; 
    opacity: 0.7; 
    transition: all 0.3s ease;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
}

.mystical-modal-close:hover {
    opacity: 1 !important; 
    transform: rotate(90deg) !important; 
    background: rgba(220, 53, 69, 0.2) !important;
}

@keyframes slideInUp { 
    from { transform: translateY(50px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

#past-dreams-list {
    max-height: 300px; 
    overflow-y: auto; 
    padding-right: 10px; 
    margin-top: 15px;
}

.past-dream-item {
    background: rgba(15, 15, 47, 0.5); 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 10px; 
    border: 1px solid rgba(230, 215, 255, 0.1); 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.past-dream-item:hover {
    background: rgba(119, 119, 198, 0.2); 
    border-color: #7777c6; 
    transform: translateY(-2px);
}

.past-dream-item strong {
    color: #ff77c6;
}

/* Horoscope layout improvements */
.horoscope-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
    border-bottom: 1px solid rgba(230, 215, 255, 0.1); 
    padding-bottom: 20px; 
    margin-bottom: 20px; 
}

.horoscope-nav { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

.horoscope-nav .mystical-btn, .horoscope-nav .mystical-btn-secondary { 
    border-radius: 10px; 
    padding: 8px 16px; 
    font-size: 14px; 
}

.horoscope-details-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
    margin-bottom: 20px; 
}

.horoscope-detail-card { 
    background: rgba(15, 15, 47, 0.6); 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid rgba(230, 215, 255, 0.1);
}

.horoscope-detail-card h5 { 
    margin: 0 0 15px 0; 
    color: #ff77c6; 
    border-bottom: 1px solid rgba(230, 215, 255, 0.1); 
    padding-bottom: 10px; 
}

.matches-grid, .ratings-grid { 
    display: grid; 
    gap: 10px; 
}

.matches-grid .match-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(0,0,0,0.2); 
    padding: 12px; 
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 215, 255, 0.1);
}

.matches-grid .match-item:hover {
    background: rgba(119, 119, 198, 0.2);
    border-color: rgba(255, 119, 198, 0.3);
    transform: translateY(-1px);
}

.matches-grid .match-item strong { 
    color: #e6d7ff; 
    font-weight: bold;
}

.matches-grid .match-sign { 
    color: #ff77c6; 
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 119, 198, 0.1);
    border: 1px solid rgba(255, 119, 198, 0.2);
    font-weight: 500;
}

.matches-grid .match-sign:hover {
    background: rgba(255, 119, 198, 0.2);
    border-color: rgba(255, 119, 198, 0.4);
    transform: translateY(-1px);
}

.ratings-grid .rating-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 8px 0;
    border-bottom: 1px solid rgba(230, 215, 255, 0.05);
}

.ratings-grid .rating-container:last-child {
    border-bottom: none;
}

.ratings-grid .rating-label {
    font-weight: 500;
    color: #e6d7ff;
}

.rating-bar-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 8px;
}

.rating-bar-clickable:hover {
    transform: scale(1.05);
    background: rgba(230, 215, 255, 0.05);
}

.rating-bar { 
    display: flex; 
    gap: 4px; 
}

.rating-bar span { 
    height: 12px; 
    width: 24px; 
    background: rgba(230, 215, 255, 0.2); 
    border-radius: 6px; 
    transition: background 0.3s ease; 
}

.rating-bar span.filled { 
    background: linear-gradient(135deg, #7777c6, #ff77c6); 
    box-shadow: 0 0 8px rgba(255, 119, 198, 0.4);
}

.horoscope-topic-selector { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    padding: 15px 0; 
    margin: 15px 0; 
    border-top: 1px solid rgba(230, 215, 255, 0.1); 
    border-bottom: 1px solid rgba(230, 215, 255, 0.1); 
}

.horoscope-topic-btn { 
    background: rgba(230, 215, 255, 0.05); 
    border: 1px solid rgba(230, 215, 255, 0.2); 
    color: rgba(230, 215, 255, 0.7); 
    padding: 8px 16px; 
    border-radius: 20px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-size: 14px; 
}

.horoscope-topic-btn:hover { 
    background: rgba(230, 215, 255, 0.1); 
    border-color: #ff77c6; 
    color: #fff; 
    transform: translateY(-1px);
}

.horoscope-topic-btn.active { 
    background: linear-gradient(135deg, #7777c6, #ff77c6); 
    color: white; 
    border-color: transparent; 
    font-weight: bold; 
    box-shadow: 0 4px 15px rgba(119, 119, 198, 0.3);
}

/* Profile edit labels */
#profile-edit-view label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: 500; 
    color: rgba(230, 215, 255, 0.8); 
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .mystical-platform { padding: 20px 10px; }
    .mystical-card { padding: 20px; }
    .zodiac-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
    .mystical-tabs { flex-wrap: wrap; }
    .mystical-tab { padding: 12px 20px; font-size: 14px; }
    .tarot-spread { grid-template-columns: 1fr; }
    .tarot-spread.celtic-cross { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
    .tarot-spread.three-card { grid-template-columns: 1fr; max-width: 400px; }
    .credits-display { padding: 12px 20px; font-size: 14px; }
    #mystical-notifications { top: 10px; right: 10px; left: 10px; max-width: none; }
    .welcome-screen h1 { font-size: 36px; }
    .dashboard-header { flex-direction: column; text-align: center; }
    .horoscope-header { flex-direction: column; align-items: stretch; }
    .horoscope-nav { justify-content: center; }
    .mystical-modal-content { 
        width: 95%; 
        max-height: 90vh; 
        margin: 10px;
        padding: 20px;
    }
    .tarot-card { min-height: 220px; }
}

@media (max-width: 480px) {
    .mystical-platform { padding: 15px 5px; }
    .mystical-card { padding: 15px; }
    .zodiac-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .zodiac-card { padding: 15px; }
    .zodiac-card h4 { font-size: 20px; }
    .mystical-btn { padding: 10px 20px; font-size: 14px; }
    .mystical-input { font-size: 16px; }
    .welcome-screen h1 { font-size: 28px; }
    .welcome-screen p { font-size: 16px; }
    .horoscope-details-grid { grid-template-columns: 1fr; }
    .matches-grid .match-item { flex-direction: column; gap: 8px; text-align: center; }
    .mystical-modal-content { 
        width: 98%; 
        margin: 5px;
        padding: 15px;
    }
    .tarot-card { min-height: 200px; font-size: 14px; }
    .tarot-spread.celtic-cross { grid-template-columns: 1fr; max-width: 350px; }
}