/**
 * ============================================
 * Main Stylesheet - Dark Theme
 * ============================================
 * Dark theme, animations, responsive design
 * Myanmar Unicode support with Noto Sans Myanmar
 * ============================================
 */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: rgba(18, 18, 26, 0.8);
    --text-primary: #f9f5ec;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-violet: #7c5cff;
    --accent-teal: #00e0c6;
    --accent-gradient: linear-gradient(135deg, #7c5cff, #00e0c6);
    --border-glass: rgba(124, 92, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --error: #ff4d6a;
    --success: #00e0c6;
    --warning: #ffb347;

    --font-body: 'Inter', 'Noto Sans Myanmar', 'Padauk', 'Myanmar3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(124, 92, 255, 0.15);
    --shadow-glow-teal: 0 0 30px rgba(0, 224, 198, 0.15);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-violet);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-teal);
}

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

/* Myanmar text rendering */
.my {
    font-family: var(--font-body);
    line-height: 2;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    z-index: 9999;
    animation: slideInRight 0.4s ease-out, fadeOut 0.4s ease-in 4s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
}

.flash-success {
    background: rgba(0, 224, 198, 0.15);
    color: var(--success);
    border-color: rgba(0, 224, 198, 0.3);
}

.flash-error {
    background: rgba(255, 77, 106, 0.15);
    color: var(--error);
    border-color: rgba(255, 77, 106, 0.3);
}

.flash-warning {
    background: rgba(255, 179, 71, 0.15);
    color: var(--warning);
    border-color: rgba(255, 179, 71, 0.3);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* ============================================
   Navigation Bar (Liquid Glass)
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 92, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
    padding: 24px;
}

.mobile-nav-menu li {
    margin: 16px 0;
}

.mobile-nav-menu a {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    display: block;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-menu a:hover {
    background: rgba(124, 92, 255, 0.1);
    color: var(--accent-violet);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    min-height: 100vh;
    padding-top: 64px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

/* Animated Gradient Orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    filter: blur(100px);
    animation: floatOrb1 20s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 224, 198, 0.2) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    filter: blur(100px);
    animation: floatOrb2 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(1.1); }
    50% { transform: translate(20px, 60px) scale(0.95); }
    75% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.1); }
    66% { transform: translate(30px, -50px) scale(0.9); }
}

/* Canvas Background */
#weatherCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0;
    animation: heroReveal 0.6s ease-out 1.5s forwards;
    z-index: 1;
}

.scroll-indicator svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

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

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
    display: grid;
    gap: 24px;
}

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

/* ============================================
   Profile Section
   ============================================ */
.profile-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
}

.profile-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 4rem;
}

.profile-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ============================================
   YouTube Embed
   ============================================ */
.youtube-embed {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glow);
}

.youtube-embed::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Ad Slot
   ============================================ */
.ad-slot {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.875rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ============================================
   Social Links
   ============================================ */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: rgba(124, 92, 255, 0.2);
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.4);
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(124, 92, 255, 0.1);
    border-color: var(--accent-violet);
    color: var(--accent-violet);
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #ff3355;
    color: #fff;
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

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

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================
   Login Card
   ============================================ */
.login-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.login-card p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.875rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: var(--radius-full);
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-violet);
}

/* ============================================
   News Tabs
   ============================================ */
.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.news-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.news-tab:hover {
    color: var(--text-primary);
}

.news-tab.active {
    color: var(--accent-violet);
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.news-content {
    display: none;
}

.news-content.active {
    display: block;
}

/* News Cards */
.news-card {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.news-card:hover {
    border-color: var(--border-glass);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.news-card-tag {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent-violet);
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-card-summary {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ============================================
   Services Grid
   ============================================ */
.service-card {
    text-align: center;
    padding: 36px 24px;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-violet);
    font-size: 1.5rem;
}

/* ============================================
   Blog Post Detail
   ============================================ */
.blog-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-detail-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-detail-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
}

.blog-detail-content p {
    margin-bottom: 16px;
}

/* ============================================
   Comments Section
   ============================================ */
.comments-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

.comment-form {
    max-width: 600px;
    margin-bottom: 40px;
}

.comment {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

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

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 24px 24px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
}

.footer-privacy {
    padding: 20px;
    background: rgba(255, 179, 71, 0.05);
    border: 1px solid rgba(255, 179, 71, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.footer-privacy p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Music Player
   ============================================ */
.music-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.music-toggle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--accent-violet);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.music-toggle:hover {
    background: rgba(124, 92, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.music-toggle.playing {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.music-icon.play { display: block; }
.music-icon.pause { display: none; }
.music-toggle.playing .music-icon.play { display: none; }
.music-toggle.playing .music-icon.pause { display: block; }

.music-wave {
    display: none;
    position: absolute;
    bottom: 8px;
    gap: 2px;
}

.music-toggle.playing .music-wave {
    display: flex;
}

.music-wave span {
    width: 3px;
    background: var(--accent-teal);
    border-radius: 2px;
    animation: musicWave 1s ease-in-out infinite;
}

.music-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-wave span:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.music-wave span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.music-wave span:nth-child(4) { height: 12px; animation-delay: 0.3s; }

@keyframes musicWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Admin Panel Styles
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 24px;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-sidebar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    display: block;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 4px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(124, 92, 255, 0.1);
    color: var(--accent-violet);
}

.admin-main {
    flex: 1;
    padding: 32px;
    min-height: 100vh;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(124, 92, 255, 0.05);
}

.data-table td {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(0, 224, 198, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 179, 71, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 77, 106, 0.15);
    color: var(--error);
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-actions .btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: rgba(124, 92, 255, 0.1);
    border-color: var(--accent-violet);
    color: var(--accent-violet);
}

.pagination .current {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
    .admin-sidebar .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .admin-sidebar .admin-nav li { margin-bottom: 0; }
    .admin-sidebar .admin-nav a { padding: 8px 12px; font-size: 0.85rem; }
    .admin-main {
        margin-left: 0;
        padding: 20px 16px;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        display: none;
    }
    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 48px 16px;
    }
    .section-title {
        font-size: 1.75rem;
    }

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

    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-image-wrapper {
        margin: 0 auto;
    }

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

    .login-card {
        padding: 36px 20px;
    }

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

    .admin-sidebar {
        padding: 16px;
    }
    .admin-main {
        padding: 20px;
    }

    .data-table {
        font-size: 0.8125rem;
    }
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .news-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.py-48 { padding-top: 48px; padding-bottom: 48px; }
.py-64 { padding-top: 64px; padding-bottom: 64px; }

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

.hidden { display: none !important; }

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-glass);
}

/* ============================================
   Batch 2 — Clock, Lang Toggle, Notice, Mailbox
   ============================================ */

/* Hero Clock */
.hero-clock-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.analog-clock {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(124, 92, 255, 0.5);
    background: rgba(10, 10, 20, 0.6);
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
}
.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}
.clock-hour { width: 3px; height: 24px; background: var(--accent-violet, #7c5cff); margin-left: -1.5px; }
.clock-min  { width: 2px; height: 32px; background: var(--accent-teal, #00e0c6); margin-left: -1px; }
.clock-sec  { width: 1px; height: 36px; background: #ff6b6b; margin-left: -0.5px; }
.clock-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.hero-datetime { text-align: left; }
.hero-date { font-size: 1rem; font-weight: 600; color: var(--text-primary, #fff); }
.hero-time { font-size: 1.6rem; font-weight: 700; color: var(--accent-teal, #00e0c6); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.hero-tz { font-size: 0.7rem; color: var(--text-muted, #888); margin-top: 2px; }

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--text-secondary, #ccc);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-left: 12px;
}
.lang-toggle:hover { background: rgba(124, 92, 255, 0.25); }
.lang-toggle .lang-sep { opacity: 0.4; }
.lang-toggle[data-lang="my"] .lang-my { color: var(--accent-teal, #00e0c6); }
.lang-toggle[data-lang="en"] .lang-en { color: var(--accent-teal, #00e0c6); }

/* Notice Box (collapsible) */
.notice-toggle, .mailbox-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-secondary, #ccc);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 8px;
}
.notice-toggle:hover, .mailbox-toggle:hover { background: rgba(255,255,255,0.08); }
.notice-toggle svg { margin-left: auto; transition: transform 0.3s; }
.notice-body, .mailbox-body {
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted, #999);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Mailbox form */
.mailbox-form { display: flex; flex-direction: column; gap: 10px; }
.mailbox-status { font-size: 0.8rem; min-height: 18px; }
.footer-mailbox { margin-top: 8px; }

@media (max-width: 640px) {
    .hero-clock-wrap { gap: 16px; }
    .analog-clock { width: 70px; height: 70px; }
    .hero-time { font-size: 1.3rem; }
    .lang-toggle { padding: 5px 10px; font-size: 0.7rem; }
}

/* ============================================
   Batch 3 — Table drag-scroll, Birthday
   ============================================ */

/* Drag-scrollable table */
.table-scroll {
    overflow-x: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-violet, #7c5cff) transparent;
}
.table-scroll:active { cursor: grabbing; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--accent-violet, #7c5cff); border-radius: 4px; }
.table-scroll .data-table { min-width: 900px; }

/* Birthday Animation */
.birthday-banner {
    position: relative;
    margin: 24px auto 0;
    max-width: 600px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(0,224,198,0.12));
    border: 1px solid rgba(124,92,255,0.4);
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    animation: bday-glow 3s ease-in-out infinite;
}
@keyframes bday-glow {
    0%,100% { box-shadow: 0 0 20px rgba(124,92,255,0.3); }
    50% { box-shadow: 0 0 40px rgba(0,224,198,0.5); }
}
.birthday-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #7c5cff, #00e0c6, #ff6b9d, #7c5cff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bday-shine 4s linear infinite;
}
@keyframes bday-shine { to { background-position: 300% center; } }
.birthday-love {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b9d;
    margin-top: 8px;
    animation: bday-heartbeat 1.5s ease-in-out infinite;
}
@keyframes bday-heartbeat {
    0%,100% { transform: scale(1); }
    15% { transform: scale(1.12); }
    30% { transform: scale(1); }
}
.bday-confetti {
    position: absolute;
    top: -10px;
    width: 8px; height: 8px;
    opacity: 0.85;
    animation: confetti-fall linear infinite;
}
@keyframes confetti-fall {
    to { transform: translateY(180px) rotate(360deg); opacity: 0; }
}

/* ============================================
   Batch 6 — Admin compact + photo gallery
   ============================================ */

/* Admin main — ensure full width usage */
.admin-main { width: 100%; box-sizing: border-box; }
.admin-main .card { width: 100%; box-sizing: border-box; }
.admin-main .form-input,
.admin-main .form-textarea,
.admin-main .form-select { width: 100%; box-sizing: border-box; font-size: 0.9rem; }
.admin-main .form-label { font-size: 0.85rem; }
.admin-main h1, .admin-main .admin-title { font-size: 1.4rem; }
.admin-main h2 { font-size: 1.1rem; }

/* All admin tables — horizontal scroll + grab */
.admin-main table { min-width: 700px; }
.data-table { font-size: 0.85rem; }
.data-table th, .data-table td { padding: 10px 12px; white-space: nowrap; }

/* Photo Gallery (frontend) */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(124,92,255,0.3);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 92%; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
}

/* Music rotation player extra */
.music-track-name {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: rgba(10,10,20,0.9);
    color: var(--accent-teal);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.music-player:hover .music-track-name { opacity: 1; }

/* TikTok grid */
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.tiktok-item {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================
   Mobile Responsive — All Batch Features
   ============================================ */
@media (max-width: 768px) {
    /* Hero clock — stack vertical */
    .hero-clock-wrap {
        flex-direction: column;
        gap: 12px;
    }
    .hero-datetime { text-align: center; }
    .analog-clock { width: 80px; height: 80px; }
    .hero-time { font-size: 1.4rem; }

    /* Photo gallery — 2 col */
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* TikTok — 1 col centered */
    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tiktok-item { max-width: 100%; }

    /* Birthday banner */
    .birthday-banner { padding: 18px 20px; margin: 16px; }
    .birthday-title { font-size: 1.3rem; }
    .birthday-love { font-size: 1rem; }

    /* Language toggle smaller */
    .lang-toggle { padding: 5px 10px; font-size: 0.7rem; margin-left: 8px; }

    /* Notice + mailbox full width */
    .footer-privacy, .footer-mailbox { width: 100%; }

    /* Music player position */
    .music-player { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    /* Hero */
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.9rem; }

    /* Photo gallery — 1 col on tiny screens */
    .photo-gallery { grid-template-columns: 1fr; }

    /* Section padding tighter */
    .section { padding: 36px 12px; }

    /* Cards */
    .card { padding: 20px 16px; }

    /* Admin tables — keep horizontal scroll */
    .table-scroll { margin: 0 -4px; }
    .data-table { font-size: 0.78rem; }
    .data-table th, .data-table td { padding: 8px 10px; }

    /* Admin nav wrap nicely */
    .admin-sidebar .admin-nav a { font-size: 0.8rem; padding: 7px 10px; }
    .admin-sidebar-logo { font-size: 1.1rem; margin-bottom: 16px; }

    /* Birthday confetti smaller */
    .birthday-title { font-size: 1.1rem; }

    /* Lightbox close button */
    .lightbox-close { top: 12px; right: 16px; font-size: 2rem; }

    /* Forms full width touch-friendly */
    .form-input, .form-textarea, .form-select {
        font-size: 16px; /* prevents iOS zoom */
    }
    .btn { padding: 12px 18px; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .btn, .admin-nav a, .gallery-item {
        min-height: 44px;
    }
    .table-scroll { cursor: default; } /* drag-scroll handled by touch natively */
}
