/* ==========================
   Base Styles & Variables
   ========================== */
:root {
    --bg-dark: #0c0a1a;
    --bg-darker: #050314;
    --bg-card: rgba(20, 16, 40, 0.7);
    --text-primary: #f3eefc;
    --text-secondary: #b9b1d4;
    --accent: #9b7bff;
    --accent-glow: rgba(155, 123, 255, 0.3);
    --accent-dark: #7b5ee0;
    --border-light: rgba(155, 123, 255, 0.2);
    --transition: all 0.3s ease;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --success: #4caf50;
    --error: #ff6b6b;
    --warning: #ffc107;
    --info: #2196f3;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img { max-width: 100%; }

/* ==========================
   Notification Banners
   ========================== */
.notif-banner {
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1100;
}
.notif-banner.info    { background: var(--info); color: #fff; }
.notif-banner.success { background: var(--success); color: #fff; }
.notif-banner.warning { background: var(--warning); color: #111; }
.notif-banner.error   { background: var(--error); color: #fff; }
.notif-banner.purple  { background: var(--accent); color: #fff; }
.notif-banner .banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}
.notif-sticky-banner {
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.notif-sticky-banner.info    { background: var(--info); color: #fff; }
.notif-sticky-banner.success { background: var(--success); color: #fff; }
.notif-sticky-banner.warning { background: var(--warning); color: #111; }
.notif-sticky-banner.error   { background: var(--error); color: #fff; }
.notif-sticky-banner.purple  { background: var(--accent); color: #fff; }
.notif-sticky-banner .banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

/* User Menu Dropdown */
.user-menu-trigger:hover + .user-dropdown,
.user-dropdown:hover {
    display: block !important;
}
.user-dropdown {
    backdrop-filter: blur(10px);
}
.user-dropdown a:hover {
    background: rgba(155, 123, 255, 0.1);
}

/* ==========================
   Header & Navigation – NO HAMBURGER
   ========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgb(75, 0, 130);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.logo img {
    width: auto;
    max-width: 160px;
    height: 60px;
    object-fit: contain;
}
.nav-menu {
    display: flex;
    gap: 0.6rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-menu a i {
    font-size: 1rem;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}
.nav-menu a.active:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Mobile: icons only, text hidden */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .logo {
        justify-content: center;
    }
    .nav-menu {
        justify-content: center;
        gap: 1rem;
    }
    .nav-menu a span {
        display: none;
    }
    .nav-menu a i {
        font-size: 1.4rem;
        margin: 0;
    }
    .nav-menu a {
        padding: 0.4rem;
    }
    .user-menu-trigger span {
        display: inline-block !important; /* keep user name visible */
    }
    .user-menu-trigger i.fa-chevron-down {
        display: inline-block !important;
    }
}

/* ==========================
   Buttons
   ========================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: white;
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}
.btn-danger {
    background: var(--error);
    color: white;
}
.btn-danger:hover {
    background: #e05555;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1;
    min-width: 280px;
    animation: fadeInUp 1s ease;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.hero-decoration {
    flex: 1;
    min-width: 200px;
    position: relative;
    min-height: 200px;
}
.floating-moon {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(155,123,255,0.2) 0%, rgba(155,123,255,0) 70%);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 6s infinite ease-in-out;
}
.floating-star {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.6;
    bottom: 20%;
    left: 10%;
    animation: float 8s infinite ease-in-out reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 4rem 0;
}
.intro {
    text-align: center;
    background: var(--bg-darker);
}
.featured-services .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.featured-services .card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    color: #fff;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-services .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}
.featured-services .card.card-love {
    background-image: url("../images/love-reading.jpg");
    background-size: cover;
    background-position: center;
}
.featured-services .card.card-career {
    background-image: url("../images/career-reading.jpg");
    background-size: cover;
    background-position: center;
}
.featured-services .card.card-guidance {
    background-image: url("../images/general-guidance.jpg");
    background-size: cover;
    background-position: center;
}
.featured-services .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(255,255,255,0.3);
}
.featured-services .card > * {
    position: relative;
    z-index: 1;
}
.featured-services .card i {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.featured-services .price {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #fff;
}
.why-us { background: var(--bg-darker); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.feature {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
}
.feature i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.faq-preview {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-light);
}
.faq-question {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-answer {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.testimonials-preview { background: var(--bg-darker); }
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.testimonial-preview {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
}
.stars { color: #ffc107; margin: 0.5rem 0; }
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.site-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}
.social-links { margin-top: 1rem; }
.social-links a {
    color: var(--text-secondary);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-links a:hover { color: var(--accent); }

/* Booking */
.booking-main { padding: 2rem 0 4rem; }
.booking-stepper {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    overflow-x: auto;
}
.booking-stepper:before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}
.step {
    flex: 1;
    min-width: 70px;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}
.step.active .step-icon {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.step.completed .step-icon {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
.booking-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.service-option, .duration-option {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}
.service-option.selected, .duration-option.selected {
    background: rgba(155,123,255,0.2);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.durations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.booking-summary {
    background: rgba(155,123,255,0.08);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.booking-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.booking-total {
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-weight: 700;
}
.flatpickr-calendar {
    background: var(--bg-darker) !important;
    border: 1px solid var(--border-light) !important;
}
.flatpickr-day {
    color: var(--text-primary) !important;
}
.flatpickr-day.selected {
    background: var(--accent) !important;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem 0;
}
.contact-info ul {
    list-style: none;
    margin: 1.5rem 0;
}
.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
input, textarea, select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.testimonial-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}
.toast.error { border-left-color: var(--error); }
.toast.success { border-left-color: var(--success); }
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: rgba(76,175,80,0.2); color: var(--success); }
.badge-warning { background: rgba(255,193,7,0.2); color: var(--warning); }
.badge-error   { background: rgba(255,107,107,0.2); color: var(--error); }

/* Dashboard */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
}
.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
}
.dashboard-avatar {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}
.dashboard-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}
.dashboard-nav { list-style: none; }
.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}
.dashboard-nav a.active,
.dashboard-nav a:hover {
    background: rgba(155,123,255,0.15);
    color: var(--accent);
}
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}
.stat-val {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 600;
}
.data-table-wrap {
    background: var(--bg-card);
    border-radius: 16px;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    padding: 1rem;
    text-align: left;
    background: rgba(155,123,255,0.1);
    color: var(--accent);
}
.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
}
.order-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Blog & Shop */
.blog-filter, #shopFilter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(155,123,255,0.1);
}
.blog-grid, .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.blog-card, .product-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.blog-card:hover, .product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.blog-card-img, .product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body, .product-body {
    padding: 1.5rem;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* Cart */
.cart-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 500;
}
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    height: 100vh;
    width: 380px;
    background: var(--bg-darker);
    border-left: 1px solid var(--border-light);
    z-index: 2000;
    padding: 1.5rem;
    transition: right 0.3s ease;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}
.cart-overlay.open { display: block; }

/* Admin */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
}
.admin-login-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
}
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--bg-darker);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}
.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(155,123,255,0.15);
    color: var(--accent);
}
.admin-main { padding: 2rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.crud-form {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 900px) {
    .dashboard-layout, .admin-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .step span { display: none; }
    .step-icon { width: 44px; height: 44px; }
    .cart-sidebar { width: 100vw; }
    .admin-main { padding: 1rem; }
}