/* ==========================================================================
   RotaSenX V3 Premium Native Mobile-First Stylesheet
   ========================================================================= */

/* 1. CORE RESET & VARIABLES */
:root {
    --bg-deep-space-1: #070B18;
    --bg-deep-space-2: #0D1325;
    --bg-deep-space-3: #131B35;
    
    --primary-purple: #7B61FF;
    --primary-indigo: #8A5BFF;
    --gold: #D8B36A;
    --gold-light: #F2D795;
    --gold-dark: #8A6421;
    --white: #FFFFFF;
    --gray-light: rgba(255, 255, 255, 0.75);
    --gray-dark: rgba(255, 255, 255, 0.45);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-highlight: rgba(216, 179, 106, 0.25);
    --glass-blur: blur(20px) saturate(180%);
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 20px rgba(123, 97, 255, 0.25);
    --shadow-gold: 0 0 20px rgba(216, 179, 106, 0.15);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elastic: all 0.45s cubic-bezier(0.68, -0.6, 0.32, 1.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-deep-space-1);
    font-family: var(--font-body);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 2. RESPONSIVE DESKTOP PRESENTATION (Centered Phone Card) */
.desktop-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--bg-deep-space-2), var(--bg-deep-space-1));
}

.nebula-1 {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.10) 0%, transparent 70%);
    filter: blur(80px);
    animation: drift 22s infinite alternate ease-in-out;
}

.nebula-2 {
    position: absolute;
    bottom: -15%;
    right: -15%;
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, rgba(216, 179, 106, 0.07) 0%, transparent 70%);
    filter: blur(80px);
    animation: drift 26s infinite alternate-reverse ease-in-out;
}

.glow-orb {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 91, 255, 0.04) 0%, transparent 60%);
    filter: blur(70px);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, 6%) scale(1.1); }
}

/* 3. NATIVE MOBILE APP CONTAINER */
.app-root {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background-color: var(--bg-deep-space-1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border-left: 1.5px solid rgba(255, 255, 255, 0.03);
    border-right: 1.5px solid rgba(255, 255, 255, 0.03);
    z-index: 10;
}

/* 4. APP HEADER & FLOATING ISLAND */
.app-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-deep-space-1) 50%, transparent);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.03);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-svg {
    filter: drop-shadow(0 0 8px rgba(216, 179, 106, 0.2));
}

.header-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--gold), var(--primary-purple));
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.header-profile:active {
    transform: scale(0.92);
}

.header-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--bg-deep-space-1);
}

/* FLOATING ISLAND NOTCH (Alert Pill) */
.floating-island {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    z-index: 1000;
    transition: var(--transition-elastic);
}

.island-pill {
    min-width: 90px;
    height: 28px;
    background-color: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: var(--transition-elastic);
}

.island-icon {
    display: none;
    margin-right: 6px;
    font-size: 12px;
    animation: bounceSlow 1.5s infinite alternate ease-in-out;
}

.island-text {
    white-space: nowrap;
    opacity: 0.8;
}

/* Expanded state when music plays or AI writes */
.floating-island.expanded .island-pill {
    min-width: 220px;
    height: 34px;
    border-radius: 20px;
    justify-content: flex-start;
    border-color: rgba(216, 179, 106, 0.2);
}

.floating-island.expanded .island-icon {
    display: block;
}

.floating-island.expanded .island-text {
    opacity: 1;
    font-weight: 600;
}

@keyframes bounceSlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

/* Bottom safe space bar */
.bottom-home-bar {
    height: env(safe-area-inset-bottom, 12px);
    background-color: var(--bg-deep-space-1);
    width: 100%;
    z-index: 90;
}


/* ==========================================================================
   5. VIEWPORT & SCREEN LAYER NAVIGATION
   ========================================================================== */
.app-viewport {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateX(35px);
    transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    background-color: var(--bg-deep-space-2);
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 5;
}

/* 6. TYPOGRAPHY & INTERACTION SYSTEMS */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

p {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.5;
    color: var(--gray-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: #070B18;
    border: none;
    padding: 16px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-primary:active {
    transform: scale(0.97);
    filter: brightness(0.92);
}

.glass-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.glass-btn:hover {
    background: var(--glass-bg-hover);
}

.glass-btn:active {
    transform: scale(0.98);
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

/* V3: SUBTLE TRANSPARENT METALLIC BORDERS & SHIMMER EFFECTS */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(13, 19, 37, 0.3) 100%);
    /* Very light gold metallic border details */
    border: 1px solid rgba(216, 179, 106, 0.09);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Active Highlight cards have slightly more golden border */
.glass-card.highlight-border {
    border-color: rgba(216, 179, 106, 0.22);
    box-shadow: 0 6px 22px rgba(216, 179, 106, 0.05);
}

/* V3: DIAGONAL GLARE METALLIC SHIMMER REFLECTION EFFECT */
.shimmer-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.035) 42%,
        rgba(216, 179, 106, 0.05) 45%,
        rgba(255, 255, 255, 0.035) 48%,
        rgba(255, 255, 255, 0) 55%,
        transparent 100%
    );
    transform: rotate(-12deg);
    pointer-events: none;
    animation: shimmerSweep 9s infinite ease-in-out;
}

@keyframes shimmerSweep {
    0% { transform: translate(-30%, -30%) rotate(-12deg); }
    25% { transform: translate(15%, 15%) rotate(-12deg); }
    100% { transform: translate(15%, 15%) rotate(-12deg); }
}

.scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 100px 20px;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-padder {
    height: 80px;
    width: 100%;
}

/* ==========================================================================
   7. INDIVIDUAL SCREEN STYLES
   ========================================================================== */

/* --- SPLASH SCREEN --- */
.splash-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #131B35, #070B18 90%);
}

.effects-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.splash-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(7, 11, 24, 0.8), transparent);
    z-index: 2;
}

.splash-content {
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-monogram {
    width: 115px;
    height: 115px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(216, 179, 106, 0.4));
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.outer-ring {
    transform-origin: 50px 50px;
    animation: rotateSlow 30s linear infinite;
}

.triangle {
    transform-origin: 50px 50px;
    animation: rotateReverse 20s linear infinite;
}

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

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

.splash-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #FFFFFF 0%, #D8B36A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    animation: fadeInDown 1.3s ease-out;
}

.splash-slogan {
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray-light);
    animation: fadeInUp 1.3s ease-out 0.4s both;
}

.skip-btn {
    position: absolute;
    bottom: 50px;
    right: 25px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.1em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: var(--transition-smooth);
}

.skip-btn:active {
    transform: scale(0.95);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

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


/* --- ONBOARDING SCREEN --- */
.onboarding-screen {
    background: radial-gradient(circle at bottom, #10162B, #070B18);
    justify-content: space-between;
    padding-bottom: 40px;
}

.onboarding-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.onboarding-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 40px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.onboarding-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.onboarding-slide.prev {
    transform: translateX(-100px);
}

.slide-graphic {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.cosmic-ring {
    position: absolute;
    border: 1px dashed rgba(216, 179, 106, 0.25);
    border-radius: 50%;
    animation: rotateSlow 20s linear infinite;
}
.ring-1 { width: 170px; height: 170px; }
.ring-2 { width: 120px; height: 120px; animation-duration: 12s; animation-direction: reverse; }

.frequency-pulses {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.15), transparent 70%);
    border: 1.5px solid var(--primary-purple);
    animation: pulseRing 2s infinite linear;
}
.pulse-2 { animation-delay: 0.6s; }
.pulse-3 { animation-delay: 1.2s; }

.school-seal {
    width: 130px;
    height: 130px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(216, 179, 106, 0.08), transparent);
    animation: floatAnim 4s infinite alternate ease-in-out;
}
.shield-border {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}
.school-seal::after {
    content: '✵';
    font-size: 36px;
    color: var(--gold);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-avatar-glow {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(138, 91, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}
.ai-particle-core {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FFFFFF, var(--primary-indigo));
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    position: absolute;
    top: 37px;
    left: 37px;
    animation: pulseRing 1.5s infinite alternate ease-in-out;
}

.onboarding-slide h2 {
    font-size: 22px;
    margin-bottom: 14px;
}

.onboarding-slide p {
    font-size: 13.5px;
    color: var(--gray-light);
    padding: 0 12px;
}

.onboarding-footer {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-elastic);
}

.carousel-dots .dot.active {
    width: 18px;
    border-radius: 10px;
    background-color: var(--gold);
}


/* --- LOGIN SCREEN --- */
.login-screen {
    background: radial-gradient(circle at top, #111528, #070B18);
    padding: 40px 30px;
    justify-content: space-between;
}

.login-header {
    text-align: center;
    margin-top: 40px;
}

.logo-mini {
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 13.5px;
}

.login-card {
    padding: 24px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
}

.phone-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(123, 97, 255, 0.15);
}

.country-code {
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-input-wrapper input {
    background: transparent;
    border: none;
    padding: 14px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.phone-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.separator {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.separator span {
    position: relative;
    background: #0d1325;
    padding: 0 10px;
    font-size: 11.5px;
    color: var(--gray-dark);
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oauth-btn {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
}

.guest-link {
    text-align: center;
    color: var(--gray-dark);
    font-size: 12.5px;
    text-decoration: none;
    margin-bottom: 20px;
}

.guest-link:hover {
    color: var(--gold);
}


/* --- HOME DASHBOARD (ANA SAYFA) --- */
.home-screen {
    background-color: #070B18;
}

.home-title-block {
    padding: 24px 20px 0 20px;
}

.sub-greeting {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
}

.main-greeting {
    font-size: 21px;
}

/* V2: Moon Phase Card Widget */
.moon-phase-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(123, 97, 255, 0.05) 100%);
    border: 1px solid rgba(123, 97, 255, 0.12);
}

.moon-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.moon-visual {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-visual canvas {
    position: absolute;
    z-index: 2;
}

.moon-glow-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    filter: blur(8px);
    z-index: 1;
}

.moon-info {
    flex: 1;
}

.moon-info h4 {
    font-size: 14.5px;
    color: var(--gold);
    margin-bottom: 4px;
}

.moon-info p {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.moon-transit-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-indigo);
    background: rgba(138, 91, 255, 0.1);
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(138, 91, 255, 0.15);
}

/* V3: DALLY INTERACTIVE TAROT CARD STYLES */
.tarot-widget-card {
    border-color: rgba(216, 179, 106, 0.22);
}

.tarot-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tarot-card-container {
    width: 86px;
    height: 130px;
    perspective: 600px;
    cursor: pointer;
    flex-shrink: 0;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

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

.tarot-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Back (Facedown) - Sleek Gold-engraved details */
.tarot-card-back {
    background: linear-gradient(135deg, #0f142b 0%, #070B18 100%);
    border: 1.5px solid rgba(216, 179, 106, 0.35); /* Subtle gold frame */
}

.gold-pattern-frame {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1px dashed rgba(216, 179, 106, 0.25);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 6px 0;
}

.gold-stars-grid {
    font-size: 8px;
    color: rgba(216, 179, 106, 0.25);
    letter-spacing: 2px;
}

.gold-inner-emblem {
    font-size: 26px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(216, 179, 106, 0.5);
    animation: rotateSlow 20s linear infinite;
}

/* Card Front (Faceup) */
.tarot-card-front {
    background: linear-gradient(135deg, #181c3a 0%, #080a1c 100%);
    border: 1.5px solid rgba(216, 179, 106, 0.45);
    transform: rotateY(180deg);
}

.tarot-front-frame {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border: 1px solid rgba(216, 179, 106, 0.15);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
}

.tarot-glyph {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(216, 179, 106, 0.35));
}

.tarot-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.tarot-roman {
    font-size: 8px;
    font-family: serif;
    color: var(--gray-dark);
}

/* Wisdom Description text panel */
.tarot-wisdom-box {
    flex: 1;
    animation: fadeInDown 0.5s ease both;
}

.tarot-wisdom-box h4 {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 4px;
}

.tarot-wisdom-box p {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 8px;
}

.btn-tarot-reset {
    background: transparent;
    border: 1px solid rgba(216, 179, 106, 0.25);
    color: var(--gold);
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-tarot-reset:hover {
    background: rgba(216, 179, 106, 0.08);
}


/* Card: Message */
.card-message {
    padding: 20px;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(216, 179, 106, 0.12) 0%, transparent 75%);
    pointer-events: none;
}

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

.card-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.card-body h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 12.5px;
    line-height: 1.55;
}

.card-action-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-top: 12px;
    outline: none;
    transition: var(--transition-smooth);
}

.card-action-btn:hover {
    color: var(--white);
}

.hidden {
    display: none !important;
}

/* Card: Frequency */
.player-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.play-pulse-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: #070B18;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: var(--transition-smooth);
}

.play-pulse-btn:active {
    transform: scale(0.92);
}

.player-info h4 {
    font-size: 14.5px;
    margin-bottom: 2px;
}

.player-info p {
    font-size: 10.5px;
    color: var(--gray-dark);
}

/* Audio wave animation */
.mini-wave-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.wave-bar {
    width: 3px;
    height: 4px;
    background-color: var(--primary-purple);
    border-radius: 3px;
}

.mini-wave-container.playing .wave-bar {
    animation: wavePulse 1.2s infinite ease-in-out;
}

.mini-wave-container.playing .wave-bar:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.mini-wave-container.playing .wave-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; }
.mini-wave-container.playing .wave-bar:nth-child(4) { animation-delay: 0.6s; height: 18px; }
.mini-wave-container.playing .wave-bar:nth-child(5) { animation-delay: 0.8s; height: 6px; }

@keyframes wavePulse {
    0%, 100% { height: 4px; }
    50% { height: 22px; }
}

/* Card: Planetary Hours */
.planet-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.planet-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.planet-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(216, 179, 106, 0.2);
    transform: translateY(-2px);
}

.planet-icon-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

.jupiter-orb { background: rgba(123, 97, 255, 0.12); color: var(--primary-purple); border: 1px solid rgba(123, 97, 255, 0.25); }
.venus-orb { background: rgba(216, 179, 106, 0.12); color: var(--gold); border: 1px solid rgba(216, 179, 106, 0.25); }
.mercury-orb { background: rgba(255, 255, 255, 0.08); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.15); }

.planet-name {
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.planet-time {
    font-size: 9px;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.planet-status {
    font-size: 8.5px;
    font-weight: 550;
    color: var(--gold);
    background: rgba(216, 179, 106, 0.08);
    padding: 2px 6px;
    border-radius: 10px;
}

.planet-detail-panel {
    margin-top: 15px;
    padding: 14px;
    background: rgba(13, 19, 37, 0.6);
    border: 1px solid rgba(216, 179, 106, 0.2);
    border-radius: 12px;
    position: relative;
    animation: fadeInDown 0.35s ease;
}

.planet-detail-panel h4 {
    color: var(--gold);
    font-size: 13.5px;
    margin-bottom: 4px;
}

.planet-detail-panel p {
    font-size: 11.5px;
}

.btn-close-detail {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 11px;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0.6;
}

/* Card: Chakra */
.chakra-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chakra-visualizer {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chakra-visualizer canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.chakra-center-glow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4CAF50;
    box-shadow: 0 0 15px #4CAF50;
    z-index: 2;
    animation: pulseRing 1.8s infinite alternate ease-in-out;
}

.chakra-info {
    flex: 1;
}

.chakra-info h4 {
    font-size: 13.5px;
    margin-bottom: 4px;
}

.chakra-info p {
    font-size: 11.5px;
    margin-bottom: 8px;
}

.chakra-tip-box {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gold);
    padding: 6px 10px;
    border-radius: 0 8px 8px 0;
    color: var(--gray-light);
}

/* Card: AI Preview */
.ai-preview-card {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.06) 0%, rgba(216, 179, 106, 0.02) 100%);
    border: 1px solid rgba(123, 97, 255, 0.15);
}

.ai-preview-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateSlow 20s linear infinite;
}

.ai-preview-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-preview-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.ai-avatar-animated {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 91, 255, 0.35), transparent 70%);
    position: relative;
}

.ai-core-pulse {
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 13px;
    left: 13px;
    box-shadow: 0 0 10px var(--primary-purple);
    animation: pulseRing 1.5s infinite alternate ease-in-out;
}

.ai-intro h4 {
    font-size: 13.5px;
    margin-bottom: 2px;
}

.ai-intro p {
    font-size: 10.5px;
    color: var(--gray-light);
    font-style: italic;
}

.btn-ai-ask {
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12.5px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.btn-ai-ask:active {
    transform: scale(0.94);
}


/* --- NIGHT CLUB SCREEN --- */
.nightclub-screen {
    background-color: #04060d;
}

.nightclub-title-block {
    padding: 24px 20px 0 20px;
    text-align: center;
}

.nightclub-title-block h2 {
    font-size: 23px;
    background: linear-gradient(135deg, var(--white), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nightclub-title-block p {
    font-size: 11.5px;
    letter-spacing: 0.1em;
}

.nightclub-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.music-disc-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 180px;
}

.disc-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(138, 91, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: pulseGlow 3s infinite alternate ease-in-out;
}

.music-disc {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, #0e111a 30%, #030408 100%);
    border: 3px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: transform 0.5s ease;
}

.music-disc.playing {
    animation: rotateDisc 10s linear infinite;
    border-color: rgba(123, 97, 255, 0.25);
}

.music-disc canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.disc-center {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #020205;
    border: 2.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.disc-center-icon {
    font-size: 16px;
}

.player-controls-panel {
    padding: 20px;
    margin-bottom: 75px;
}

.playing-title-section {
    text-align: center;
    margin-bottom: 12px;
}

.playing-title-section h3 {
    font-size: 17px;
    margin-bottom: 4px;
}

.playing-title-section p {
    font-size: 10.5px;
}

.waveform-box {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
    overflow: hidden;
}

.waveform-box canvas {
    width: 100%;
    height: 100%;
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 16px;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.control-btn:hover {
    color: var(--gold);
}

.mini-btn {
    opacity: 0.65;
}

.mini-btn:hover {
    opacity: 1;
}

.play-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.play-main-btn:active {
    transform: scale(0.93);
}

.volume-slider-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.volume-slider-box input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 3.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.volume-slider-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12.5px;
    height: 12.5px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(216, 179, 106, 0.4);
}

/* V2: MIXER BOARD STYLING */
.mixer-board-wrapper {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
}

.mixer-header {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.mixer-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mixer-channel {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chan-icon {
    font-size: 13px;
    margin-right: 6px;
}

.chan-name {
    font-size: 11.5px;
    font-weight: 500;
    flex: 1;
}

/* Miniature Switch toggle */
.mini-switch {
    width: 32px;
    height: 18px;
}

.mini-switch .slider:before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
}

.mini-switch input:checked + .slider:before {
    transform: translateX(14px);
}

.channel-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.channel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.6;
    cursor: pointer;
}

.channel-slider:disabled {
    opacity: 0.2;
}

.preset-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.preset-chips-scroll::-webkit-scrollbar {
    display: none;
}

.preset-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.preset-chip.active {
    background: rgba(216, 179, 106, 0.08);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: var(--shadow-gold);
}


/* --- SCHOOL SCREEN (RotaSenX OKULU) --- */
.school-title-block {
    padding: 24px 20px 10px 20px;
}

.school-title-block h2 {
    font-size: 23px;
}

.school-title-block p {
    font-size: 11.5px;
    margin-bottom: 14px;
}

.academy-progress-wrapper {
    padding: 14px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 8px;
}

.progress-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-purple), var(--gold));
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.badges-row {
    display: flex;
    gap: 8px;
}

.badge-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-tag.unlock {
    background: rgba(216, 179, 106, 0.08);
    border-color: rgba(216, 179, 106, 0.15);
    color: var(--gold);
}

.badge-tag.lock {
    background: rgba(255, 255, 255, 0.01);
    opacity: 0.35;
}

/* Classes grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.class-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 16px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.class-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.class-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.class-card.locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.04);
}

.class-card-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.class-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.35;
}

.class-card p {
    font-size: 10px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.class-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8.5px;
}

.class-progress {
    color: var(--gold);
    font-weight: bold;
}

.lock-badge {
    background: rgba(0, 0, 0, 0.35);
    padding: 2.5px 6px;
    border-radius: 6px;
    color: var(--gray-dark);
}

/* Lesson Detail Modal */
.lesson-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(4, 6, 13, 0.75);
    display: flex;
    align-items: flex-end;
}

.lesson-modal-content {
    width: 100%;
    height: 78%;
    border-radius: 28px 28px 0 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-light);
    z-index: 10;
}

.lesson-modal-header {
    margin-bottom: 14px;
}

.lesson-category {
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gold);
}

.lesson-modal-header h3 {
    font-size: 17px;
    margin-top: 4px;
}

.lesson-video-mock {
    height: 130px;
    background: #020409;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.video-overlay {
    z-index: 2;
}

.video-play-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11.5px;
    backdrop-filter: blur(10px);
}

.video-background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.12) 0%, transparent 80%);
}

.lesson-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.lesson-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 0;
    color: var(--gray-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    position: relative;
    outline: none;
}

.lesson-tab-btn.active {
    color: var(--white);
}

.lesson-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

.lesson-tab-panes {
    flex: 1;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.6;
}

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

.quiz-question {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option-btn {
    text-align: left;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    font-size: 12px;
}

.quiz-option-btn.correct {
    background: rgba(76, 175, 80, 0.12);
    border-color: #4CAF50;
    color: #4CAF50;
}

.quiz-option-btn.incorrect {
    background: rgba(244, 67, 54, 0.12);
    border-color: #f44336;
    color: #f44336;
}

.quiz-feedback {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.06);
    color: #4CAF50;
    font-size: 11px;
}

.pdf-download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    border-radius: 12px;
}

.btn-download {
    background: var(--gold);
    color: #070B18;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: bold;
    cursor: pointer;
}


/* --- SOSYAL FEED SCREEN --- */
.social-header {
    padding: 24px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.03);
}

.social-title h2 {
    font-size: 23px;
}

.social-title p {
    font-size: 11px;
}

.btn-add-post {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    border: none;
    color: var(--white);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.feed-post {
    margin-bottom: 16px;
    padding: 16px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-purple);
}

.post-meta h4 {
    font-size: 13px;
}

.post-meta span {
    font-size: 9px;
    color: var(--gray-dark);
}

.post-content {
    font-size: 12.5px;
    color: var(--gray-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.post-media img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
}

.post-action-btn {
    background: transparent;
    border: none;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.post-action-btn.liked {
    color: #f44336;
}

/* Post Composer drawer */
.post-drawer, .comments-drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(4, 6, 13, 0.75);
    display: flex;
    align-items: flex-end;
}

.post-drawer-content, .comments-drawer-content {
    width: 100%;
    height: 58%;
    border-radius: 28px 28px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.post-drawer-content textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    resize: none;
    margin-bottom: 16px;
}

.post-drawer-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.drawer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-attach {
    font-size: 11.5px;
    color: var(--gold);
    cursor: pointer;
}

.drawer-actions .btn-primary {
    width: auto;
    padding: 10px 24px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.comment-body h5 {
    font-size: 11.5px;
    color: var(--gold);
    margin-bottom: 2px;
}

.comment-body p {
    font-size: 11px;
    color: var(--white);
}

.comment-input-row {
    display: flex;
    gap: 10px;
}

.comment-input-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px;
    color: var(--white);
    outline: none;
    font-size: 12.5px;
}

.comment-input-row button {
    background: var(--gold);
    color: #070B18;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11.5px;
}


/* --- DEMET AI SCREEN (CHAT) --- */
.ai-title-block {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-avatar-glow-header {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.5), transparent 70%);
    position: relative;
    padding: 2px;
}

.ai-avatar-core {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-purple);
}

.ai-title-desc {
    flex: 1;
}

.ai-title-desc h2 {
    font-size: 15.5px;
}

.ai-status {
    font-size: 9px;
    color: var(--gold);
}

.mic-toggle-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.ai-chips-container {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ai-chips-container::-webkit-scrollbar {
    display: none;
}

.ai-chip {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 10.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(123, 97, 255, 0.15);
}

.chat-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: radial-gradient(circle at bottom, rgba(13, 19, 37, 0.25) 0%, transparent 80%);
}

.chat-viewport::-webkit-scrollbar {
    display: none;
}

.chat-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 12.5px;
    line-height: 1.5;
    animation: fadeInDown 0.32s ease;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top-left-radius: 3px;
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--primary-indigo);
    border-top-right-radius: 3px;
    align-self: flex-end;
    box-shadow: var(--shadow-glow);
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 12px;
}

.typing-dot {
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background-color: var(--white);
    animation: typingBounce 1s infinite alternate;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.chat-input-area {
    margin: 10px 16px 85px 16px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
}

.attach-btn {
    font-size: 18px;
    cursor: pointer;
    color: var(--gray-dark);
    margin-right: 10px;
}

.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.chat-input-area input::placeholder {
    color: rgba(255,255,255,0.18);
}

.send-message-btn {
    background: var(--gold);
    color: #070B18;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.voice-overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070b18fa;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.voice-orb-glow {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-indigo) 0%, transparent 60%);
    position: relative;
    filter: blur(8px);
    animation: rotateSlow 8s linear infinite;
}

.voice-pulse-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--primary-purple);
    position: absolute;
    animation: pulseRing 2s infinite ease-out;
}

.voice-overlay-screen h3 {
    font-size: 19px;
    margin-top: 36px;
    margin-bottom: 8px;
    color: var(--gold);
}

.voice-overlay-screen p {
    font-size: 13.5px;
    font-style: italic;
    margin-bottom: 36px;
}

.btn-close-voice {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12.5px;
}


/* --- PROFIL SCREEN (PROFILE) --- */
.profile-header-card {
    padding: 24px 20px 15px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-edit {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
    border: 2px solid var(--gold);
    overflow: hidden;
}

.profile-avatar-edit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-cosmic-title {
    font-size: 11.5px;
    color: var(--gold);
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 10px;
}

.profile-level-progress {
    width: 130px;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.lvl-progress-fill {
    height: 100%;
    background: var(--gold);
}

.profile-scroll {
    padding-top: 0px;
}

/* Premium Offer Banner */
.premium-banner {
    background: linear-gradient(135deg, rgba(216, 179, 106, 0.12) 0%, rgba(123, 97, 255, 0.03) 100%);
    border: 1px solid rgba(216, 179, 106, 0.22);
}

.premium-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(216, 179, 106, 0.12) 0%, transparent 70%);
}

.premium-content h3 {
    color: var(--gold);
    font-size: 15.5px;
    margin-bottom: 6px;
}

.premium-content p {
    font-size: 11.5px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.btn-premium-action {
    background: var(--gold);
    color: #070B18;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
}

/* V2: Astro Birth Chart Wheel positioning */
.zodiac-wheel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 15px auto;
    width: 220px;
    height: 220px;
}

.zodiac-wheel-wrapper canvas {
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(216, 179, 106, 0.1);
}

.wheel-center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    z-index: 10;
}

/* Astrology form configurations */
.astro-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--gray-dark);
}

.form-group input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12.5px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--gold);
}

.astro-node-box {
    padding: 14px;
    border-radius: 12px;
    margin-top: 10px;
    border-color: rgba(216, 179, 106, 0.15);
}

.node-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--gray-dark);
}

.node-value {
    font-size: 14.5px;
    font-weight: bold;
    color: var(--gold);
    margin: 4px 0;
}

.node-desc {
    font-size: 11px;
    line-height: 1.45;
}

.setting-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.setting-info h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.setting-info p {
    font-size: 10px;
    color: var(--gray-dark);
}

.setting-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 12px;
}

.setting-input-row input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--white);
    outline: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-purple);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.btn-signout {
    width: 100%;
    margin-top: 10px;
    border-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.btn-signout:hover {
    background: rgba(244, 67, 54, 0.08);
}


/* ==========================================================================
   8. FLOATING BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
    position: absolute;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    right: 20px;
    height: 60px;
    background: rgba(13, 19, 37, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 90;
    padding: 0 8px;
}

.nav-item {
    position: relative;
    background: transparent;
    border: none;
    color: var(--gray-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: var(--transition-smooth);
    outline: none;
}

.nav-icon {
    width: 19px;
    height: 19px;
    margin-bottom: 3px;
    transition: var(--transition-elastic);
}

.nav-item span {
    font-size: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(3px);
    transition: var(--transition-smooth);
}

.nav-item.active {
    color: var(--white);
}

.nav-item.active .nav-icon {
    transform: translateY(-3px) scale(1.1);
    color: var(--gold);
}

.nav-item.active span {
    opacity: 1;
    transform: translateY(0);
}

.nav-indicator {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 48px;
    height: 40px;
    background: radial-gradient(circle, rgba(216, 179, 106, 0.12), transparent 80%);
    border-radius: 14px;
    border: 1px solid rgba(216, 179, 106, 0.2);
    pointer-events: none;
    z-index: -1;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s ease;
}


/* ==========================================================================
   9. RESPONSIVE NATIVE MOBILE EXPANSION
   ========================================================================== */
@media (max-width: 480px) {
    body {
        background-color: var(--bg-deep-space-1);
    }
    
    .desktop-bg {
        display: none;
    }
    
    .app-root {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .app-header {
        padding-top: env(safe-area-inset-top, 10px);
        height: calc(64px + env(safe-area-inset-top, 0px));
    }
    
    .floating-island {
        top: calc(14px + env(safe-area-inset-top, 0px));
    }
    
    .bottom-nav {
        bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px;
        left: 16px;
        right: 16px;
    }
}
