@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-page: #f5f7fb;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-sub: #64748b;
    --border-soft: rgba(15, 23, 42, 0.08);
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --cyan: #0ea5e9;
    --emerald: #10b981;
    --amber: #f59e0b;
    --shadow-soft: 0 12px 32px -6px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 40px -8px rgba(79, 70, 229, 0.16), 0 8px 18px -4px rgba(15, 23, 42, 0.06);
    --shadow-pill: 0 8px 24px rgba(99, 102, 241, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Hiệu ứng sóng Radar & ánh sáng nền giống Henry07 */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #eef2ff 0%, #f8fafc 48%, #f1f5f9 100%);
}

.ripple-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.08);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    animation: pulseWave 9s ease-in-out infinite;
}

.ripple-1 { width: 520px; height: 520px; top: -120px; left: -100px; animation-delay: 0s; }
.ripple-2 { width: 680px; height: 680px; bottom: -180px; right: -120px; animation-delay: 3s; }
.ripple-3 { width: 420px; height: 420px; top: 35%; left: 50%; transform: translate(-50%, -50%); animation-delay: 1.5s; }

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

/* Topbar nổi kiểu Henry07 */
.top-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 50;
}

.clock-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.12);
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e1b4b;
    letter-spacing: 0.4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clock-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.clock-pill i {
    color: #8b5cf6;
    font-size: 1rem;
    animation: floatIcon 2.5s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.top-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 9px 15px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.flag-vn {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    background: #da251d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffff00;
    font-size: 9px;
}

.hamburger-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hamburger-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: var(--shadow-hover);
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Sidebar Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}
.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 315px;
    max-width: 86vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid var(--border-soft);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 45px rgba(15, 23, 42, 0.12);
}
.nav-drawer.open { transform: translateX(0); }

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

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.drawer-close:hover { background: #fee2e2; color: #ef4444; }

.drawer-links { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    transition: all 0.25s ease;
}
.drawer-item:hover, .drawer-item.active {
    background: #eef2ff;
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateX(-4px);
}

.drawer-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.drawer-icon.contact-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.drawer-title { font-weight: 700; font-size: 0.96rem; margin-bottom: 2px; }
.drawer-sub { font-size: 0.78rem; color: var(--text-sub); }
.drawer-arrow { margin-left: auto; font-size: 0.85rem; color: var(--text-sub); }

.drawer-footer { padding-top: 16px; border-top: 1px solid var(--border-soft); }
.status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 0.82rem;
    font-weight: 700;
}
.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: blinkDot 1.6s infinite;
}
@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

/* Khu vực Profile Hub Trung Tâm giống hệt Henry07 */
.hub-section {
    max-width: 680px;
    margin: 10px auto 34px;
    padding: 0 20px;
    text-align: center;
}

.brand-hero-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
    margin-bottom: 6px;
    animation: fadeUp 0.6s ease forwards;
}

.verified-tick {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1d9bf0;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.35);
    animation: popScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popScale {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.typewriter-sub {
    font-size: 1.02rem;
    font-weight: 600;
    color: #475569;
    min-height: 26px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #0f172a;
    animation: cursorFlash 0.8s infinite;
}
@keyframes cursorFlash {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.tg-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.tg-mini-pill i {
    color: #0ea5e9;
    font-size: 1.08rem;
}

.tg-mini-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.35);
}

/* Thẻ thống kê 3 cột giống Henry07 */
.stats-banner {
    background: linear-gradient(120deg, #ffffff 0%, #ffffff 55%, #e0f2fe 78%, #dcfce7 100%);
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s ease forwards;
}

.stat-col {
    text-align: center;
    position: relative;
}

.stat-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(15, 23, 42, 0.07);
}

.stat-num {
    font-size: clamp(1.3rem, 3.2vw, 1.65rem);
    font-weight: 900;
    color: #253878;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.os-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.88);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.os-ios { color: #0f172a; }
.os-and { color: #16a34a; }
.os-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* Các thẻ hành động xếp dọc (Action Cards giống Henry07) */
.action-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.hub-link-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.hub-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.hub-link-card:hover::before { left: 145%; }

.hub-link-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.25);
}

.hub-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.hub-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hub-link-card:hover .hub-icon-box { transform: scale(1.08) rotate(-4deg); }

.icon-purple {
    background: linear-gradient(135deg, #7e22ce 0%, #581c87 100%);
    box-shadow: 0 6px 16px rgba(126, 34, 206, 0.3);
}

.icon-blue {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.hub-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.hub-card-desc {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.hub-card-arrow {
    color: #64748b;
    font-size: 1rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.hub-link-card:hover .hub-card-arrow {
    transform: translateX(5px);
    color: #4f46e5;
}

/* Thanh chuyển Tab viên thuốc giống Henry07 */
.tab-switcher-wrap {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    gap: 6px;
}

.tab-pill-btn {
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}

.tab-pill-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.38);
}

.tab-pill-btn:not(.active):hover {
    background: #f1f5f9;
    color: #0f172a;
}

.auto-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.4px;
}

/* Container danh sách File & Mod */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 20px 50px;
}

.search-box {
    max-width: 540px;
    margin: 0 auto 28px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 22px 14px 48px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.25s;
}

.search-box input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12), var(--shadow-soft);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.empty-state {
    background: #ffffff;
    border: 1.5px dashed rgba(79, 70, 229, 0.25);
    border-radius: 24px;
    padding: 60px 24px;
    text-align: center;
    max-width: 620px;
    margin: 10px auto;
    box-shadow: var(--shadow-soft);
}

.empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.empty-state h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.empty-state p { color: var(--text-sub); font-size: 0.95rem; line-height: 1.6; }

/* Grid thẻ sản phẩm */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.25);
}

.card-thumb {
    height: 185px;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #6366f1;
    opacity: 0.65;
}

.badge-type {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.badge-file {
    background: rgba(255, 255, 255, 0.92);
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.badge-link {
    background: rgba(255, 255, 255, 0.92);
    color: #7c3aed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 1.16rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.35;
}

.card-desc {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.card-meta span { display: flex; align-items: center; gap: 5px; }

.btn {
    padding: 11px 18px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.42);
}

.btn-key {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}
.btn-key:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.42);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Admin Panel styles (tương thích sáng & sạch) */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.brand span { color: #4f46e5; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-glass {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}
.btn-glass:hover { background: #e2e8f0; }

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.btn-danger:hover { background: #dc2626; color: #ffffff; }

.panel {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .stats-banner { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .stat-col:not(:last-child)::after { display: none; }
    .tab-switcher-wrap { width: 100%; justify-content: center; }
    .tab-pill-btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: 0.85rem; }
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 7px; color: #334155; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    font-size: 0.94rem;
    outline: none;
    transition: all 0.2s;
}
.form-control:focus { border-color: #4f46e5; background: #ffffff; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
textarea.form-control { min-height: 95px; resize: vertical; }

.type-selector { display: flex; gap: 12px; margin-bottom: 18px; }
.type-option {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    transition: all 0.2s;
}
.type-option.active {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4f46e5;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid #f1f5f9; }
th { color: #64748b; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: 0.92rem; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

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

footer {
    text-align: center;
    padding: 28px 20px;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 600;
    border-top: 1px solid var(--border-soft);
    margin-top: 40px;
}
