/* ============================================
   YBM3 – Design System
   Modern, Colorful, Mobile-First
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #6C63FF;
    --primary-light: #8B85FF;
    --primary-dark: #524AE0;
    --secondary: #FF6584;
    --secondary-light: #FF8FA3;
    --accent: #00C9A7;
    --accent-light: #33D4B8;

    --bg: #F7F7FE;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-dark: #1A1A2E;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text: #2D2D3F;
    --text-light: #6B6B80;
    --text-muted: #9E9EB8;
    --text-white: #FFFFFF;

    --border: #E8E8F0;
    --border-light: #F0F0F8;

    --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.08);
    --shadow-md: 0 4px 20px rgba(108, 99, 255, 0.12);
    --shadow-lg: 0 8px 40px rgba(108, 99, 255, 0.16);
    --shadow-hover: 0 12px 48px rgba(108, 99, 255, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul,
ol {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.125rem;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header-left {
    margin-bottom: 32px;
}

.section-header-left h2 {
    margin-bottom: 8px;
}

.section-header-left p {
    color: var(--text-light);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
    color: var(--text-white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(255, 101, 132, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 24px rgba(255, 101, 132, 0.4);
    color: var(--text-white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(0, 201, 167, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.08);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Icons --- */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.logo-accent {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    font-weight: 600;
}

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

.header-login .btn-label {
    margin-left: 4px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    position: absolute;
    left: 0;
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-toggle span:nth-child(3) {
    bottom: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background: #1A1A2E;
    overflow: hidden;
    min-height: 420px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 10, 50, 0.7), rgba(108, 99, 255, 0.5));
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    color: var(--text-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-white);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--text-white);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-white);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    transform: rotate(-3deg);
}

.hero-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
}

.hero-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.hero-card p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-card:nth-child(2) {
    transform: translateY(20px);
}

.hero-card:nth-child(3) {
    transform: translateY(-10px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Author Card */
.author-card {
    text-align: center;
    padding: 32px 24px;
}

.author-card .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--border-light);
    transition: var(--transition);
}

.author-card:hover .author-avatar {
    border-color: var(--primary);
}

.author-card .author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-card .author-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

/* Session Card */
.session-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-card .session-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.85rem;
}

.session-card .session-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.session-card .session-info-item strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   BADGES / TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(255, 101, 132, 0.1);
    color: var(--secondary);
}

.badge-accent {
    background: rgba(0, 201, 167, 0.1);
    color: var(--accent);
}

.badge-sm {
    padding: 3px 8px;
    font-size: 0.7rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-white);
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: -48px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    max-width: 560px;
    margin: 0 auto;
}

.form-card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    padding: 60px 0;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-radius: var(--radius-md);
    background: var(--bg);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-tab.active {
    background: var(--primary);
    color: var(--text-white);
}

.auth-tab:hover:not(.active) {
    color: var(--primary);
}

.register-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.register-choice-card {
    text-align: center;
    padding: 32px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.register-choice-card:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
    color: var(--text);
}

.register-choice-card .choice-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.register-choice-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.register-choice-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text);
    font-family: var(--font);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    padding: 40px 0;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-detail p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-welcome h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.dashboard-welcome p {
    color: var(--text-light);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-stat {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.dashboard-stat h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.dashboard-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.dashboard-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.dashboard-nav a {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    transition: var(--transition);
}

.dashboard-nav a.active {
    background: var(--primary);
    color: var(--text-white);
}

.dashboard-nav a:hover:not(.active) {
    color: var(--primary);
}

/* ============================================
   TABLE
   ============================================ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.table th,
.table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.9rem;
}

.table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.table td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(108, 99, 255, 0.02);
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-confirmed {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 14px 48px 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    max-width: 500px;
    width: 90%;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.flash-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.flash-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   AUTHOR PROFILE PAGE
   ============================================ */
.profile-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0 80px;
    color: var(--text-white);
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.profile-info h1 {
    color: var(--text-white);
    margin-bottom: 8px;
}

.profile-info .profile-about {
    opacity: 0.9;
    font-size: 1rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: none;
}

.profile-content {
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    color: var(--text-light);
    border: 1px solid var(--border);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--text-white);
    border: none;
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    background: var(--bg-dark);
    padding: 32px 0;
    color: var(--text-white);
}

.admin-sidebar h3 {
    padding: 0 24px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

.admin-nav a.active {
    background: rgba(108, 99, 255, 0.3);
    color: var(--text-white);
    border-right: 3px solid var(--primary);
}

.admin-main {
    padding: 32px;
    background: var(--bg);
}

.admin-header {
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: #E8E8F0;
    color: var(--text-light);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo img {
    height: 60px;
    width: auto;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

.footer-links h4 {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ============================================
   FILE INPUT CUSTOM
   ============================================ */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.file-input-wrapper:hover .file-input-label {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
}

/* ============================================
   GOOGLE BOOKS SEARCH
   ============================================ */
.book-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.book-search-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.book-search-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.book-search-card.selected {
    border-color: var(--accent);
    background: rgba(0, 201, 167, 0.04);
}

.book-search-card-cover {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}

.book-search-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-search-card-nocover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.book-search-card-info {
    flex: 1;
    min-width: 0;
}

.book-search-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.book-search-card-author {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.book-search-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-search-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    display: inline-block;
}

.book-search-card-action {
    flex-shrink: 0;
}

/* ============================================
   PAYPAL BUTTON
   ============================================ */
.paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   PAYMENT STATUS BADGES
   ============================================ */
.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-failed {
    background: #FEE2E2;
    color: #991B1B;
}

.status-refunded {
    background: #E0E7FF;
    color: #3730A3;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 48px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .register-choice {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 16px;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .btn-label {
        display: none;
    }

    .profile-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .profile-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 24px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ============================================
   STAT ICONS
   ============================================ */
.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1;
}

/* ============================================
   NOTIFICATION SYSTEM
   ============================================ */
.notif-wrapper {
    position: relative;
}

.notif-bell {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text);
}

.notif-bell:hover {
    background: var(--bg);
}

.notif-bell .icon {
    width: 22px;
    height: 22px;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #fff;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 440px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: notifSlide 0.2s ease;
}

.notif-dropdown.open {
    display: flex;
}

@keyframes notifSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.notif-dropdown-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.notif-mark-all {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.notif-mark-all:hover {
    background: var(--primary-alpha-10, rgba(99, 102, 241, 0.1));
}

.notif-list {
    overflow-y: auto;
    max-height: 360px;
    flex: 1;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.notif-item:hover {
    background: var(--bg);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.04);
    border-left: 3px solid var(--primary);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notif-loading,
.notif-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   BOOKING 2-COLUMN LAYOUT
   ============================================ */
.booking-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.booking-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.booking-info-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}

.booking-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.booking-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* ============================================
   BOOK DISCOVER CARD
   ============================================ */
.book-discover-card {
    transition: var(--transition);
}

.book-discover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.book-discover-card .card-image {
    object-fit: cover;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ============================================
   RESPONSIVE: New Components
   ============================================ */
@media (max-width: 768px) {
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .booking-action .card {
        position: static !important;
    }

    .notif-dropdown {
        width: 300px;
        right: -40px;
    }
}

@media (max-width: 480px) {
    .booking-info-grid {
        grid-template-columns: 1fr;
    }

    .notif-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }
}