/* ============================================
   DESIGN SYSTEM — Mobile App Style Template
   ============================================ */

/* ---- CSS Custom Properties (Dark Theme) ---- */
:root,
[data-theme="dark"] {
    --bg-primary: #080c18;
    --bg-secondary: #0d1224;
    --bg-surface: rgba(14, 21, 40, 0.88);
    --bg-surface-hover: rgba(20, 30, 56, 0.95);
    --bg-card: rgba(16, 24, 48, 0.75);
    --bg-input: rgba(12, 18, 36, 0.9);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(74, 222, 128, 0.4);

    --text-primary: #e2e8f0;
    --text-secondary: #8494a7;
    --text-muted: #556077;
    --text-inverse: #0a0e1a;

    --accent-green: #4ade80;
    --accent-green-dim: rgba(74, 222, 128, 0.12);
    --accent-blue: #60a5fa;
    --accent-blue-dim: rgba(96, 165, 250, 0.12);
    --accent-orange: #fb923c;
    --accent-orange-dim: rgba(251, 146, 60, 0.12);
    --accent-pink: #f472b6;
    --accent-pink-dim: rgba(244, 114, 182, 0.12);
    --accent-purple: #a78bfa;
    --accent-purple-dim: rgba(167, 139, 250, 0.12);
    --accent-red: #ef4444;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(74, 222, 128, 0.06);

    --header-bg: rgba(8, 12, 24, 0.92);
    --drawer-bg: rgba(10, 16, 32, 0.98);
    --overlay-bg: rgba(0, 0, 0, 0.55);
    --status-bar-bg: #060a14;
    --skeleton-bg: rgba(255, 255, 255, 0.04);
    --skeleton-shine: rgba(255, 255, 255, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #e8eaef;
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-surface-hover: rgba(255, 255, 255, 1);
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-input: rgba(240, 242, 246, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(22, 163, 106, 0.5);

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --text-inverse: #f7fafc;

    --accent-green: #16a34a;
    --accent-green-dim: rgba(22, 163, 74, 0.1);
    --accent-blue: #2563eb;
    --accent-blue-dim: rgba(37, 99, 235, 0.1);
    --accent-orange: #ea580c;
    --accent-orange-dim: rgba(234, 88, 12, 0.1);
    --accent-pink: #db2777;
    --accent-pink-dim: rgba(219, 39, 119, 0.1);
    --accent-purple: #7c3aed;
    --accent-purple-dim: rgba(124, 58, 237, 0.1);
    --accent-red: #dc2626;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(22, 163, 74, 0.06);

    --header-bg: rgba(240, 242, 245, 0.95);
    --drawer-bg: rgba(248, 250, 252, 0.99);
    --overlay-bg: rgba(0, 0, 0, 0.3);
    --status-bar-bg: #e2e5ea;
    --skeleton-bg: rgba(0, 0, 0, 0.04);
    --skeleton-shine: rgba(0, 0, 0, 0.08);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: #050810;
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    outline: none;
}

ul { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

/* ============================================
   ANIMATED BACKGROUND CANVAS
   ============================================ */
#bgCanvas {
    display: none;
}

@media (min-width: 768px) {
    #bgCanvas {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }
}

/* ============================================
   PHONE FRAME
   ============================================ */
.phone-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-notch {
    display: none;
}

/* Desktop: phone mockup */
@media (min-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background: #030508;
    }

    .phone-frame {
        width: 420px;
        max-width: 420px;
        height: 92vh;
        max-height: 920px;
        border-radius: 44px;
        border: 2.5px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04),
            0 25px 80px rgba(0, 0, 0, 0.6),
            0 0 120px rgba(74, 222, 128, 0.04);
        overflow: hidden;
        z-index: 1;
    }

    .phone-notch {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 30px;
        background: #000;
        border-radius: 0 0 18px 18px;
        z-index: 200;
    }

    .notch-camera {
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: #111827;
        border: 1.5px solid #1f2937;
    }
}

/* ============================================
   STATUS BAR
   ============================================ */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    background: var(--status-bar-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 150;
    min-height: 28px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .status-bar {
        padding-top: 10px;
    }
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

/* ============================================
   APP HEADER
   ============================================ */
.app-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    min-height: 56px;
    flex-shrink: 0;
}

.header-title {
    flex: 1;
    text-align: center;
    margin: 0 8px;
}

.header-title h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Hamburger Button ---- */
.hamburger {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.hamburger:hover {
    background: var(--accent-green-dim);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Theme Toggle ---- */
.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    flex-shrink: 0;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--accent-green-dim);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================
   DRAWER OVERLAY & NAVIGATION
   ============================================ */
.drawer-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--drawer-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-color);
    z-index: 350;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 32px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.drawer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.drawer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 16px;
}

.drawer-menu {
    padding: 8px 0;
    flex: 1;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 2px 10px;
    border-radius: var(--radius-md);
}

.drawer-item:hover,
.drawer-item.active {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.drawer-item.active {
    font-weight: 600;
}

.drawer-item svg {
    flex-shrink: 0;
}

.drawer-footer {
    padding: 16px 20px 24px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.drawer-link:hover {
    color: var(--accent-green);
}

.drawer-copyright {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ---- Screen Transitions ---- */
.screen {
    animation: screenFadeIn 0.4s ease forwards;
    padding-bottom: 32px;
}

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

/* ============================================
   HOME SCREEN
   ============================================ */

/* ---- Hero Section ---- */
.hero {
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-green-dim) 0%, transparent 70%);
    pointer-events: none;
}

.hero-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #2563eb, #a78bfa);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.2);
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 1; }
}

.hero-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.hero-btn:hover {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.25), rgba(74, 222, 128, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.15);
}

/* ---- Section Titles ---- */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 14px;
    padding: 0 20px;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 0 16px 16px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ---- About Card ---- */
.about-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---- Link Cards ---- */
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.link-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.link-card-icon.blue {
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
}

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

.link-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.link-card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.link-card-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.link-card:hover .link-card-arrow {
    transform: translateX(3px);
    color: var(--accent-green);
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
}

.service-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    transition: all var(--transition-base);
}

.service-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.service-card-icon.green { background: var(--accent-green-dim); color: var(--accent-green); }
.service-card-icon.blue { background: var(--accent-blue-dim); color: var(--accent-blue); }
.service-card-icon.orange { background: var(--accent-orange-dim); color: var(--accent-orange); }
.service-card-icon.pink { background: var(--accent-pink-dim); color: var(--accent-pink); }
.service-card-icon.purple { background: var(--accent-purple-dim); color: var(--accent-purple); }

.service-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-card-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Full-width service card (spans 2 cols) */
.service-card.full {
    grid-column: 1 / -1;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    padding: 0 16px 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

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

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-green), #22c55e);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(74, 222, 128, 0.35);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   BLOG SCREEN
   ============================================ */
.blog-header {
    padding: 24px 20px 8px;
}

.blog-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.blog-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ---- Category Filters ---- */
.category-filters {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.category-chip:hover,
.category-chip.active {
    background: var(--accent-green-dim);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--accent-green);
}

/* ---- Post Cards ---- */
.posts-list {
    padding: 0 16px;
}

.post-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.post-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.post-card:active {
    transform: scale(0.99);
}

.post-card-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--skeleton-bg);
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.post-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.post-card-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    text-transform: capitalize;
}

/* ---- Skeleton Loading ---- */
.skeleton-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.skeleton-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--skeleton-bg);
    animation: shimmer 1.5s infinite;
}

.skeleton-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.skeleton-line {
    height: 10px;
    border-radius: 5px;
    background: var(--skeleton-bg);
    animation: shimmer 1.5s infinite;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 75%; }
.skeleton-line.long { width: 95%; }

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ---- Error State ---- */
.error-state {
    text-align: center;
    padding: 48px 24px;
}

.error-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.error-state h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 6px;
}

.error-state p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 10px 24px;
    background: var(--accent-green-dim);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.retry-btn:hover {
    background: rgba(74, 222, 128, 0.2);
}

/* ============================================
   POST DETAIL SCREEN
   ============================================ */
.post-detail-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.post-detail-bar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-detail-featured {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--skeleton-bg);
}

.post-detail-content {
    padding: 20px;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.post-detail-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.post-detail-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* ---- Post Body (HTML from RSS) ---- */
.post-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-body p {
    margin-bottom: 14px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.post-body a {
    color: var(--accent-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body h2, .post-body h3, .post-body h4 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 3px solid var(--accent-green);
    padding: 10px 16px;
    margin: 16px 0;
    background: var(--accent-green-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.post-body ul, .post-body ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.post-body li {
    list-style: disc;
    margin-bottom: 4px;
}

.post-body ol li {
    list-style: decimal;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.post-body td, .post-body th {
    padding: 8px;
    border: 1px solid var(--border-color);
}

.post-body iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.post-body .separator {
    text-align: center;
}

.post-body .tr-caption-container {
    text-align: center;
    margin: 16px 0;
}

.post-body .tr-caption {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
}

.post-original-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    margin-top: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.post-original-link:hover {
    background: var(--accent-green-dim);
}

/* ============================================
   STATIC PAGE (TRI hman dan)
   ============================================ */
.static-page {
    padding-bottom: 16px;
}

.static-page-header {
    padding: 28px 20px 20px;
    text-align: center;
}

.static-page-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--accent-purple-dim);
    color: var(--accent-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 14px;
}

.static-page-header h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.static-page-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.static-page-date {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.static-page-content {
    padding: 0 0 8px;
}

.static-page-content .post-original-link {
    margin: 8px 16px 16px;
}

/* ---- Code Blocks ---- */
.code-block {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .code-block-header {
    background: rgba(0, 0, 0, 0.04);
}

.code-block-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.code-block-dot:nth-child(1) { background: #ef4444; opacity: 0.8; }
.code-block-dot:nth-child(2) { background: #eab308; opacity: 0.8; }
.code-block-dot:nth-child(3) { background: #22c55e; opacity: 0.8; }

.code-block-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-block pre {
    padding: 14px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--accent-green);
    white-space: pre;
}

/* ---- Tutorial Steps ---- */
.tutorial-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
}

.tutorial-steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 42px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tutorial-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tutorial-steps li:first-child {
    padding-top: 0;
}

.tutorial-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-purple-dim);
    color: var(--accent-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.tutorial-steps li:first-child::before {
    top: 0;
}

.tutorial-steps li a {
    color: var(--accent-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tutorial-steps li code,
.static-page-content .about-text code {
    padding: 2px 7px;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Credits List ---- */
.credits-list {
    list-style: none;
    padding: 0;
}

.credits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
}

.credits-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.credits-list li:first-child {
    padding-top: 0;
}

.credits-label {
    padding: 3px 10px;
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.credits-list a {
    color: var(--accent-green);
    font-weight: 500;
}

/* ---- Facebook Comments ---- */
.fb-comments-wrapper {
    overflow: hidden;
}

.fb-comments-wrapper .fb-comments,
.fb-comments-wrapper .fb-comments span,
.fb-comments-wrapper .fb-comments iframe {
    width: 100% !important;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: absolute;
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(10px);
    transition: all var(--transition-base);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.scroll-top-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 222, 128, 0.4);
}

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

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: rgba(74, 222, 128, 0.3);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

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

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* ============================================
   PLAY STORE DIALOG
   ============================================ */
.playstore-dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.playstore-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.playstore-dialog-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.playstore-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.playstore-dialog-overlay.active .playstore-dialog {
    transform: scale(1) translateY(0);
}

.playstore-dialog-overlay.closing .playstore-dialog {
    transform: scale(0.9) translateY(10px);
}

/* Animated gradient glow behind the dialog */
.playstore-dialog-glow {
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        rgba(74, 222, 128, 0.08),
        rgba(96, 165, 250, 0.08),
        rgba(167, 139, 250, 0.08),
        rgba(74, 222, 128, 0.08)
    );
    border-radius: 50%;
    filter: blur(40px);
    animation: dialogGlowSpin 8s linear infinite;
    pointer-events: none;
}

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

.playstore-dialog-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(96, 165, 250, 0.1));
    border: 1px solid rgba(74, 222, 128, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
}

.playstore-dialog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.playstore-dialog-message {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.playstore-dialog-message strong {
    color: var(--text-primary);
    font-weight: 600;
}

.playstore-dialog-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.playstore-dialog-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    font-family: var(--font-family);
}

.playstore-dialog-btn.cancel {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.playstore-dialog-btn.cancel:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.playstore-dialog-btn.confirm {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(96, 165, 250, 0.2));
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.playstore-dialog-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.3), rgba(96, 165, 250, 0.3));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.15);
}

.playstore-dialog-btn.confirm:active {
    transform: translateY(0);
}

/* Light theme adjustments */
[data-theme="light"] .playstore-dialog-overlay {
    background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .playstore-dialog {
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .playstore-dialog-glow {
    background: conic-gradient(
        from 0deg,
        rgba(22, 163, 74, 0.06),
        rgba(37, 99, 235, 0.06),
        rgba(124, 58, 237, 0.06),
        rgba(22, 163, 74, 0.06)
    );
}

[data-theme="light"] .playstore-dialog-icon {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(37, 99, 235, 0.08));
    border-color: rgba(22, 163, 74, 0.15);
}

[data-theme="light"] .playstore-dialog-btn.cancel {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .playstore-dialog-btn.cancel:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .playstore-dialog-btn.confirm {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(37, 99, 235, 0.12));
    border-color: rgba(22, 163, 74, 0.25);
}

[data-theme="light"] .playstore-dialog-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(37, 99, 235, 0.2));
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.12);
}

/* WhatsApp Theme Overrides */
.whatsapp-theme .playstore-dialog-glow {
    background: conic-gradient(
        from 0deg,
        rgba(37, 211, 102, 0.08),
        rgba(18, 140, 126, 0.08),
        rgba(7, 94, 84, 0.08),
        rgba(37, 211, 102, 0.08)
    );
}

.whatsapp-theme .playstore-dialog-icon {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border-color: rgba(37, 211, 102, 0.15);
    animation: iconPulseWA 2s ease-in-out infinite;
}

@keyframes iconPulseWA {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.whatsapp-theme .playstore-dialog-btn.confirm {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.whatsapp-theme .playstore-dialog-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(18, 140, 126, 0.3));
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.15);
}

/* Light theme WhatsApp adjustments */
[data-theme="light"] .whatsapp-theme .playstore-dialog-glow {
    background: conic-gradient(
        from 0deg,
        rgba(37, 211, 102, 0.06),
        rgba(18, 140, 126, 0.06),
        rgba(7, 94, 84, 0.06),
        rgba(37, 211, 102, 0.06)
    );
}

[data-theme="light"] .whatsapp-theme .playstore-dialog-icon {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(18, 140, 126, 0.08));
    border-color: rgba(37, 211, 102, 0.15);
}

[data-theme="light"] .whatsapp-theme .playstore-dialog-btn.confirm {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(18, 140, 126, 0.12));
    border-color: rgba(37, 211, 102, 0.25);
    color: #128c7e;
}

[data-theme="light"] .whatsapp-theme .playstore-dialog-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.12);
}
