/* =============================================
   SetlistJKT48, Main Stylesheet
   ============================================= */

/* ---- CSS VARIABLES ---- */
:root {
    --red: #E8002D;
    --red-dark: #C0001F;
    --red-light: #FF3355;
    --red-ultra-light: #fff0f3;
    --white: #ffffff;
    --sidebar-w: 280px;

    /* Light mode */
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --border: rgba(0, 0, 0, 0.08);
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #aeaeb2;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(0, 0, 0, 0.06);
    --nav-hover: rgba(232, 0, 45, 0.06);
    --nav-active-bg: rgba(232, 0, 45, 0.10);
    --overlay: rgba(0, 0, 0, 0.45);
    --hero-grad: linear-gradient(135deg, #fff0f3 0%, #fce4e8 50%, #f5f5f7 100%);
}

[data-theme="dark"] {
    --bg: #0a0a0b;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-2: #aeaeb2;
    --text-3: #6e6e73;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --sidebar-bg: #1c1c1e;
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --nav-hover: rgba(232, 0, 45, 0.10);
    --nav-active-bg: rgba(232, 0, 45, 0.18);
    --overlay: rgba(0, 0, 0, 0.7);
    --hero-grad: linear-gradient(135deg, #1a0608 0%, #2a0a0f 50%, #0a0a0b 100%);
}

@font-face {
    font-family: 'Balery DEMO';
    src: url('/assets/fonts/BaleryDEMO-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 99px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(232, 0, 45, 0.35);
    overflow: hidden;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 400;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.2s;
}

.nav-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--nav-hover);
    color: var(--red);
}

.nav-item.active {
    background: var(--nav-active-bg);
    color: var(--red);
    font-weight: 600;
}

/* Auth Card */
.sidebar-auth-card {
    margin: 12px;
    background: var(--surface-2);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.auth-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--red);
    background: rgba(232, 0, 45, 0.08);
    padding: 3px 8px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 8px;
}

.auth-desc {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.auth-desc strong {
    color: var(--text);
}

.btn-auth {
    width: 100%;
    background: var(--red);
    color: white;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-auth:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn-auth i {
    font-size: 16px;
}

.auth-logged {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--red);
}

.auth-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-email {
    font-size: 11px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   DESKTOP TOPBAR (top-right)
   ============================================= */
.desktop-topbar {
    background-color: var(--sidebar-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
    gap: 8px;
    z-index: 90;
}

.topbar-search-container {
    flex: 1;
    align-items: right;
    max-width: 300px;
    margin: 0 20px;
}

.topbar-search-form {
    position: relative;
    width: 100%;
}

.topbar-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #334155;
    transition: all 0.3s ease;
}

.topbar-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-2);
    transition: all 0.2s;
    box-shadow: var(--shadow);
    position: relative;
}

.icon-btn:hover {
    color: var(--red);
    background: var(--red-ultra-light);
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    border: 1.5px solid var(--surface);
}

.desktop-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 12px 4px 6px;
    box-shadow: var(--shadow);
}

.desktop-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
}

.btn-topbar-login {
    background: var(--red);
    color: white;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-topbar-login:hover {
    background: var(--red-dark);
}

/* =============================================
   MOBILE TOPBAR
   ============================================= */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 200;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hamburger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
    flex-shrink: 0;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.brand-icon-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    padding: 80px 32px 60px;
    max-width: 1920px;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.page-header p {
    font-size: 15px;
    color: var(--text-2);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    background: var(--surface);
    border-radius: 24px;
    padding: 28px 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    box-shadow: var(--shadow);
}

.hero-bg-blur {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-content {
    min-width: 600px;
    flex: 1;
    z-index: 1;
}

.hero-title {
    font-size: clamp(16px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 8px;
}

.hero-highlight {
    font-family: 'Balery DEMO', serif;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 520px;
}

.hero-sub strong {
    color: var(--text);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary {
    background: var(--red);
    color: white;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(232, 0, 45, 0.35);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 0, 45, 0.4);
}

.btn-primary i {
    font-size: 18px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}

.btn-secondary i {
    font-size: 18px;
}

/* Hero Visual */
.hero-visual {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    perspective: 1000px;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 30%;
    max-height: 200px;
    min-height: 50px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.6;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.active {
    flex: 0 0 40%;
    max-height: 260px;
    opacity: 1;
    transform: scale(1.1);
    z-index: 5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    font-size: 20px;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--red, #e8002d);
    color: white;
    border-color: var(--red, #e8002d);
}

.carousel-btn.prev {
    left: 5%;
}

.carousel-btn.next {
    right: 5%;
}

/* =============================================
   STATS ROW
   ============================================= */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}

.stat-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

/* =============================================
   SECTION BLOCK
   ============================================= */
.section-block {
    margin-bottom: 28px;
}

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

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.75;
}

/* =============================================
   MEMBER SCROLL (home)
   ============================================= */
.member-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.member-card {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.member-img-wrap {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 0, 45, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 16px;
}

.member-img-wrap:hover .member-overlay {
    opacity: 1;
}

.btn-oshi {
    background: white;
    color: var(--red);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.member-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.member-team {
    font-size: 11px;
    color: var(--text-2);
    text-align: center;
}

/* =============================================
   WIDGET ROW
   ============================================= */
.widget-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.widget-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.widget-icon {
    font-size: 22px;
    line-height: 1;
}

.widget-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* Oshi List */
.oshi-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.oshi-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oshi-item img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.oshi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.oshi-info strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.oshi-info span {
    font-size: 11px;
    color: var(--text-2);
}

.oshi-votes {
    font-size: 11px;
    font-weight: 600;
    color: var(--red);
}

/* Birthday Widget */
.birthday-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.birthday-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--red);
}

.birthday-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.birthday-team {
    font-size: 12px;
    color: var(--text-2);
}

.birthday-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-2);
}

.birthday-date i {
    color: var(--red);
    font-size: 14px;
}

.birthday-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.countdown-val {
    font-size: 18px;
    font-weight: 900;
    color: var(--red);
}

.countdown-lbl {
    font-size: 10px;
    color: var(--text-2);
    margin-right: 6px;
}

.bday-upcoming {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bday-next-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bday-next-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-2);
}

.bday-next-item span:last-child {
    font-weight: 600;
    color: var(--text);
}

/* Show Widget */
.show-feature {
    margin-bottom: 14px;
}

.show-badge-live {
    display: inline-block;
    background: rgba(232, 0, 45, 0.1);
    color: var(--red);
    border: 1px solid rgba(232, 0, 45, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.show-title-main {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.show-sub {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 10px;
}

.show-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.show-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
}

.show-meta-item i {
    color: var(--red);
    font-size: 14px;
}

.btn-show-watch {
    width: 100%;
    background: var(--red);
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-show-watch:hover {
    background: var(--red-dark);
}

.show-upcoming-list {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.show-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-2);
}

.show-list-item span:last-child {
    font-weight: 600;
    color: var(--text);
}

/* =============================================
   NEWS GRID
   ============================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.news-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.news-img-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.news-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.news-body {
    padding: 14px;
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time {
    font-size: 11px;
    color: var(--text-3);
}

/* =============================================
   MEMBER GRID (member page)
   ============================================= */
.team-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--red);
    border-color: var(--red);
}

.filter-btn.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

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

.member-grid-card {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

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

.mgc-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.mgc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 0, 45, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.mgc-img:hover .mgc-overlay {
    opacity: 1;
}

.btn-oshi-full,
.btn-profile-full {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.15s;
}

.btn-oshi-full {
    background: white;
    color: var(--red);
}

.btn-profile-full {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-oshi-full:hover,
.btn-profile-full:hover {
    transform: scale(1.05);
}

.mgc-info {
    padding: 12px 14px;
}

.mgc-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.mgc-team {
    font-size: 12px;
    color: var(--text-2);
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 500px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--red);
}

.profile-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 10px;
}

.profile-badge {
    background: var(--red);
    color: white;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
}

.login-prompt-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 420px;
}

.lp-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-prompt-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.login-prompt-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* =============================================
   LOGIN MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--surface);
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s;
    border: 1px solid var(--border);
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-2);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-brand .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.modal-brand span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-google-login {
    width: 100%;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.btn-google-login:hover {
    background: var(--bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.modal-note {
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
}

.modal-note a {
    color: var(--red);
}

/* =============================================
   SIDEBAR OVERLAY (mobile)
   ============================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* =============================================
   RESPONSIVE, TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {

    /* Topbar visible, sidebar hidden by default */
    .topbar {
        display: flex;
    }

    .desktop-topbar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 76px 16px 60px;
    }

    .hero {
        padding: 36px 32px;
    }

    .hero-title {
        font-size: 32px;
    }

    .sidebar {
        top: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        min-height: 64px;
        padding: 0;
        flex-direction: row;
        /* Berbaris horizontal */
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #f1f5f9;
        background-color: rgba(255, 255, 255, 0.96);
        /* Efek blur kaca tipis */
        backdrop-filter: blur(8px);
    }

    /* 2. Sembunyikan Logo Brand & Kartu Login Auth */
    .sidebar-brand,
    .sidebar-auth-card {
        display: none !important;
    }

    /* 3. Atur Navigasi Menjadi Lebar Penuh (Horizontal) */
    .sidebar-nav {
        width: 100%;
        flex-direction: row;
        /* Berbaris ke samping */
        justify-content: space-around;
        /* Jarak merata rata kiri-kanan */
        gap: 0;
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
        /* Support poni bawah iOS */
    }

    /* 4. Ubah Desain Item Menu Menjadi Mode App */
    .sidebar-nav .nav-item {
        flex-direction: column;
        /* Icon di atas, teks di bawah */
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        padding: 6px 0;
        font-size: 11px;
        /* Ukuran teks menu bawah lebih kecil */
        color: #64748b;
        border-radius: 0;
    }

    /* Ukuran Icon Pinhole di Menu Bawah */
    .sidebar-nav .nav-item i {
        font-size: 22px;
    }

    /* Matikan background box aktif di mobile agar bersih seperti app modern */
    .sidebar-nav .nav-item.active {
        background-color: transparent;
        color: #e8002d;
    }

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

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

    .widget-row>.widget-card:last-child {
        grid-column: 1 / -1;
    }

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

    .carousel-track {
        gap: 10px;
    }

    .carousel-slide {
        flex: 0 0 25%;
    }

    .carousel-slide.active {
        flex: 0 0 65%;
        max-height: 200px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .carousel-btn.prev {
        left: 1%;
    }

    .carousel-btn.next {
        right: 1%;
    }
}

/* =============================================
   RESPONSIVE, MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {

    /* Topbar visible, sidebar hidden by default */
    .topbar {
        display: flex;
    }

    .desktop-topbar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 76px 16px 60px;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        padding: 28px 22px;
        border-radius: 18px;
        text-align: center;
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 14px;
    }

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

    /* Stats */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Widgets */
    .widget-row {
        grid-template-columns: 1fr;
    }

    .widget-row>.widget-card:last-child {
        grid-column: auto;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Member grid */
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Profile */
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .login-prompt-card {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 18px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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