/* ============================================
   STKMS — Premium Stylesheet
   Crafted with elegance, precision & charisma
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Light Theme — Royal Ivory & Gold */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f3ee;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-tertiary: #7a7a8e;
    --text-muted: #9a9aae;
    --border: rgba(26, 26, 46, 0.08);
    --border-strong: rgba(26, 26, 46, 0.15);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.12);
    --shadow-xl: 0 30px 90px rgba(26, 26, 46, 0.18);

    /* Brand Colors */
    --gold: #c9a961;
    --gold-light: #e3c789;
    --gold-dark: #9a7d3e;
    --navy: #1a2942;
    --navy-light: #2d4063;
    --rose: #c97b7b;
    --emerald: #4a7c6e;
    --amber: #d4a574;
    --purple: #6c5ce7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #c9a961 0%, #e3c789 50%, #9a7d3e 100%);
    --gradient-secondary: linear-gradient(135deg, #1a2942 0%, #2d4063 100%);
    --gradient-accent: linear-gradient(135deg, #c9a961 0%, #1a2942 100%);
    --gradient-hero: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(26, 41, 66, 0.05) 100%);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* Fonts */
    --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    /* Dark Theme — Midnight Sapphire & Champagne */
    --bg-primary: #0a0e1a;
    --bg-secondary: #131825;
    --bg-tertiary: #1c2235;
    --bg-glass: rgba(19, 24, 37, 0.75);
    --bg-card: #161b2b;
    --text-primary: #f5f1e8;
    --text-secondary: #c5c1b8;
    --text-tertiary: #9a968e;
    --text-muted: #6a6660;
    --border: rgba(245, 241, 232, 0.08);
    --border-strong: rgba(245, 241, 232, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.6);

    --gradient-hero: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(108, 92, 231, 0.08) 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--gold);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ===== Animated Background ===== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.25;
    box-shadow: 0 0 6px var(--gold);
    animation: float-particle 15s infinite linear;
    bottom: -20px;
}

@keyframes float-particle {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    8% { opacity: 0.4; }
    50% { transform: translateY(-50vh) translateX(40px) scale(1.15); opacity: 0.5; }
    92% { opacity: 0.3; }
    100% { transform: translateY(-105vh) translateX(80px) scale(0.8); opacity: 0; }
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
    bottom: -200px;
    left: 30%;
    animation-delay: -10s;
}

[data-theme="dark"] .gradient-orb {
    opacity: 0.25;
}

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

/* ===== Loader ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.logo-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letter-bounce 1.5s ease-in-out infinite;
}

.logo-letter:nth-child(1) { animation-delay: 0s; }
.logo-letter:nth-child(2) { animation-delay: 0.1s; }
.logo-letter:nth-child(3) { animation-delay: 0.2s; }
.logo-letter:nth-child(4) { animation-delay: 0.3s; }
.logo-letter:nth-child(5) { animation-delay: 0.4s; }

@keyframes letter-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.loader-line {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loader-slide 1.5s ease-in-out infinite;
}

@keyframes loader-slide {
    0% { left: -50%; }
    100% { left: 100%; }
}

.loader-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
    position: absolute;
    transition: all var(--transition-bounce);
}

/* Mode terang: navy/biru dibuat lebih cerah biar nggak gelap & nyatu dengan tema terang */
[data-theme="light"] {
    --navy: #355b9e;
    --navy-light: #4f78c4;
}
[data-theme="light"] .icon-moon { transform: translateY(0) rotate(0deg); opacity: 1; }
[data-theme="light"] .icon-sun { transform: translateY(40px) rotate(180deg); opacity: 0; }
[data-theme="dark"] .icon-moon { transform: translateY(-40px) rotate(-180deg); opacity: 0; }
[data-theme="dark"] .icon-sun { transform: translateY(0) rotate(0deg); opacity: 1; }

.btn-primary, .btn-secondary {
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.55);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: badge-glow 3s ease-in-out infinite;
}

[data-theme="dark"] .hero-badge {
    color: var(--gold-light);
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201, 169, 97, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: title-rise 1s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes title-rise {
    to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 540px;
    opacity: 0;
    animation: title-rise 1s ease 0.8s forwards;
}

.hero-subtitle em {
    font-family: var(--font-serif);
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 500;
}

[data-theme="dark"] .hero-subtitle em {
    color: var(--gold-light);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    opacity: 0;
    animation: title-rise 1s ease 1s forwards;
}

.btn-hero-primary, .btn-hero-secondary {
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.55);
}

.btn-hero-primary i {
    transition: transform var(--transition-fast);
}

.btn-hero-primary:hover i {
    transform: translateX(5px);
}

.btn-hero-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-hero-secondary:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    opacity: 0;
    animation: title-rise 1s ease 1.2s forwards;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-strong);
}

.hero-visual {
    flex: 1;
    max-width: 560px;
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(40px);
    animation: pulse-circle 4s ease-in-out infinite;
}

@keyframes pulse-circle {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.hero-emblem {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: 0 30px 80px rgba(201, 169, 97, 0.4);
    animation: emblem-rotate 20s linear infinite;
}

@keyframes emblem-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-emblem i {
    animation: counter-rotate 20s linear infinite;
}

@keyframes counter-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.floating-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    animation: card-float 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--gold);
    font-size: 1.3rem;
}

.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: 0;
    animation-delay: -1.5s;
}

.card-3 {
    top: 50%;
    right: -10%;
    animation-delay: -3s;
}

@keyframes card-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: var(--radius-full);
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: wheel-scroll 1.5s ease-in-out infinite;
}

@keyframes wheel-scroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

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

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

[data-theme="dark"] .section-tag {
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Berita Grid ===== */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.berita-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.berita-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.berita-card:hover::before {
    transform: scaleX(1);
}

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

.berita-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.berita-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
}

.berita-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.berita-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.berita-actions button {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.berita-actions button:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.berita-actions .btn-delete:hover {
    color: var(--rose);
    border-color: var(--rose);
}

/* ===== Links Section ===== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.links-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--gradient-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.category-icon-ai {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-header p {
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.link-card > * { position: relative; z-index: 1; }

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.link-card:hover .link-icon {
    transform: rotate(10deg) scale(1.1);
}

.link-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
    transition: transform var(--transition-bounce);
}

.link-baak .link-icon { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.link-vclass .link-icon { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.link-studentsite .link-icon { background: linear-gradient(135deg, #27ae60 0%, #16a085 100%); }
.link-praktikum .link-icon { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.link-claude .link-icon { background: linear-gradient(135deg, #d97757 0%, #b85d3e 100%); }
.link-gemini .link-icon { background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc04 100%); }
.link-chatgpt .link-icon { background: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%); }

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.link-content p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.link-arrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

[data-theme="dark"] .link-arrow {
    color: var(--gold-light);
}

.link-card:hover .link-arrow {
    gap: 10px;
}

/* ===== About Section ===== */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-description em {
    font-family: var(--font-serif);
    color: var(--gold-dark);
    font-style: italic;
}

[data-theme="dark"] .about-description em {
    color: var(--gold-light);
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.value-item:hover {
    transform: translateX(8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.value-item i {
    color: var(--gold);
    font-size: 1.6rem;
    margin-top: 4px;
}

.value-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.value-item p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.emblem-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0.3;
}

.ring-1 { width: 100%; height: 100%; animation: ring-rotate 20s linear infinite; }
.ring-2 { width: 80%; height: 80%; border-style: dashed; animation: ring-rotate 15s linear infinite reverse; }
.ring-3 { width: 60%; height: 60%; animation: ring-rotate 10s linear infinite; }

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.emblem-center {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.4);
    z-index: 1;
}

.emblem-center i {
    font-size: 3rem;
    margin-bottom: 8px;
}

.emblem-center span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 3px;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 80px 40px;
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-tertiary);
    margin-top: 20px;
    line-height: 1.7;
    max-width: 360px;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--gold);
}

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

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    border: 1px solid var(--border);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    color: white;
    border-color: transparent;
}

.social-ig:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-fb:hover { background: #1877f2; }
.social-wa:hover { background: #25d366; }
.social-tw:hover { background: #000; }
.social-in:hover { background: #0a66c2; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
}

.footer-bottom i {
    color: var(--rose);
    margin: 0 4px;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: modal-rise 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content::-webkit-scrollbar { width: 6px; }

.modal-large { max-width: 640px; }
.modal-small { max-width: 380px; }

.modal-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
}

@keyframes modal-rise {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--rose);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.35);
}

.modal-icon-warning { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input,
.input-wrapper select,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.modal-form textarea {
    padding-left: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--gold);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--gold);
}

.form-error, .form-success {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: none;
}

.form-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.form-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.form-error.show, .form-success.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-info {
    padding: 12px 14px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gold-dark);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

[data-theme="dark"] .form-info {
    color: var(--gold-light);
}

.btn-submit {
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-normal);
    font-family: inherit;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 169, 97, 0.5);
}

.form-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.form-footer a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
}

[data-theme="dark"] .form-footer a {
    color: var(--gold-light);
}

.form-footer a:hover {
    text-decoration: underline;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel, .btn-danger {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(231, 76, 60, 0.45);
}

/* ===== Dashboard ===== */
.dashboard {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.dashboard.active {
    display: flex;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

/* When dashboard is active, hide EVERYTHING from homepage including descendants */
body.in-dashboard > .navbar,
body.in-dashboard > .hero,
body.in-dashboard > section.section,
body.in-dashboard > .footer,
body.in-dashboard > .particles-bg,
body.in-dashboard > .gradient-orb,
body.in-dashboard .hero-emblem,
body.in-dashboard .hero-circle,
body.in-dashboard .floating-card,
body.in-dashboard .orb-1,
body.in-dashboard .orb-2,
body.in-dashboard .orb-3 {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text-primary);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    margin: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.user-role {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--gold-dark);
}

[data-theme="dark"] .user-role {
    color: var(--gold-light);
}

.sidebar-nav {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gold);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-toggle-sidebar {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    justify-content: flex-start;
    gap: 14px;
}

.theme-toggle-sidebar .icon-moon,
.theme-toggle-sidebar .icon-sun {
    position: static;
}

.theme-toggle-sidebar span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Tombol Mode Tampilan di sidebar: jangan muter/glow berlebihan (full-width). */
.theme-toggle-sidebar:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-tertiary);
    border-color: var(--gold);
}

/* ===== Tombol download seragam (PDF/PNG) — compact & konsisten ===== */
.dl-group { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dl-btn {
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold, #c9a961), #a8842f);
    color: #1a1206;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dl-btn i { font-size: 0.85rem; }
.dl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3); }
.dl-btn.ghost {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.dl-btn.ghost:hover { border-color: var(--gold, #c9a961); box-shadow: none; }

.logout-btn {
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--rose);
    color: var(--rose);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.logout-btn:hover {
    background: var(--rose);
    color: white;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    padding: 32px 40px;
}

/* Constrain content width on large screens so it doesn't stretch ugly at 100% */
.dashboard-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.dashboard-header {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    flex-wrap: wrap;
}

.menu-toggle-mobile {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.dashboard-title h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-title p {
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
}

.current-time {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.view {
    display: none;
    animation: view-fade 0.4s ease;
}

.view-active {
    display: block;
}

@keyframes view-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(40%, -40%);
}

.stat-purple::before { background: var(--purple); }
.stat-amber::before { background: var(--amber); }
.stat-emerald::before { background: var(--emerald); }
.stat-rose::before { background: var(--rose); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-purple .stat-card-icon { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.stat-amber .stat-card-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-emerald .stat-card-icon { background: linear-gradient(135deg, #16a085, #1abc9c); }
.stat-rose .stat-card-icon { background: linear-gradient(135deg, #e91e63, #ad1457); }

.stat-card-content { flex: 1; min-width: 0; }

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card-trend {
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .stat-card-trend {
    color: var(--gold-light);
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.overview-card-large {
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .overview-card-large { grid-column: span 1; }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--gold);
}

.btn-link {
    background: none;
    border: none;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: gap var(--transition-fast);
}

[data-theme="dark"] .btn-link {
    color: var(--gold-light);
}

.btn-link:hover { gap: 10px; }

.overview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.overview-item {
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.overview-item:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.overview-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-item-content {
    flex: 1;
    min-width: 0;
}

.overview-item-title {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-item-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-strong);
    margin-bottom: 16px;
}

.empty-state p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
}

/* Don't let the big empty-state icon rule blow up icons inside buttons/links */
.empty-state .btn-add i,
.empty-state button i,
.empty-state a i {
    font-size: 1rem;
    color: inherit;
    margin-bottom: 0;
}

.quote-box {
    padding: 24px;
    background: var(--gradient-hero);
    border-radius: var(--radius-md);
    border: 1px solid var(--gold);
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 10px;
    font-size: 8rem;
    font-family: var(--font-display);
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
}

.quote-author {
    display: block;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 600;
    font-style: normal;
}

[data-theme="dark"] .quote-author {
    color: var(--gold-light);
}

/* ===== View Actions ===== */
.view-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.btn-add {
    padding: 12px 22px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.18);
    white-space: nowrap;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.28);
}

/* Varian sekunder (ghost) untuk aksi pendamping spt Reset — selaras, tanpa glow */
.btn-add.ghost {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-add.ghost:hover {
    border-color: var(--gold);
    box-shadow: none;
    transform: translateY(-1px);
}

/* ===== Jadwal Grid ===== */
.jadwal-grid {
    /* Stacked layout: infobar → day tabs → day cards stack.
       (Was a multi-column grid that wrongly split these 3 blocks side-by-side.) */
    display: block;
}

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

.jadwal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
}

.jadwal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.jadwal-day {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.jadwal-matkul {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

.jadwal-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.jadwal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jadwal-meta-item i {
    color: var(--gold);
    width: 16px;
}

.jadwal-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--bg-tertiary);
}

.btn-icon.btn-icon-danger:hover {
    color: var(--rose);
    border-color: var(--rose);
}

/* ===== Deadline Grid ===== */
.deadline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Summary strip above the deadline cards */
.deadline-summary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.dl-sum-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
}
.dl-sum-item.warn { border-left-color: #f0a020; }
.dl-sum-item.danger { border-left-color: var(--rose); }
.dl-sum-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.dl-sum-item.warn .dl-sum-num { color: #f0a020; }
.dl-sum-item.danger .dl-sum-num { color: var(--rose); }
.dl-sum-lbl {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* "Pertemuan N" badge on a deadline card */
.dl-pert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: rgba(201, 169, 97, 0.12);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
}
[data-theme="dark"] .dl-pert-badge { color: var(--gold-light); }

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

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

.deadline-priority {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.priority-rendah { background: rgba(74, 124, 110, 0.15); color: #4a7c6e; }
.priority-sedang { background: rgba(212, 165, 116, 0.2); color: #b8862d; }
.priority-tinggi { background: rgba(231, 76, 60, 0.15); color: #c0392b; }
.priority-kritis { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; animation: pulse-critical 2s ease-in-out infinite; }
.priority-terlewat { background: rgba(120, 120, 120, 0.18); color: #6b7280; }

/* Deadline: catatan prioritas otomatis di modal */
.deadline-prio-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-md, 10px);
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.28);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.deadline-prio-note i { color: var(--gold); margin-top: 2px; }
.deadline-prio-note b { color: var(--text-primary); }

/* ===== SISTEM SEMESTER (kartu di Ringkasan) ===== */
.semester-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.semester-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), #a8842f);
}
.semester-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.semester-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}
.semester-label {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 4px 0 0;
    color: var(--text-primary);
}
.semester-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.semester-explain {
    font-size: 0.83rem;
    color: var(--text-tertiary);
    line-height: 1.55;
    margin: 8px 0 0;
    max-width: 680px;
}
.semester-explain b { color: var(--text-secondary); }
.semester-mine {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: var(--radius-md, 10px);
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.25);
}
.semester-mine > i { color: var(--gold); }
.semester-mine-label { font-size: 0.88rem; color: var(--text-secondary); font-weight: 600; }
.semester-mine-select {
    padding: 7px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}
.semester-mine-hint { font-size: 0.8rem; color: var(--text-tertiary); flex: 1 1 240px; min-width: 0; }
.semester-mine-hint b { color: var(--gold-dark, #a8842f); }
[data-theme="dark"] .semester-mine-hint b { color: var(--gold-light); }

/* KRS: tanda folder semester yang sedang berjalan */
.folder-card.folder-krs-now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.krs-now-tag {
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    background: var(--gold); color: #1a1206; padding: 1px 7px; border-radius: var(--radius-full);
    vertical-align: middle; margin-left: 4px;
}
.semester-arsip {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.semester-arsip-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.semester-arsip-title small { font-weight: 500; color: var(--text-tertiary); }
.sem-arsip-empty {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding: 6px 2px;
}
.sem-arsip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-secondary);
    margin-bottom: 8px;
}
.sem-arsip-item:last-child { margin-bottom: 0; }
.sem-arsip-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sem-arsip-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sem-arsip-label i { color: var(--gold); }
.sem-arsip-meta { font-size: 0.76rem; color: var(--text-tertiary); }
.sem-arsip-act { display: flex; gap: 6px; flex-shrink: 0; }

/* View modal arsip */
.sem-v-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 1rem; color: var(--text-primary); margin-bottom: 14px;
}
.sem-v-head i { color: var(--gold); }
.sem-v-badge {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
    padding: 3px 10px; border-radius: var(--radius-full);
    background: rgba(212, 165, 116, 0.15); color: #b8862d;
}
.sem-v-h {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-secondary); margin: 18px 0 8px;
}
.sem-v-list { list-style: none; padding: 0; margin: 0; }
.sem-v-list li {
    padding: 7px 0; border-bottom: 1px solid var(--border);
    font-size: 0.88rem; color: var(--text-primary);
}
.sem-v-list li:last-child { border-bottom: none; }
.sem-v-meta { color: var(--text-tertiary); font-size: 0.8rem; }

@keyframes pulse-critical {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
}

.deadline-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-right: 80px;
    line-height: 1.3;
}

.deadline-matkul {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

[data-theme="dark"] .deadline-matkul {
    color: var(--gold-light);
}

.deadline-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
}

.deadline-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.deadline-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.deadline-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.deadline-card.expired {
    opacity: 0.6;
}

.deadline-card.expired .countdown-value {
    color: var(--rose);
}

/* ===== Mata Kuliah ===== */
.matkul-semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.semester-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.semester-tab {
    padding: 10px 22px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.semester-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.matkul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.matkul-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.matkul-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, 30%);
    transition: all var(--transition-normal);
}

.matkul-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.matkul-card:hover::after {
    transform: translate(20%, 20%) scale(1.4);
    opacity: 0.15;
}

.matkul-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.matkul-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.matkul-dosen {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.matkul-info {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.matkul-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.matkul-info i {
    color: var(--gold);
}

.matkul-progress {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.matkul-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.matkul-progress-text {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.matkul-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

/* Pertemuan View */
.pertemuan-view {
    animation: view-fade 0.4s ease;
}

.pertemuan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn-back {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: var(--bg-tertiary);
    border-color: var(--gold);
}

.pertemuan-title-block {
    flex: 1;
}

.pertemuan-title-block h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.pertemuan-title-block p {
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
    margin-top: 4px;
}

.pertemuan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.pertemuan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.pertemuan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.pertemuan-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 14px;
    transition: all var(--transition-fast);
}

.pertemuan-card.completed .pertemuan-num {
    background: var(--gradient-primary);
    color: white;
}

.pertemuan-card.ongoing .pertemuan-num {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    animation: pulse-circle 2s ease-in-out infinite;
}

.pertemuan-topic {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-primary);
    min-height: 22px;
}

.pertemuan-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.pertemuan-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.pertemuan-card.completed .pertemuan-status {
    color: var(--emerald);
}

.pertemuan-card.ongoing .pertemuan-status {
    color: var(--amber);
}

.pertemuan-card:not(.completed):not(.ongoing) .pertemuan-status {
    color: var(--text-tertiary);
}

/* ===== Files Grid ===== */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.file-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.file-icon-pdf { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.file-icon-doc { background: linear-gradient(135deg, #3498db, #2980b9); }
.file-icon-img { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.file-icon-xls { background: linear-gradient(135deg, #27ae60, #16a085); }
.file-icon-vid { background: linear-gradient(135deg, #f39c12, #e67e22); }

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    word-break: break-word;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-meta {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-category {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--gold-dark);
}

[data-theme="dark"] .file-category {
    color: var(--gold-light);
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.file-drop {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.file-drop:hover, .file-drop.drag-over {
    border-color: var(--gold);
    background: var(--bg-tertiary);
}

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

.file-drop i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.file-drop p {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-drop span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

#fileSelected {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gold-dark);
}

[data-theme="dark"] #fileSelected {
    color: var(--gold-light);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: toast-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.toast.toast-success { border-left-color: var(--emerald); }
.toast.toast-error { border-left-color: var(--rose); }
.toast.toast-info { border-left-color: var(--purple); }

.toast.removing {
    animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-slide-out {
    to { transform: translateX(120%); opacity: 0; }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: var(--emerald); }
.toast-error .toast-icon { background: var(--rose); }
.toast-info .toast-icon { background: var(--purple); }
.toast-default .toast-icon { background: var(--gold); }

.toast-content { flex: 1; min-width: 0; }

.toast-title {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Animations & Utilities ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: title-rise 0.8s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 40px 60px;
    }
    .hero-content { max-width: 100%; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }

    .section { padding: 80px 40px; }
    .footer { padding: 60px 40px 30px; }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-text .section-title { text-align: center; }

    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: 20px;
        background: var(--bg-card);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-lg);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        box-shadow: var(--shadow-xl);
        transform: translateX(120%);
        transition: transform var(--transition-normal);
        min-width: 260px;
    }
    .nav-links.open { transform: translateX(0); }

    .mobile-menu-btn { display: flex; }

    .hero { padding: 100px 20px 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }

    .section { padding: 60px 20px; }
    .section-title { font-size: 2rem; }

    .links-category { padding: 24px; }
    .category-header { flex-direction: column; align-items: flex-start; }

    .footer { padding: 50px 20px 30px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand { grid-column: span 1; }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .menu-toggle-mobile { display: inline-flex; }

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

    .modal-content { padding: 36px 24px; }

    .dashboard-header { flex-direction: column; align-items: flex-start; }

    .emblem-wrapper { width: 280px; height: 280px; }
    .emblem-center { width: 140px; height: 140px; }
    .emblem-center i { font-size: 2rem; }
    .emblem-center span { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 20px; }
    .logo-text .logo-sub { display: none; }
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
    .toast-container { right: 20px; left: 20px; }
    .toast { min-width: 0; }
}

/* ============================================
   LOGIN PAGE (auth)
   ============================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 100;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.auth-theme-toggle:hover {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

.auth-theme-toggle .icon-moon,
.auth-theme-toggle .icon-sun {
    position: absolute;
    transition: all var(--transition-bounce);
}

.auth-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 1;
    position: relative;
    margin: auto 0;
    animation: auth-rise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
    padding: 48px 44px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -30%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
}

.auth-logo .logo-main {
    font-size: 1.7rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.auth-logo .logo-sub {
    color: rgba(255, 255, 255, 0.7);
}

.auth-headline {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subheadline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
    border-color: var(--gold);
}

.auth-feature i {
    color: var(--gold-light);
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.auth-card {
    padding: 48px 44px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs {
    position: relative;
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    padding: 5px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
    position: relative;
    transition: color var(--transition-fast);
}

.auth-tab.active {
    color: white;
}

.auth-tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: form-fade 0.4s ease;
}

.auth-form.active {
    display: flex;
}

@keyframes form-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form-header {
    text-align: center;
    margin-bottom: 8px;
}

.auth-form-header h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-form-header p {
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    z-index: 1;
    position: relative;
}

.auth-footer p {
    font-family: var(--font-serif);
    font-style: italic;
}

/* === Google Login button + divider === */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: var(--text-tertiary);
    font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}
.btn-google {
    width: 100%;
    padding: 13px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: all var(--transition-fast);
}
.btn-google:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-google:disabled { opacity: 0.7; cursor: wait; }
.btn-google svg { flex-shrink: 0; }

/* === Drive sync status indicator (dashboard header) === */
.drive-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    white-space: nowrap;
}
.drive-status.ds-synced { color: var(--emerald); border-color: rgba(74,124,110,0.3); }
.drive-status.ds-saving { color: var(--purple); border-color: rgba(108,92,231,0.3); }
.drive-status.ds-connecting { color: var(--gold-dark); border-color: rgba(201,169,97,0.3); }
.drive-status.ds-offline { color: var(--text-tertiary); }
[data-theme="dark"] .drive-status.ds-connecting { color: var(--gold-light); }
.drive-status.ds-saving i { animation: fa-spin 1s linear infinite; }

/* === Drive connect box (in upload modal) === */
.drive-connect-box { margin-bottom: 18px; }
.drive-disconnected, .drive-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--bg-tertiary);
}
.drive-connected {
    border-color: rgba(74,124,110,0.4);
    background: linear-gradient(135deg, rgba(74,124,110,0.08), transparent);
}
/* State WAJIB: upload terkunci sampai Drive terhubung */
.drive-required {
    border-color: rgba(212, 165, 116, 0.5);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), transparent);
}
.drive-required .dc-title { color: var(--text-primary); }
.drive-required .dc-sub b { color: var(--text-primary); }
.file-drop.drop-locked { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); }
.btn-disabled { opacity: 0.55; cursor: not-allowed !important; filter: grayscale(0.3); }
.btn-disabled:hover { transform: none !important; box-shadow: none !important; }
.dc-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drive-disconnected > .dc-left > i { font-size: 1.6rem; color: #4285f4; flex-shrink: 0; }
.drive-connected > i { font-size: 1.4rem; color: var(--emerald); flex-shrink: 0; }
.dc-info { min-width: 0; }
.dc-title { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.dc-sub { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 2px; }
.dc-connect {
    padding: 9px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.dc-connect:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,169,97,0.4); }
.dc-disconnect {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--rose);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.dc-disconnect:hover { background: var(--rose); color: white; }

/* ============================================
   KALENDER AKADEMIK
   ============================================ */
.kalender-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.kalender-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.kalender-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

.kalender-header > * { position: relative; z-index: 1; }

.kalender-header h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kalender-header h2 i {
    color: var(--gold-light);
}

.kalender-header p {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-serif);
    font-style: italic;
}

.kalender-table-wrapper {
    overflow-x: auto;
}

.kalender-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.kalender-table thead {
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
}

.kalender-table th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.kalender-table th:last-child {
    text-align: right;
}

.kalender-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.kalender-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.kalender-table tbody tr.current {
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-left: 4px solid var(--gold);
}

.kalender-table tbody tr.upcoming {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.08) 0%, transparent 100%);
}

.kalender-table tbody tr.past {
    opacity: 0.55;
}

.kalender-table td {
    padding: 16px 24px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.kalender-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.kalender-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
}

[data-theme="dark"] .kalender-table td:last-child {
    color: var(--gold-light);
}

.kalender-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.badge-current {
    background: var(--gradient-primary);
    color: white;
    animation: badge-glow 2s ease-in-out infinite;
}

.badge-upcoming {
    background: rgba(108, 92, 231, 0.15);
    color: var(--purple);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.badge-past {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

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

.kalender-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-normal);
}

.kalender-summary-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.kalender-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.kalender-summary-icon.uts { background: linear-gradient(135deg, #f39c12, #e67e22); }
.kalender-summary-icon.uas { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.kalender-summary-icon.libur { background: linear-gradient(135deg, #16a085, #27ae60); }

.kalender-summary-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.kalender-summary-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* User Menu in Nav */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
}

.user-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.user-menu-name {
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive for login */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .auth-brand {
        padding: 36px 32px 28px;
    }
    .auth-headline {
        font-size: 1.8rem;
    }
    .auth-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .auth-feature {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .auth-card {
        padding: 36px 32px;
    }
}

@media (max-width: 600px) {
    .auth-features {
        grid-template-columns: 1fr;
    }
    .auth-brand, .auth-card {
        padding: 28px 24px;
    }
    .kalender-table th,
    .kalender-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .kalender-header {
        padding: 22px 20px;
    }
    .kalender-header h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   AUTH FORM ICON (login page)
   ============================================ */
.auth-form-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.35);
}

/* ============================================
   JADWAL KULIAH — Refined Layout v2
   ============================================ */

/* === INFO BAR (simple, compact) === */
.jadwal-infobar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.jadwal-infobar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.jadwal-infobar-left > i { color: var(--gold); font-size: 1rem; }
.jadwal-infobar-left strong { color: var(--text-primary); font-weight: 700; }

.jadwal-next-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(201, 169, 97, 0.04) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}
.jadwal-next-banner > i { color: var(--gold); }
.jadwal-next-banner strong { color: var(--gold-dark); font-weight: 700; }
[data-theme="dark"] .jadwal-next-banner strong { color: var(--gold-light); }
.nb-sep { opacity: 0.4; margin: 0 2px; }
.jadwal-next-banner.relax,
.jadwal-next-banner.done {
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-serif);
}
.jadwal-next-banner.relax > i { color: var(--gold); }
.jadwal-next-banner.done > i { color: var(--emerald); }

/* === DAY TABS (pill style, compact) === */
.jadwal-day-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}
.jdt-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}
.jdt-chip:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.jdt-chip.empty { opacity: 0.45; }
.jdt-chip.empty:hover { opacity: 0.7; }
.jdt-chip.today::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
}
.jdt-chip.today.active::after { background: white; }
.jdt-label {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
}
.jdt-count {
    font-size: 0.72rem;
    padding: 2px 7px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 22px;
    text-align: center;
}
.jdt-chip.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
}
.jdt-chip.active .jdt-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* === DAY CARDS === */
.jadwal-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.jadwal-empty-day {
    padding: 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
}
.jadwal-empty-day i {
    color: var(--gold);
    margin-right: 8px;
    font-style: normal;
}

.jdc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}
.jdc:hover { box-shadow: var(--shadow-md); }
.jdc.today {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(201, 169, 97, 0.18);
}

.jdc-head {
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}
.jdc.today .jdc-head {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(201, 169, 97, 0.04) 100%);
    border-bottom-color: var(--gold);
}
.jdc-day {
    display: flex;
    align-items: center;
    gap: 12px;
}
.jdc-day-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.jdc-today-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.jdc-today-tag i { font-size: 0.65rem; }
.jdc-count {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.jdc-body {
    display: flex;
    flex-direction: column;
}

.jdc-class {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}
.jdc-class:last-child { border-bottom: none; }
.jdc-class:hover { background: var(--bg-tertiary); }

.jdc-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    position: relative;
}
.jdc-time-val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--gold-dark);
    line-height: 1;
    letter-spacing: 0.5px;
}
[data-theme="dark"] .jdc-time-val { color: var(--gold-light); }
.jdc-time-end {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-dark);
    opacity: 0.78;
    line-height: 1;
    letter-spacing: 0.3px;
}
[data-theme="dark"] .jdc-time-end { color: var(--gold-light); }

.jdc-main { min-width: 0; }
.jdc-name {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
}
.jdc-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    align-items: center;
}
.jdc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.jdc-meta-item i {
    color: var(--gold);
    opacity: 0.7;
    font-size: 0.85rem;
    width: 14px;
}
.jdc-tag {
    display: inline-block;
    padding: 2px 9px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 1px;
}
[data-theme="dark"] .jdc-tag { color: var(--gold-light); }

.jdc-actions {
    display: flex;
    gap: 6px;
    opacity: 0.65;
    transition: opacity var(--transition-fast);
}
.jdc-class:hover .jdc-actions { opacity: 1; }

/* === Mobile responsive === */
@media (max-width: 768px) {
    .jadwal-infobar { flex-direction: column; align-items: flex-start; }
    .jadwal-next-banner { width: 100%; justify-content: flex-start; }
}

@media (max-width: 640px) {
    .jdc-head { padding: 12px 16px; }
    .jdc-day-name { font-size: 0.95rem; letter-spacing: 1.5px; }
    .jdc-class {
        grid-template-columns: 70px 1fr auto;
        gap: 12px;
        padding: 14px 16px;
    }
    .jdc-time-val { font-size: 1.15rem; }
    .jdc-actions { opacity: 1; }
    .jdc-meta { gap: 10px; font-size: 0.78rem; }
}

/* ============================================
   FILE FOLDERS (Folder Navigation)
   ============================================ */
.files-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.files-breadcrumb > i {
    color: var(--gold);
    font-size: 1rem;
}

.files-breadcrumb a {
    color: var(--gold-dark);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: color var(--transition-fast);
}

[data-theme="dark"] .files-breadcrumb a {
    color: var(--gold-light);
}

.files-breadcrumb a:hover {
    text-decoration: underline;
}

.files-breadcrumb .chevron {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

.files-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 700;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.folder-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.folder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.folder-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.folder-card:hover::before {
    transform: scaleX(1);
}

.folder-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3);
    transition: transform var(--transition-bounce);
}

.folder-card:hover .folder-icon {
    transform: scale(1.05) rotate(-4deg);
}

.folder-card.folder-pertemuan .folder-icon {
    background: var(--gradient-primary);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
}

.folder-card.folder-empty .folder-icon {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 2px dashed var(--border-strong);
    box-shadow: none;
}

/* ===== KRS (folder wajib syarat ujian) ===== */
.krs-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.14), rgba(26, 68, 128, 0.08));
    border: 1px solid rgba(201, 169, 97, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
}
.krs-banner:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.krs-banner-icon {
    width: 52px; height: 52px; flex: 0 0 auto;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold), #a8842f);
    color: #1a1206; display: grid; place-items: center; font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
}
.krs-banner-text { flex: 1; min-width: 0; }
.krs-banner-title {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    color: var(--text-primary); display: flex; align-items: center; gap: 8px;
}
.krs-banner-tag {
    font-size: 0.62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    background: var(--gold); color: #1a1206; padding: 2px 8px; border-radius: var(--radius-full);
}
.krs-banner-sub { font-size: 0.85rem; color: var(--text-secondary); margin-top: 3px; line-height: 1.45; }
.krs-banner-arrow { color: var(--gold); font-size: 1rem; flex: 0 0 auto; }

.folder-card.folder-krs .folder-icon {
    background: linear-gradient(135deg, var(--gold), #a8842f);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
}
.folder-card.folder-krs-add {
    border-style: dashed;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.folder-card.folder-krs-add .folder-icon {
    background: var(--bg-tertiary); color: var(--gold);
    border: 2px dashed var(--gold); box-shadow: none;
}

.krs-head { margin-bottom: 18px; }
.krs-head-title {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    color: var(--text-primary); display: flex; align-items: center; gap: 9px; margin-bottom: 5px;
}
.krs-head-title i { color: var(--gold); }
.krs-head-sub { font-size: 0.88rem; color: var(--text-tertiary); line-height: 1.5; max-width: 720px; }
.krs-head-sub b { color: var(--text-secondary); }

.file-krs-field {
    padding: 11px 14px; border-radius: var(--radius-md, 10px);
    background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.3);
    font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px;
}
.file-krs-field i { color: var(--gold); margin-right: 6px; }
.file-krs-field b { color: var(--text-primary); }

.folder-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

.folder-meta {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-meta i {
    color: var(--gold);
}

.folder-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    min-width: 26px;
    text-align: center;
}

.pertemuan-folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 16px;
}

.pertemuan-folder-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pertemuan-folder-title i {
    color: var(--gold);
}

.pertemuan-folder-subtitle {
    color: var(--text-tertiary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 2px;
    display: block;
}

.files-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Search result file info — show location */
.file-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: var(--bg-tertiary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-top: 8px;
    cursor: pointer;
}

[data-theme="dark"] .file-location {
    color: var(--gold-light);
}

.file-location:hover {
    background: var(--gold);
    color: white;
}

/* Mobile responsive folders */
@media (max-width: 500px) {
    .folder-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    .folder-card {
        padding: 18px;
    }
    .folder-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
    .folder-name {
        font-size: 1rem;
    }
}

/* ============================================
   BAAK Data Section (looks like baak.gunadarma.ac.id)
   ============================================ */
.sidebar-link-special { position: relative; }

.sidebar-badge {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 169, 97, 0.18);
    color: var(--gold-dark);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 1.2px;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

[data-theme="dark"] .sidebar-badge {
    background: rgba(227, 199, 137, 0.15);
    color: var(--gold-light);
    border-color: rgba(227, 199, 137, 0.25);
}

.sidebar-link-special.active .sidebar-badge {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* === BAAK META BAR (refined) === */
.baak-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid #a8842f;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.baak-meta-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.baak-meta-info > i {
    color: #a8842f;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.baak-meta-text {
    min-width: 0;
}

.baak-meta-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.baak-meta-sub {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 3px;
}

.baak-meta-count {
    color: var(--gold-dark);
    font-weight: 700;
}

[data-theme="dark"] .baak-meta-count {
    color: var(--gold-light);
}

.baak-meta-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* legacy class — used by Jadwal Kuliah meta tag still */
.baak-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
}
.baak-meta-tag i { color: var(--gold-dark); }
[data-theme="dark"] .baak-meta-tag i { color: var(--gold-light); }

.baak-subtabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
}

.baak-subtab {
    padding: 11px 22px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.baak-subtab:hover {
    color: var(--text-primary);
}

.baak-subtab.active {
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.35);
}

.baak-class-search {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.baak-class-input {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 11px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

.baak-class-input:focus {
    outline: none;
    border-color: #a8842f;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.15);
}

.baak-class-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.baak-class-chip {
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.baak-class-chip:hover {
    border-color: #a8842f;
    color: #a8842f;
    transform: translateY(-2px);
}

.baak-class-chip.active {
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(13, 45, 98, 0.3);
}

.baak-class-chip.active:hover {
    color: white;
}

.baak-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.baak-table-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.baak-table-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.18;
    border-radius: 50%;
}

.baak-table-header > * {
    position: relative;
    z-index: 1;
}

.baak-table-header h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.baak-table-header .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    font-family: var(--font-serif);
    font-style: italic;
}

/* Segmented control Genap/Ganjil — di dalam header, grup dengan judul */
.baak-sem-toggle {
    display: inline-flex;
    gap: 4px;
    margin-top: 16px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
    justify-content: center;
}
.baak-sem-btn {
    padding: 7px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.baak-sem-btn:hover { color: #fff; }
.baak-sem-btn.active {
    background: var(--gold);
    color: #1a1206;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.baak-jadwal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.baak-jadwal-table thead {
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
}

/* LIGHT MODE: navy lebih halus & elegan (yang lama terlalu gelap di latar terang) */
[data-theme="light"] .baak-table-header,
[data-theme="light"] .baak-jadwal-table thead {
    background: linear-gradient(135deg, #1f4d8c 0%, #356aa6 100%);
}
[data-theme="light"] .baak-class-chip.active {
    background: linear-gradient(135deg, #1f4d8c 0%, #356aa6 100%);
    box-shadow: 0 4px 10px rgba(31, 77, 140, 0.28);
}

.baak-jadwal-table th {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
}

.baak-jadwal-table th.text-left {
    text-align: left;
}

.baak-jadwal-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.baak-jadwal-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.baak-jadwal-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.025);
}

[data-theme="dark"] .baak-jadwal-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.baak-jadwal-table tbody tr:nth-child(even):hover,
[data-theme="dark"] .baak-jadwal-table tbody tr:nth-child(even):hover {
    background: var(--bg-tertiary);
}

.baak-jadwal-table td {
    padding: 12px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.baak-jadwal-table td.text-left {
    text-align: left;
    color: var(--text-primary);
}

.baak-jadwal-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.baak-table-footer {
    padding: 16px 32px;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}

.baak-table-footer strong {
    color: var(--text-primary);
}

.baak-empty-state {
    padding: 60px 30px;
    text-align: center;
    background: var(--bg-card);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.baak-empty-state i {
    font-size: 3.5rem;
    color: var(--border-strong);
    margin-bottom: 20px;
}

.baak-empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.baak-empty-state h3 strong {
    color: #a8842f;
}

.baak-empty-state p {
    color: var(--text-tertiary);
    margin: 0 auto 24px;
    max-width: 480px;
    line-height: 1.6;
}

/* Mobile BAAK */
@media (max-width: 768px) {
    .baak-jadwal-table {
        font-size: 0.78rem;
    }
    .baak-jadwal-table th,
    .baak-jadwal-table td {
        padding: 10px 8px;
    }
    .baak-table-header {
        padding: 18px 20px;
    }
    .baak-table-header h2 {
        font-size: 1.2rem;
    }
    .baak-meta-bar {
        font-size: 0.8rem;
    }
    .baak-subtabs {
        width: 100%;
    }
    .baak-subtab {
        padding: 10px 14px;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }
}

/* BAAK Sync buttons (refined split style) */
.btn-baak-sync {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.btn-sync-primary {
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}
.btn-sync-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.45);
}
.btn-sync-primary i { transition: transform var(--transition-fast); }
.btn-sync-primary:hover i { transform: rotate(180deg); }

.btn-sync-ghost {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    padding: 9px 12px;
}
.btn-sync-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: #a8842f;
}

.btn-baak-mini {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-baak-mini:hover {
    border-color: #a8842f;
    color: #a8842f;
}

.sync-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 12px;
}

.sync-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sync-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.35);
}

.sync-step-content {
    flex: 1;
    min-width: 0;
}

.sync-step-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.sync-step-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bookmarklet-box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.bookmarklet-drag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #0d2d62 0%, #1a4480 100%);
    color: white !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: grab;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    user-select: none;
}

.bookmarklet-drag:hover {
    background: linear-gradient(135deg, #1a4480 0%, #2a5a9c 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 16px rgba(13, 45, 98, 0.45);
}

.bookmarklet-drag:active {
    cursor: grabbing;
}

.sync-tip {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gold-dark);
}

[data-theme="dark"] .sync-tip {
    color: var(--gold-light);
}

.sync-tip i {
    color: var(--gold);
    margin-top: 2px;
}

.sync-tip strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .btn-baak-sync { justify-content: center; }
    .baak-meta-bar { flex-direction: column; align-items: stretch; }
    .baak-meta-actions { justify-content: flex-end; }
    .sync-step { flex-direction: column; gap: 12px; }
}

/* ============================================
   FINAL POLISH — Animations, Accessibility, Microinteractions
   ============================================ */

/* Smooth view transitions */
.view {
    animation: viewFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessibility focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Stat cards subtle improvements */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(201, 169, 97, 0.04) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}
.stat-card:hover::after { opacity: 1; }

/* Sidebar link smooth */
.sidebar-link {
    position: relative;
    overflow: hidden;
}
.sidebar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}
.sidebar-link:hover::before { opacity: 1; }
.sidebar-link.active::before { display: none; }

/* Smooth button press */
button:not(:disabled):active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

/* Loading spinner reuse */
.fa-spinner.fa-spin {
    animation: fa-spin 0.8s linear infinite !important;
}

/* Selection color refined */
::selection {
    background: rgba(201, 169, 97, 0.4);
    color: var(--text-primary);
}

/* Scrollbar polish for content areas */
.dashboard-content::-webkit-scrollbar,
.overview-list::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.dashboard-content::-webkit-scrollbar-thumb,
.overview-list::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}
.dashboard-content::-webkit-scrollbar-thumb:hover,
.overview-list::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Form polish — better placeholder */
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: skeletonShine 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
    color: transparent !important;
}
@keyframes skeletonShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast position fix on mobile */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
    }
    .toast { min-width: 0; max-width: 100%; }
}

/* Modal overlay smoother */
.modal-overlay {
    transition: opacity var(--transition-normal);
}

/* Sidebar nav scroll cleaner */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

/* Dashboard header time pill */
.current-time {
    transition: all var(--transition-fast);
    cursor: default;
}
.current-time:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}
[data-theme="dark"] .current-time:hover { color: var(--gold-light); }

/* Cleaner hover for berita/jadwal/deadline cards */
.berita-card,
.deadline-card,
.matkul-card,
.folder-card,
.file-card {
    will-change: transform, box-shadow;
}

/* Action buttons in lists smoother */
.btn-icon {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon:active {
    transform: scale(0.92);
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   BAAK Kelas Chips Grouped (per Angkatan, Collapsible)
   ============================================ */
.baak-kelas-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.baak-kelas-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.baak-kelas-group > summary {
    cursor: pointer;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    list-style: none;
    transition: background var(--transition-fast);
}

.baak-kelas-group > summary::-webkit-details-marker { display: none; }

.baak-kelas-group > summary:hover {
    background: var(--bg-tertiary);
}

.kg-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kg-key {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold-dark);
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(201, 169, 97, 0.12);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: var(--radius-sm);
}
[data-theme="dark"] .kg-key { color: var(--gold-light); }

.kg-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.kg-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kg-count {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 600;
    padding: 2px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.kg-chevron {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    transition: transform var(--transition-normal);
}

.baak-kelas-group[open] .kg-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

.baak-kelas-group[open] > summary {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.kg-chips {
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 600px) {
    .kg-desc { display: none; }
    .kg-meta { gap: 8px; }
    .kg-chips { padding: 12px 14px; gap: 5px; }
    .baak-class-chip { font-size: 0.78rem; padding: 5px 10px; }
}

/* ============================================
   DONASI VIEW
   ============================================ */
.sidebar-link-donate i { color: #e0245e; }
.donasi-hero {
    text-align: center;
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(224,36,94,0.08), rgba(201,169,97,0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.donasi-hero-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0245e, #ff6b9d);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 18px;
    box-shadow: 0 10px 28px rgba(224,36,94,0.35);
    animation: heart-beat 1.6s ease-in-out infinite;
}
.donasi-hero h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.donasi-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 0.95rem;
}
.donasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.donasi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition-normal);
}
.donasi-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}
.donasi-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.donasi-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.donasi-nama {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}
.donasi-atasnama {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.donasi-nomor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    padding: 12px 14px;
    border-radius: var(--radius-md);
}
.donasi-nomor {
    flex: 1;
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}
.donasi-nomor.empty {
    color: var(--text-tertiary);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}
.donasi-copy {
    padding: 7px 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.donasi-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,169,97,0.4); }
.donasi-soon {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-style: italic;
    padding: 0 8px;
}
.donasi-thanks {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-serif);
}
.donasi-thanks i { color: var(--gold); font-size: 1.2rem; }

.donasi-qris-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.28);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}
.donasi-qris-hint > i { color: var(--gold); font-size: 1.4rem; flex-shrink: 0; }
.donasi-qris-hint b { color: var(--text-primary); }

/* Simplified BAAK kelas hint (replaces accordion grouping) */
.baak-kelas-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.baak-kelas-hint > i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.baak-kelas-hint strong { color: var(--text-primary); }

/* Hide leftover hero decorative elements globally (but KEEP particles for homepage) */
.gradient-orb,
.hero-emblem,
.hero-circle,
.floating-card { display: none !important; }
/* Particles only hidden when in dashboard */
body.in-dashboard .particles-bg { display: none !important; }

/* ============================================
   PROFILE VIEW (Settings)
   ============================================ */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.profile-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.35);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.profile-avatar-lg .avatar-cam {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.profile-avatar-lg:hover .avatar-cam { opacity: 1; }
.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.avatar-remove-link,
.avatar-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--transition-fast);
}
.avatar-remove-link:hover { color: var(--rose); }
.avatar-hint { cursor: default; }
/* Nav & sidebar avatars can hold a photo too */
#navUserAvatar, #userAvatar { overflow: hidden; }
#navUserAvatar img, #userAvatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-hero-info { flex: 1; min-width: 0; }
.profile-hero-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.profile-badge-owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.profile-meta {
    display: flex;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta i { color: var(--gold); }
.profile-meta strong { color: var(--text-primary); }
.profile-tiny {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.profile-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.profile-card h3 i { color: var(--gold); }
.profile-card form { display: flex; flex-direction: column; gap: 14px; }
.profile-card-danger {
    border-color: rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, rgba(231,76,60,0.04) 0%, transparent 100%);
}
.profile-card-danger h3 i { color: #e74c3c; }
.profile-card input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .profile-hero { flex-direction: column; text-align: center; padding: 24px; }
    .profile-meta { justify-content: center; }
    .profile-grid { grid-template-columns: 1fr; }
}

/* === OWNER ADMIN PANEL === */
.owner-admin {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.owner-admin-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(108,92,231,0.04));
    border: 1px solid var(--purple);
    border-radius: var(--radius-md);
}
.owner-admin-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.owner-admin-header h3 i { color: var(--gold); }
.owner-admin-header p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-style: italic;
    font-family: var(--font-serif);
}

.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-list-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.user-list-item:hover { border-color: var(--gold); }
.user-list-item.is-me {
    background: linear-gradient(135deg, rgba(201,169,97,0.08), transparent);
    border-color: var(--gold);
}
.uli-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.uli-info { flex: 1; min-width: 0; }
.uli-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.uli-tag-owner, .uli-tag-me {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.uli-tag-owner { background: var(--gradient-primary); color: white; }
.uli-tag-me { background: var(--bg-card); color: var(--purple); border: 1px solid var(--purple); }
.uli-meta {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.uli-meta i { color: var(--gold); opacity: 0.7; margin-right: 4px; }
.uli-tiny { font-size: 0.7rem; color: var(--text-tertiary); }
.uli-actions { display: flex; gap: 4px; flex-shrink: 0; }
.uli-self-tag {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-style: italic;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
}

/* Audit log */
.audit-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}
.audit-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.audit-row > i {
    color: var(--gold);
    font-size: 0.95rem;
}
.audit-action {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-primary);
}
.audit-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.audit-meta em {
    color: var(--gold-dark);
    font-style: normal;
    font-weight: 600;
}
[data-theme="dark"] .audit-meta em { color: var(--gold-light); }
.audit-time {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-family: monospace;
    white-space: nowrap;
}

/* ============================================
   BAAK KELAS GROUPS (collapsible accordion)
   ============================================ */
.baak-kelas-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.baak-kelas-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.baak-kelas-group:hover { border-color: var(--border-strong); }
.baak-kelas-group[open] { border-color: var(--gold); }
.baak-kelas-group summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background var(--transition-fast);
}
.baak-kelas-group summary::-webkit-details-marker { display: none; }
.baak-kelas-group summary:hover { background: var(--bg-tertiary); }
.kg-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kg-key {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-dark);
    letter-spacing: 1px;
    min-width: 56px;
}
[data-theme="dark"] .kg-key { color: var(--gold-light); }
.kg-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}
.kg-meta { display: flex; align-items: center; gap: 12px; }
.kg-count {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}
.baak-kelas-group[open] .kg-count {
    background: var(--gradient-primary);
    color: white;
}
.kg-chevron {
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
    font-size: 0.85rem;
}
.baak-kelas-group[open] .kg-chevron { transform: rotate(180deg); color: var(--gold); }
.kg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 18px 14px;
    border-top: 1px solid var(--border);
}

/* Print-friendly */
@media print {
    .sidebar,
    .dashboard-header,
    .view-actions,
    .btn-icon,
    .baak-meta-actions {
        display: none !important;
    }
    .main-content { margin-left: 0; padding: 0; }
    .dashboard.active { background: white; color: black; }
}
