:root {
    --bg-dark: #0b0d14;
    --surface-glass: rgba(20, 24, 38, 0.72);
    --surface-card: rgba(26, 31, 48, 0.75);
    --surface-input: rgba(15, 18, 28, 0.8);
    --surface-hover: rgba(36, 43, 66, 0.85);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-glow: rgba(251, 191, 36, 0.25);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --gold-primary: #fbbf24;
    --gold-dark: #d97706;
    --rose-primary: #f43f5e;
    --violet-primary: #8b5cf6;
    --emerald-active: #10b981;
    --red-expired: #ef4444;
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(251, 191, 36, 0.15);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--gold-primary), transparent 70%);
}

.bg-glow-2 {
    top: 200px;
    right: -150px;
    background: radial-gradient(circle, var(--violet-primary), transparent 70%);
}

/* Topbar Navigation */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 36px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(11, 13, 20, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

.brand-highlight {
    color: var(--gold-primary);
    margin-left: 2px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Layout Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 60px;
    flex: 1;
    position: relative;
    z-index: 1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0d0f17;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    filter: brightness(1.08);
}

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

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(251, 191, 36, 0.05);
}

.btn-logout {
    color: #f87171;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Hero Section (Index Page) */
.hero-section {
    text-align: center;
    padding: 40px 20px 50px;
    max-width: 780px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-primary), #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-icon.gold {
    background: rgba(251, 191, 36, 0.12);
    color: var(--gold-primary);
}

.feature-icon.rose {
    background: rgba(244, 63, 94, 0.12);
    color: var(--rose-primary);
}

.feature-icon.violet {
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-primary);
}

.feature-card h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Header & Titles */
.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-family: var(--font-title);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-top: 4px;
}

/* Card Grid & Guild Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.guild-card {
    background: var(--surface-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.guild-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.guild-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.guild-icon,
.header-guild-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
}

.guild-icon-placeholder,
.header-guild-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #374151, #1f2937);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.4rem;
    border: 1px solid var(--border-glass);
}

.guild-info {
    overflow: hidden;
}

.guild-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-id {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.guild-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.guild-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--emerald-active);
    font-weight: 600;
}

.guild-badge svg {
    width: 14px;
    height: 14px;
}

.guild-action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.guild-action-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.guild-card:hover .guild-action-link svg {
    transform: translateX(4px);
}

/* Guild Settings Header */
.guild-header {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(16px);
}

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

.guild-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Quick Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.stat-pill {
    background: rgba(15, 18, 28, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-icon.gold { background: rgba(251, 191, 36, 0.15); color: var(--gold-primary); }
.stat-icon.violet { background: rgba(139, 92, 246, 0.15); color: var(--violet-primary); }
.stat-icon.rose { background: rgba(244, 63, 94, 0.15); color: var(--rose-primary); }

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-family: var(--font-title);
    font-size: 0.98rem;
    font-weight: 700;
}

/* Tab Navigation - Modern Glass Segmented Control */
.tab-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    padding: 6px;
    background: rgba(15, 18, 28, 0.72);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(245, 158, 11, 0.06));
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.tab-btn.active .tab-icon {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.tab-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Glass Card & Forms */
.glass-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.four-col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header-icon svg {
    width: 22px;
    height: 22px;
}

.card-header-icon.gold { background: rgba(251, 191, 36, 0.15); color: var(--gold-primary); }
.card-header-icon.violet { background: rgba(139, 92, 246, 0.15); color: var(--violet-primary); }
.card-header-icon.rose { background: rgba(244, 63, 94, 0.15); color: var(--rose-primary); }

.card-header h2,
.card-header h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
}

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

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.form-select option {
    background: #111420;
    color: var(--text-primary);
}

/* Data Table */
.table-section {
    margin-top: 24px;
}

.table-responsive {
    overflow-x: auto;
}

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

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

.data-table th {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.voucher-title {
    font-weight: 600;
    color: var(--gold-primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-active);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-active .badge-dot {
    background: var(--emerald-active);
    box-shadow: 0 0 6px var(--emerald-active);
}

.badge-expired {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red-expired);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-expired .badge-dot {
    background: var(--red-expired);
}

.select-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    width: auto;
}

/* Alerts */
.alerts {
    margin-bottom: 20px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeIn 0.25s ease;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-icon svg {
    width: 20px;
    height: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    color: #f87171;
    text-align: left;
    font-size: 0.92rem;
}

.warning-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: var(--surface-glass);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.empty-icon svg {
    width: 28px;
    height: 28px;
}

.empty-state h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 440px;
    margin: 0 auto;
}

.inline-empty {
    padding: 24px 16px;
    border: none;
}

/* Movie Filter Toolbar */
.movie-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-pill.active {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: var(--gold-primary);
}

.filter-count {
    font-size: 0.76rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    max-width: 480px;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    padding-left: 36px;
}

.sort-select {
    min-width: 170px;
    width: auto;
}

/* Movie Gallery Grid & Poster Cards */
.movie-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

.movie-poster-card {
    background: var(--surface-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.movie-poster-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.movie-poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f121c;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-poster-card:hover .movie-poster-img {
    transform: scale(1.06);
}

.movie-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: radial-gradient(circle, #1f2538, #0f121c);
    color: var(--text-muted);
}

.movie-poster-placeholder svg {
    width: 36px;
    height: 36px;
}

.movie-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.badge-todo {
    background: rgba(15, 18, 28, 0.88);
    color: var(--gold-primary);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-watched {
    background: rgba(15, 18, 28, 0.88);
    color: var(--emerald-active);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-watching {
    background: rgba(15, 18, 28, 0.88);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-favorite {
    background: rgba(15, 18, 28, 0.88);
    color: var(--rose-primary);
    border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Season & Episode Progress Bar */
.season-episode-bar {
    background: rgba(15, 18, 28, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    margin: 6px 0;
}

.season-ep-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ep-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ep-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 2px;
}

.ep-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.ep-btn:hover {
    background: var(--gold-primary);
    color: #0b0d14;
    border-color: var(--gold-primary);
}

.ep-input {
    width: 38px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    color: var(--gold-primary);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 2px;
}

.movie-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 18, 28, 0.88);
    color: var(--gold-primary);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

/* Voucher Thumbnail & Edit Form */
.voucher-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.voucher-thumb-placeholder {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.table-action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-voucher-row td {
    padding: 12px 16px !important;
    background: rgba(15, 18, 28, 0.6) !important;
}

.edit-voucher-card {
    padding: 16px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.15);
}

.edit-voucher-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.movie-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.movie-card-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-title a.imdb-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.movie-card-title a.imdb-link:hover {
    color: var(--gold-primary);
}

.movie-card-year {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.movie-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(11, 13, 20, 0.9);
}

/* Metric Card Styling */
.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    opacity: 0.6;
}

.metric-body {
    margin-top: 10px;
}

.metric-value {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.metric-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .four-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .topbar {
        padding: 14px 18px;
    }

    .two-col,
    .three-col,
    .four-col {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .guild-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .movie-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
}

/* Activity Log Badges */
.badge-category-connection {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-category-movies {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-category-shows {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-category-vouchers {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-category-voice {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-category-board {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-ev-info {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

.badge-ev-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-active);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ev-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-ev-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sleek Top Progress Bar & Toast Notification */
.action-progress-container {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 540px;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.action-progress-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.action-progress-card {
    background: rgba(15, 18, 28, 0.94);
    border: 1px solid var(--gold-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(251, 191, 36, 0.25);
    pointer-events: auto;
}

.action-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.action-progress-title {
    font-weight: 700;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-progress-percent {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.action-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.action-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-primary), #f59e0b, #ec4899);
    border-radius: 3px;
    box-shadow: 0 0 12px var(--gold-primary);
    transition: width 0.2s ease-out;
}

.spin-icon {
    animation: spin 1.2s linear infinite;
}

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

