/* Astraea Mystic Astrology Studio - Mystic Luxury Theme */
:root {
	--bg-abyss: #07080f;
	--bg-surface: #0c0e1a;
	--bg-card: rgba(16, 20, 36, 0.75);
	--bg-card-hover: rgba(22, 28, 48, 0.85);
	--bg-input: rgba(10, 13, 24, 0.9);
	
	--gold-primary: #dfb76c;
	--gold-light: #fae8b6;
	--gold-dark: #9e7b34;
	--gold-glow: rgba(223, 183, 108, 0.25);
	--gold-border: rgba(223, 183, 108, 0.35);
	
	--purple-celestial: #9d72ff;
	--purple-glow: rgba(157, 114, 255, 0.2);
	--cyan-star: #38bdf8;
	
	--text-main: #f5f6fa;
	--text-muted: #a3adc2;
	--text-dim: #6c7891;
	--text-gold: #f3e0aa;

	--font-display: "Cinzel", Georgia, serif;
	--font-serif: "Cormorant Garamond", Garamond, serif;
	--font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-full: 9999px;

	--shadow-luxury: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(223, 183, 108, 0.15);
	--shadow-glow: 0 0 25px rgba(223, 183, 108, 0.3);
}

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

body {
	background-color: var(--bg-abyss);
	background-image: 
		radial-gradient(circle at 50% 0%, rgba(157, 114, 255, 0.12) 0%, transparent 60%),
		radial-gradient(circle at 10% 40%, rgba(223, 183, 108, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 90% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
		url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='18' r='0.7' fill='%23ffffff' fill-opacity='0.25'/%3E%3Ccircle cx='78' cy='34' r='0.6' fill='%23ffffff' fill-opacity='0.2'/%3E%3Ccircle cx='45' cy='72' r='0.9' fill='%23dfb76c' fill-opacity='0.3'/%3E%3Ccircle cx='88' cy='85' r='0.5' fill='%23ffffff' fill-opacity='0.15'/%3E%3Ccircle cx='25' cy='89' r='0.8' fill='%239d72ff' fill-opacity='0.25'/%3E%3C/svg%3E");
	color: var(--text-main);
	font-family: var(--font-sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: var(--bg-abyss);
}
::-webkit-scrollbar-thumb {
	background: rgba(223, 183, 108, 0.3);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--gold-primary);
}

/* Typography */
h1, h2, h3, h4, .font-cinzel {
	font-family: var(--font-display);
	letter-spacing: 0.04em;
	color: var(--gold-light);
}

.font-serif {
	font-family: var(--font-serif);
}

/* Header & Navigation */
.app-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(7, 8, 15, 0.88);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--gold-border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.9rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	text-decoration: none;
}

.brand-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: radial-gradient(circle, #dfb76c 20%, #4a2800 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	box-shadow: 0 0 15px rgba(223, 183, 108, 0.5);
	border: 1px solid var(--gold-light);
	animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
	0%, 100% { box-shadow: 0 0 12px rgba(223, 183, 108, 0.4); }
	50% { box-shadow: 0 0 24px rgba(223, 183, 108, 0.8); }
}

.brand-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--gold-light);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.brand-sub {
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	color: var(--text-muted);
	text-transform: uppercase;
	font-weight: 500;
}

.nav-tabs {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.nav-btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-muted);
	padding: 0.55rem 0.95rem;
	border-radius: var(--radius-full);
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: all 0.25s ease;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.nav-btn:hover {
	color: var(--gold-light);
	background: rgba(223, 183, 108, 0.08);
	border-color: rgba(223, 183, 108, 0.2);
}

.nav-btn.active {
	color: #07080f;
	background: linear-gradient(135deg, #dfb76c, #f3e3a8);
	border-color: var(--gold-light);
	box-shadow: 0 0 15px rgba(223, 183, 108, 0.4);
	font-weight: 700;
}

.header-cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Layout Container */
.main-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1.5rem 5rem;
}

/* Buttons */
.btn-gold {
	background: linear-gradient(135deg, #dfb76c 0%, #fae8b6 50%, #b88d3b 100%);
	color: #0c0e1a;
	border: 1px solid var(--gold-light);
	padding: 0.7rem 1.5rem;
	border-radius: var(--radius-full);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(223, 183, 108, 0.35);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.btn-gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(223, 183, 108, 0.55);
	filter: brightness(1.08);
}

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

.btn-ghost {
	background: rgba(16, 20, 36, 0.6);
	border: 1px solid var(--gold-border);
	color: var(--gold-light);
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-full);
	font-family: var(--font-display);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-ghost:hover {
	background: rgba(223, 183, 108, 0.15);
	border-color: var(--gold-primary);
	box-shadow: 0 0 12px rgba(223, 183, 108, 0.2);
}

.btn-sm {
	padding: 0.4rem 0.8rem;
	font-size: 0.76rem;
}

/* Glass Cards */
.mystic-card {
	background: var(--bg-card);
	backdrop-filter: blur(12px);
	border: 1px solid var(--gold-border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	box-shadow: var(--shadow-luxury);
	position: relative;
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.mystic-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
	opacity: 0.6;
}

.mystic-card:hover {
	border-color: rgba(223, 183, 108, 0.5);
}

.mystic-card.subtle {
	padding: 1.25rem;
	background: rgba(13, 16, 28, 0.5);
	border-color: rgba(223, 183, 108, 0.2);
}

/* Ornate Corner Accents */
.ornate-card {
	position: relative;
}
.ornate-card::after {
	content: "✦";
	position: absolute;
	top: 8px;
	right: 12px;
	color: var(--gold-primary);
	font-size: 0.75rem;
	opacity: 0.6;
}

/* Hero Section */
.hero-banner {
	text-align: center;
	padding: 2.5rem 1rem 3rem;
	position: relative;
}

.hero-subtitle {
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold-primary);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #ffffff 20%, #fae8b6 70%, #dfb76c 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 0 30px rgba(223, 183, 108, 0.2);
}

.hero-desc {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	color: var(--text-muted);
	max-width: 720px;
	margin: 0 auto 1.75rem;
	line-height: 1.7;
	font-style: italic;
}

/* Forms & Inputs */
.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-bottom: 1.25rem;
}

.form-label {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--gold-light);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.form-input, .form-select, .form-textarea {
	background: var(--bg-input);
	border: 1px solid rgba(223, 183, 108, 0.3);
	border-radius: var(--radius-md);
	padding: 0.75rem 1rem;
	color: var(--text-main);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	transition: all 0.25s ease;
	outline: none;
	width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
	border-color: var(--gold-primary);
	box-shadow: 0 0 15px rgba(223, 183, 108, 0.25);
	background: rgba(14, 18, 33, 0.95);
}

.form-input::placeholder, .form-textarea::placeholder {
	color: var(--text-dim);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

/* Natal Chart Wheel SVG container */
.natal-wheel-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 1rem;
}

.natal-svg {
	filter: drop-shadow(0 0 20px rgba(223, 183, 108, 0.25));
	max-width: 100%;
	height: auto;
	animation: rotateSlow 240s linear infinite;
	transform-origin: center center;
}

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

.natal-svg:hover {
	animation-play-state: paused;
}

/* Planet Badge & House Tables */
.planet-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 0.75rem;
}

.planet-card {
	background: rgba(13, 17, 31, 0.85);
	border: 1px solid rgba(223, 183, 108, 0.2);
	border-radius: var(--radius-md);
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	transition: all 0.25s ease;
}

.planet-card:hover {
	border-color: var(--gold-primary);
	transform: translateY(-2px);
	background: rgba(20, 26, 48, 0.95);
}

.planet-glyph-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(223, 183, 108, 0.15);
	border: 1px solid var(--gold-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	color: var(--gold-light);
}

/* Element & Modality Bars */
.element-bar-wrap {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.element-label {
	width: 70px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-muted);
}

.element-track {
	flex: 1;
	height: 8px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.element-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-fire { background: linear-gradient(90deg, #ff416c, #ff4b2b); }
.fill-earth { background: linear-gradient(90deg, #11998e, #38ef7d); }
.fill-air { background: linear-gradient(90deg, #89f7fe, #66a6ff); }
.fill-water { background: linear-gradient(90deg, #4facfe, #00f2fe); }

/* Aspect Table */
.aspect-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 600;
}

.aspect-Harmonious { background: rgba(56, 239, 125, 0.15); color: #38ef7d; border: 1px solid rgba(56, 239, 125, 0.3); }
.aspect-Unified { background: rgba(223, 183, 108, 0.2); color: var(--gold-light); border: 1px solid var(--gold-primary); }
.aspect-Dynamic { background: rgba(255, 75, 43, 0.2); color: #ff6b6b; border: 1px solid rgba(255, 75, 43, 0.4); }
.aspect-Intense { background: rgba(157, 114, 255, 0.2); color: #c084fc; border: 1px solid rgba(157, 114, 255, 0.4); }

/* Tarot Deck & Interactive Cards */
.tarot-stage {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	perspective: 1200px;
	margin: 2rem 0;
}

.tarot-card-container {
	width: 220px;
	height: 360px;
	position: relative;
	cursor: pointer;
	perspective: 1000px;
}

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

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

.tarot-face {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 14px;
	border: 2px solid var(--gold-primary);
	box-shadow: var(--shadow-luxury);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tarot-back {
	background: radial-gradient(circle, #181d33 0%, #080a12 100%);
	align-items: center;
	justify-content: center;
	padding: 1rem;
	border-color: var(--gold-primary);
}

.tarot-back-pattern {
	width: 100%;
	height: 100%;
	border: 1px dashed rgba(223, 183, 108, 0.4);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: repeating-linear-gradient(45deg, rgba(223,183,108,0.03) 0, rgba(223,183,108,0.03) 10px, transparent 10px, transparent 20px);
}

.tarot-front {
	transform: rotateY(180deg);
	background: linear-gradient(160deg, #12162b 0%, #0a0c16 100%);
	padding: 1.25rem 1rem;
	justify-content: space-between;
	text-align: center;
}

.tarot-num {
	font-family: var(--font-display);
	font-size: 0.85rem;
	color: var(--gold-primary);
	letter-spacing: 0.15em;
}

.tarot-title {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
	margin: 0.2rem 0;
}

.tarot-art-symbol {
	font-size: 2.5rem;
	margin: 0.5rem 0;
	color: var(--gold-light);
	filter: drop-shadow(0 0 10px rgba(223, 183, 108, 0.5));
}

.tarot-ruler {
	font-size: 0.72rem;
	color: var(--text-muted);
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Zodiac Horoscope Grid */
.zodiac-badge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 0.6rem;
	margin-bottom: 1.5rem;
}

.zodiac-chip {
	background: rgba(16, 20, 36, 0.8);
	border: 1px solid rgba(223, 183, 108, 0.25);
	border-radius: var(--radius-md);
	padding: 0.6rem 0.4rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.25s ease;
}

.zodiac-chip:hover {
	border-color: var(--gold-primary);
	background: rgba(223, 183, 108, 0.12);
	transform: translateY(-2px);
}

.zodiac-chip.active {
	background: linear-gradient(135deg, rgba(223, 183, 108, 0.3), rgba(157, 114, 255, 0.25));
	border-color: var(--gold-light);
	box-shadow: 0 0 15px rgba(223, 183, 108, 0.3);
}

.zodiac-chip-symbol {
	font-size: 1.5rem;
	color: var(--gold-light);
	margin-bottom: 0.2rem;
}

.zodiac-chip-name {
	font-size: 0.72rem;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* Consultation Package Cards */
.package-card {
	background: rgba(14, 18, 33, 0.85);
	border: 1px solid var(--gold-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	transition: all 0.3s ease;
}

.package-card:hover {
	transform: translateY(-4px);
	border-color: var(--gold-primary);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(223, 183, 108, 0.25);
}

.package-card.highlight {
	border-color: var(--gold-light);
	background: linear-gradient(160deg, rgba(25, 30, 56, 0.95), rgba(14, 18, 33, 0.95));
	box-shadow: 0 0 30px rgba(223, 183, 108, 0.2);
}

.package-badge {
	position: absolute;
	top: -12px;
	right: 20px;
	background: linear-gradient(135deg, #dfb76c, #f3e3a8);
	color: #07080f;
	padding: 0.25rem 0.85rem;
	border-radius: var(--radius-full);
	font-family: var(--font-display);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.package-price {
	font-family: var(--font-display);
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--gold-light);
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	margin: 0.75rem 0;
}

.package-duration {
	font-size: 0.85rem;
	color: var(--text-muted);
	font-family: var(--font-sans);
	font-weight: 400;
}

.package-features {
	list-style: none;
	margin: 1.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.package-features li {
	font-size: 0.88rem;
	color: var(--text-muted);
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

.package-features li::before {
	content: "✦";
	color: var(--gold-primary);
	font-size: 0.75rem;
	margin-top: 2px;
}

/* Booking Table / Admin View */
.custom-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.custom-table th {
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-primary);
	padding: 0.9rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--gold-border);
	background: rgba(10, 13, 24, 0.6);
}

.custom-table td {
	padding: 1rem;
	border-bottom: 1px solid rgba(223, 183, 108, 0.12);
	color: var(--text-main);
}

.custom-table tr:hover td {
	background: rgba(223, 183, 108, 0.05);
}

.status-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: 0.72rem;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.status-confirmed { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.status-completed { background: rgba(56, 239, 125, 0.18); color: #38ef7d; border: 1px solid rgba(56, 239, 125, 0.4); }
.status-rescheduled { background: rgba(251, 191, 36, 0.18); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }
.status-canceled { background: rgba(248, 113, 113, 0.18); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.4); }

/* Printable Blueprint Styling */
.printable-report-wrap {
	background: #0d101d;
	border: 2px solid var(--gold-primary);
	border-radius: var(--radius-lg);
	padding: 3rem 2.5rem;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
	position: relative;
}

.report-seal {
	width: 90px;
	height: 90px;
	border: 2px dashed var(--gold-primary);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	color: var(--gold-light);
	font-family: var(--font-display);
	font-size: 0.7rem;
	text-align: center;
	letter-spacing: 0.1em;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}
	.nav-tabs {
		justify-content: center;
	}
	.hero-title {
		font-size: 2.2rem;
	}
}

/* Media Print for Deluxe PDF Export */
@media print {
	body {
		background: #ffffff !important;
		color: #111111 !important;
	}
	.app-header, .no-print, .nav-tabs, .btn-gold, .btn-ghost, .hero-banner {
		display: none !important;
	}
	.printable-report-wrap {
		border: 2px solid #222 !important;
		background: #fff !important;
		color: #111 !important;
		box-shadow: none !important;
		padding: 1.5cm !important;
		page-break-after: always;
	}
	.mystic-card {
		background: #fdfdfd !important;
		border: 1px solid #ccc !important;
		color: #111 !important;
		box-shadow: none !important;
	}
	h1, h2, h3, h4, .font-cinzel {
		color: #111 !important;
	}
	.planet-card {
		background: #f8f8f8 !important;
		border: 1px solid #ddd !important;
		color: #111 !important;
	}
	.planet-glyph-icon {
		background: #eee !important;
		border-color: #444 !important;
		color: #111 !important;
	}
}
