/* ==========================================
   Design System & Base Styles (Venus Maroon)
   ========================================== */

:root {
    /* Fonts */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Special Elite', Courier, monospace; /* Typewriter */

    /* Theme colors - Black & Maroon */
    --bg-color: #060203; /* Pitch Black with a drop of crimson */
    --bg-sidebar: #0b0406;
    --text-primary: #f7f2f3;
    --text-secondary: #d4bec2;
    --text-muted: #8c7074;
    
    /* Theme Glows (Maroon) */
    --accent: #9c1c31; /* Deep Maroon Red */
    --accent-rgb: 156, 28, 49;
    --accent-glow: rgba(156, 28, 49, 0.25);
    
    --glow-color-1: rgba(156, 28, 49, 0.16); 
    --glow-color-2: rgba(92, 6, 18, 0.1); 
    
    /* Card Styles */
    --card-bg: rgba(15, 6, 8, 0.4);
    --card-border: rgba(156, 28, 49, 0.12);
    --card-hover-border: rgba(156, 28, 49, 0.45);
    --glass-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7);
    
    /* Core Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme variations */
body.theme-romansa {
    --accent: #b81d33;
    --accent-rgb: 184, 29, 51;
    --glow-color-1: rgba(184, 29, 51, 0.22);
    --glow-color-2: rgba(156, 28, 49, 0.12);
}

body.theme-perjalanan {
    --accent: #800020;
    --accent-rgb: 128, 0, 32;
    --glow-color-1: rgba(128, 0, 32, 0.2);
    --glow-color-2: rgba(74, 0, 13, 0.12);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.8s ease;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.font-alt {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

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

::-webkit-scrollbar-track {
    background: #060203;
}

::-webkit-scrollbar-thumb {
    background: #2a0b10;
    border-radius: 4px;
    border: 2px solid #060203;
}

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

/* ==========================================
   Fullscreen Intro Overlay (Venus)
   ========================================== */

.intro-overlay {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.9s ease;
}

.intro-overlay.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.intro-rose {
    width: 160px;
    height: 160px;
    object-fit: contain;
    animation: introRoseIn 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-title {
    font-size: 4rem;
    font-style: italic;
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 8px;
    margin-right: -8px;
    animation: introTitleIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.intro-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: introSubtitleIn 2s ease 1s both;
}

@keyframes introRoseIn {
    from { opacity: 0; transform: scale(0.85); filter: brightness(0.2); }
    to { opacity: 1; transform: scale(1); filter: brightness(1); }
}

@keyframes introTitleIn {
    from { opacity: 0; letter-spacing: 2px; }
    to { opacity: 1; letter-spacing: 8px; }
}

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

/* ==========================================
   Background Ambient Glows
   ========================================== */

.glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.8;
    transition: background 1.2s ease-in-out, transform 10s ease-in-out;
}

.glow-1 {
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--glow-color-1) 0%, rgba(0,0,0,0) 70%);
    animation: float-glow-1 25s infinite alternate ease-in-out;
}

.glow-2 {
    top: 50%;
    right: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--glow-color-2) 0%, rgba(0,0,0,0) 70%);
    animation: float-glow-2 30s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes float-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -150px) scale(0.9); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3e%3c/svg%3e");
    z-index: 9999;
    pointer-events: none;
}

/* ==========================================
   Header & Navigation
   ========================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(6, 2, 3, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(156, 28, 49, 0.08);
    transition: var(--transition-smooth);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent);
    transition: color 0.5s ease;
    font-style: italic;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.theme-badge {
    background: rgba(156, 28, 49, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    cursor: default;
}

.theme-badge .badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    transition: var(--transition-smooth);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 8% 4rem 8%;
    gap: 4rem;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.5s ease;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    color: #ffffff;
}

.hero-title span {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
    transition: color 0.5s ease;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.8rem;
    font-weight: 300;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 420px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatImage 6s ease-in-out infinite;
}

.hero-card-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    transition: var(--transition-smooth);
}

.hero-glass-box {
    background: rgba(15, 6, 8, 0.6);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    position: relative;
}

.glass-header {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
}

.glass-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.glass-header .dot.red { background-color: rgba(156, 28, 49, 0.6); }
.glass-header .dot.yellow { background-color: rgba(229, 193, 125, 0.4); }
.glass-header .dot.green { background-color: rgba(255, 255, 255, 0.2); }

.poem-tag {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.poem-snippet {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    line-height: 1.6;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 2rem;
}

.poem-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
    background-color: #ba233c;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background: rgba(156, 28, 49, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-3px);
}

.btn-secondary-sm {
    padding: 0.55rem 1.4rem;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.btn-secondary-sm:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary-sm {
    padding: 0.55rem 1.4rem;
    background-color: var(--accent);
    border: none;
    color: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.btn-primary-sm:hover {
    background-color: #ba233c;
}

.btn-danger {
    padding: 0.7rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-danger:hover:not(:disabled) {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    transform: translateY(-2px);
}

.btn-danger:disabled, .btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================
   Section Layouts
   ========================================== */

section {
    padding: 8rem 8% 6rem 8%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-tag {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.section-header h2 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* ==========================================
   Quotes Section
   ========================================== */

.quotes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-wrapper {
    max-width: 750px;
    width: 100%;
}

.quote-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 4.5rem 3.5rem 3rem 3.5rem;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
    transition: border-color 0.4s ease;
}

.quote-card:hover {
    border-color: rgba(156, 28, 49, 0.3);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 2.5rem;
    font-family: var(--font-serif);
    font-size: 7.5rem;
    color: rgba(var(--accent-rgb), 0.06);
    line-height: 1;
    pointer-events: none;
    transition: color 0.5s ease;
}

.quote-body {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.quote-author {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    transition: var(--transition-smooth);
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Icon Buttons */
.icon-btn {
    background: rgba(156, 28, 49, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.15);
}

/* Tooltip */
.icon-btn .tooltip {
    position: absolute;
    bottom: -35px;
    background: rgba(6, 2, 3, 0.95);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.icon-btn:hover .tooltip {
    opacity: 1;
    bottom: -30px;
}

/* ==========================================
   Poetry Gallery Section
   ========================================== */

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-box input {
    width: 100%;
    background: rgba(156, 28, 49, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border-radius: 25px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--accent);
    background: rgba(156, 28, 49, 0.05);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-box input:focus + .search-icon {
    color: var(--accent);
}

.filter-pills {
    display: flex;
    gap: 0.6rem;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.55rem 1.4rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.filter-pill:hover, .filter-pill.active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(var(--accent-rgb), 0.1);
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.poetry-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Important for banner images */
}

/* Card Cover Image Styling */
.poetry-card-cover {
    height: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

.poetry-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.poetry-card:hover .poetry-card-cover img {
    transform: scale(1.06) rotate(0.5deg);
}

.poetry-card-content {
    padding: 2.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.poetry-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-rgb), 0.05);
}

.poetry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

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

.poetry-card h3 {
    font-size: 1.65rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.poetry-card:hover h3 {
    color: var(--accent);
}

.poetry-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-family: var(--font-serif);
    font-style: italic;
}

.poetry-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.action-read-more {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.poetry-card:hover .action-read-more {
    transform: translateX(3px);
}

/* ==========================================
   Drafts Section (Typewriter Redaksi)
   ========================================== */

.drafts-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
}

.drafts-sidebar {
    background: var(--bg-sidebar);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.sidebar-header h3 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    color: #ffffff;
}

.drafts-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.draft-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.draft-item:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.03);
}

.draft-item.active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.1);
}

.draft-item-title {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-item-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-item-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    align-self: flex-end;
}

/* Editor Panel */
.drafts-editor {
    background: rgba(10, 4, 6, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.editor-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3e%3c/svg%3e");
    z-index: 1;
    pointer-events: none;
}

.editor-header {
    padding: 2rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px dashed rgba(156, 28, 49, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.editor-title {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
}

.editor-title::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

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

.editor-body {
    flex-grow: 1;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 2;
}

.editor-textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 2.0;
    resize: none;
}

.editor-textarea::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.editor-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px dashed rgba(156, 28, 49, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(6, 2, 3, 0.4);
}

.editor-actions-right {
    display: flex;
    gap: 1rem;
}

/* ==========================================
   Coretan Rasa Canvas Section
   ========================================== */

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.canvas-preview-wrapper {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sajak-card-canvas {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/5;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3e%3c/svg%3e");
    z-index: 1;
    pointer-events: none;
}

.card-glow-element {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Gradient Themes for Poetry Canvas */
.sajak-card-canvas.theme-sunset {
    background: linear-gradient(135deg, #1f0b0e 0%, #2f0710 40%, #0e0305 100%);
    border: 1px solid rgba(156, 28, 49, 0.2);
}

.sajak-card-canvas.theme-midnight {
    background: linear-gradient(135deg, #090306 0%, #17070b 50%, #000000 100%);
    border: 1px solid rgba(156, 28, 49, 0.15);
}

.sajak-card-canvas.theme-forest {
    background: linear-gradient(135deg, #0d0c0c 0%, #1a080c 50%, #000000 100%);
    border: 1px solid rgba(156, 28, 49, 0.15);
}

.sajak-card-canvas.theme-rose {
    background: linear-gradient(135deg, #2b0409 0%, #3d0710 50%, #0c0003 100%);
    border: 1px solid rgba(255, 140, 130, 0.15);
}

.card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-watermark {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

.card-quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
    margin-bottom: -1rem;
}

.card-text-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.card-text-content textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-style: italic;
    line-height: 1.6;
    resize: none;
    text-align: center;
    height: 150px;
    padding: 0;
}

.card-text-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.card-author-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.5rem;
}

.author-prefix {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.card-author-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    width: 140px;
}

.card-author-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.canvas-controls {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
}

.control-group h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

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

.theme-selector {
    display: flex;
    gap: 0.8rem;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-btn span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

/* Colors for canvas selector buttons */
.theme-sunset-btn span { background: linear-gradient(135deg, #9c1c31, #060203); }
.theme-sunset-btn.active { border-color: #9c1c31; }

.theme-midnight-btn span { background: linear-gradient(135deg, #3d0710, #000000); }
.theme-midnight-btn.active { border-color: #3d0710; }

.theme-forest-btn span { background: linear-gradient(135deg, #1f0b0e, #0d0c0c); }
.theme-forest-btn.active { border-color: #1f0b0e; }

.theme-rose-btn span { background: linear-gradient(135deg, #ff8c82, #2b0409); }
.theme-rose-btn.active { border-color: #ff8c82; }

.theme-btn:hover {
    transform: scale(1.1);
}

.btn-full-width {
    width: 100%;
}

.btn-icon {
    margin-right: 0.6rem;
}

/* ==========================================
   About Section
   ========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
    border-radius: 50%;
    animation: rotateDashed 40s linear infinite;
}

.visual-card {
    background: rgba(15, 6, 8, 0.6);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    z-index: 2;
}

.visual-tag {
    font-family: var(--font-sans);
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: block;
}

.visual-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.visual-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-content {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

.about-meta {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

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

/* ==========================================
   Footer Section
   ========================================== */

footer {
    border-top: 1px solid rgba(156, 28, 49, 0.08);
    padding: 5rem 8% 2.5rem 8%;
    background: rgba(6, 2, 3, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   Immersive Side-Drawer Reader
   ========================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 1, 2, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 580px;
    height: 100%;
    background: rgba(9, 3, 5, 0.88);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-left: 1px solid rgba(156, 28, 49, 0.15);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.drawer-overlay.open .drawer-container {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.drawer-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn-favorite {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.icon-btn-favorite:hover, .icon-btn-favorite.active {
    color: #ef4444; 
}

.icon-btn-favorite.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.drawer-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: block;
}

.drawer-title {
    font-size: 2.8rem;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.drawer-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 2.2rem;
    transition: background-color 0.5s ease;
}

/* Font Controls inside Drawer */
.font-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.font-btn {
    background: rgba(156, 28, 49, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.font-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.drawer-poem-content {
    font-family: var(--font-serif);
    font-size: 1.3rem; 
    line-height: 2.1;
    color: var(--text-primary);
    white-space: pre-line; 
    transition: font-size 0.3s ease;
    margin-bottom: 2rem;
}

/* Drawer Footer: Soundscape Player */
.drawer-footer {
    padding: 1.8rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(6, 2, 3, 0.5);
}

.sound-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sound-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sound-play-btn {
    background: rgba(var(--accent-rgb), 0.15);
    border: none;
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sound-play-btn:hover {
    transform: scale(1.05);
    background: rgba(var(--accent-rgb), 0.25);
}

.sound-text {
    display: flex;
    flex-direction: column;
}

.sound-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.sound-status {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sound-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-left: 0.5rem;
}

.sound-visualizer .bar {
    width: 2px;
    background-color: var(--accent);
    border-radius: 1px;
    height: 2px;
    transition: height 0.3s ease;
}

.sound-control-panel.playing .sound-visualizer .bar {
    animation: bounceBar 0.8s ease infinite alternate;
}

.sound-control-panel.playing .sound-visualizer .bar:nth-child(2) {
    animation-delay: 0.15s;
    animation-duration: 0.6s;
}

.sound-control-panel.playing .sound-visualizer .bar:nth-child(3) {
    animation-delay: 0.3s;
    animation-duration: 0.9s;
}

.sound-control-panel.playing .sound-visualizer .bar:nth-child(4) {
    animation-delay: 0.05s;
    animation-duration: 0.7s;
}

@keyframes bounceBar {
    0% { height: 2px; }
    100% { height: 12px; }
}

.volume-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.volume-slider-wrapper input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.volume-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.volume-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* ==========================================
   Publish category selection modal overlay
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.publish-modal-content {
    background: #0b0406;
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.publish-modal-content h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.publish-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.publish-category-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
}

.pub-opt-btn {
    flex: 1;
    background: rgba(156, 28, 49, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.pub-opt-btn:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    transform: translateY(-4px);
}

.pub-opt-btn img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pub-opt-btn span {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.publish-modal-footer {
    display: flex;
    justify-content: center;
}

/* ==========================================
   Toast / Notification System
   ========================================== */

.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

.toast {
    background: rgba(11, 4, 6, 0.95);
    border: 1px solid var(--accent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-primary);
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toast svg {
    color: var(--accent);
}

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

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

/* ==========================================
   Keyframes & Animations
   ========================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 9rem;
        gap: 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 400px;
        height: 380px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .canvas-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .canvas-preview-wrapper {
        width: 100%;
    }
    
    .canvas-controls {
        width: 100%;
        max-width: 420px;
    }

    .drafts-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }

    .drafts-sidebar {
        height: 250px;
    }

    .drafts-editor {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    header {
        padding: 1.2rem 5%;
    }
    
    nav {
        display: none; 
    }
    
    section {
        padding: 6rem 5% 4rem 5%;
    }
    
    .section-header h2 {
        font-size: 2.1rem;
    }
    
    .quote-card {
        padding: 3rem 1.8rem 2rem 1.8rem;
    }
    
    .quote-text {
        font-size: 1.45rem;
    }
    
    .quote-icon {
        top: 1rem;
        left: 1.2rem;
        font-size: 5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-pills {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-pill {
        flex-shrink: 0;
    }
    
    .drawer-container {
        max-width: 100%;
    }
    
    .drawer-body {
        padding: 2rem 1.5rem;
    }
    
    .drawer-title {
        font-size: 2.2rem;
    }

    .publish-category-options {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================
   Admin Mode Toggles & Widgets
   ========================================== */

.admin-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    margin-right: 0.5rem;
    outline: none;
}

.admin-badge:hover {
    background: rgba(156, 28, 49, 0.08);
    border-color: rgba(156, 28, 49, 0.3);
    color: var(--text-primary);
}

.admin-badge.admin-mode-active {
    background: rgba(156, 28, 49, 0.15);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(156, 28, 49, 0.3);
    animation: badgePulse 2s infinite alternate;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 5px rgba(156, 28, 49, 0.2); }
    100% { box-shadow: 0 0 15px rgba(156, 28, 49, 0.5); }
}

/* Locked State Card */
.drafts-locked-card {
    background: rgba(15, 6, 8, 0.5);
    border: 1px dashed var(--card-border);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 700px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.4s ease;
}

.lock-card-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3c/filter%3e%3crect width='100%25' height='100%25' opacity='0.015'/%3e%3c/svg%3e");
    pointer-events: none;
}

.lock-card-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(156, 28, 49, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.lock-illustration {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.lock-shield {
    width: 90px;
    height: 90px;
    background: rgba(156, 28, 49, 0.05);
    border: 1px solid rgba(156, 28, 49, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.drafts-locked-card:hover .lock-shield {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(156, 28, 49, 0.25);
}

.drafts-locked-card h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.drafts-locked-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Admin Dashboard Styles
   ========================================== */

.admin-dashboard-section {
    background: linear-gradient(180deg, rgba(6, 2, 3, 0.8) 0%, rgba(11, 4, 6, 0.9) 100%);
    position: relative;
    border-top: 1px solid rgba(156, 28, 49, 0.05);
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(15, 6, 8, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(156, 28, 49, 0.35);
    transform: translateY(-3px);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(156, 28, 49, 0.05);
    border: 1px solid rgba(156, 28, 49, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-info h3 {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 600;
    margin-top: 0.1rem;
}

.dashboard-details-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .dashboard-details-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-box {
    background: rgba(15, 6, 8, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.dashboard-box h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.box-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chart-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chart-bar-title {
    font-family: var(--font-serif);
    font-style: italic;
    color: #ffffff;
}

.chart-bar-val {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9c1c31 0%, #d92b47 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-body {
    background: #030102;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    height: 240px;
    padding: 1.2rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    scroll-behavior: smooth;
}

.log-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
    padding-bottom: 0.4rem;
    animation: fadeInLog 0.3s ease;
    text-align: left;
}

.log-time {
    color: var(--accent);
    margin-right: 0.5rem;
}

@keyframes fadeInLog {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-actions-card {
    background: rgba(15, 6, 8, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.2rem;
    text-align: center;
}

.dashboard-actions-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.action-buttons-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================
   Security Setup Wizard Modal
   ========================================== */

.wizard-modal-content {
    background: #0b0406;
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 3.5rem 3rem 3rem 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.4s ease;
}

.wizard-steps-indicator {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.wizard-step h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.wizard-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.step-icon {
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
    animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(156,28,49,0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(156,28,49,0.3)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(156,28,49,0)); }
}

.wizard-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-full-width {
    width: 100%;
}

.pin-display-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.5rem 0 2rem 0;
}

.pin-dot {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(156, 28, 49, 0.3);
    border-radius: 50%;
    transition: var(--transition-smooth);
    background: transparent;
}

.pin-dot.filled {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: scale(1.15);
}

.pin-dot.error {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: shakePin 0.4s;
}

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

.custom-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 280px;
    margin: 0 auto;
}

.key-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 0.8rem 0;
    border-radius: 12px;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.key-btn:hover {
    background: rgba(156, 28, 49, 0.15);
    border-color: var(--accent);
    transform: scale(1.05);
}

.key-btn:active {
    transform: scale(0.95);
}

.key-btn.danger-key {
    color: #ef4444;
}

.key-btn.danger-key:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.key-btn.success-key {
    color: var(--text-secondary);
}

.form-group {
    text-align: left;
    margin-bottom: 2rem;
}

.wizard-select, .wizard-input {
    width: 100%;
    background: rgba(15, 6, 8, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
}

.wizard-select:focus, .wizard-input:focus {
    border-color: var(--accent);
    background: rgba(156, 28, 49, 0.05);
}

.wizard-select option {
    background: #0b0406;
    color: #ffffff;
}

.switch-group {
    text-align: left;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.01);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.switch-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 1rem;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.08);
    transition: .4s;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

.switch-container input:checked + .switch-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

.switch-container input:checked + .switch-slider:before {
    transform: translateX(22px);
    background-color: #ffffff;
}

.switch-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.4;
    padding-left: 3.8rem;
}

.success-lock-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(0,0,0,0) 70%);
    animation: pulseHalo 2s infinite ease-in-out;
}

@keyframes pulseHalo {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.success-shield-svg {
    z-index: 1;
}

.checkmark-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheckmark 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes drawCheckmark {
    to { stroke-dashoffset: 0; }
}

/* ==========================================
   PIN Auth Modal Styles
   ========================================== */

.pin-modal-content {
    background: #0b0406;
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    text-align: center;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

.pin-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    width: 100%;
}

.pin-modal-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    text-align: left;
}

.lockout-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 12px;
    padding: 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    animation: shakePin 0.4s;
}

.btn-forget-text:hover {
    color: var(--accent) !important;
}

.recovery-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.recovery-question {
    font-style: italic;
    color: var(--text-secondary);
}

/* ===== Appreciation (❤️) button in reader drawer ===== */
.btn-appreciate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-appreciate:hover:not(:disabled) {
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}
.btn-appreciate.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.22);
    cursor: default;
}
.btn-appreciate:disabled { cursor: default; opacity: 0.9; }
.btn-appreciate svg { color: var(--accent); }

/* ===== Traffic Sources (referrer) list in dashboard ===== */
.referrer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.referrer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid var(--card-border);
}
.referrer-source {
    color: var(--text-secondary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.referrer-count {
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-mono);
    margin-left: 12px;
}
