/* ============================================
   🦐 NUÔI TÔI - PREMIUM UI v3.0
   Glassmorphism + Modern + Beautiful
   ============================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary: #FF6B9D;
    --primary-dark: #E55A89;
    --secondary: #6C5CE7;
    --accent: #00CEC9;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E74C3C;

    /* Gradient */
    --gradient-main: linear-gradient(135deg, #FF6B9D 0%, #C44569 50%, #6C5CE7 100%);
    --gradient-hero: linear-gradient(180deg, #FFF5F7 0%, #F8F0FF 50%, #EEF2FF 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-btn: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
    --gradient-purple: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 100%);
    --gradient-section: linear-gradient(135deg, #FF6B9D 0%, #C44569 30%, #6C5CE7 70%, #00CEC9 100%);

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(255, 107, 157, 0.4);
    --shadow-purple: 0 0 40px rgba(108, 92, 231, 0.3);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-dark-bg: rgba(30, 30, 50, 0.9);

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--gradient-hero);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fix overflow cho tất cả sections */
.section,
.hero,
.footer {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -3;
}

.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -2;
    animation: float 20s ease-in-out infinite;
}

.bg-blur-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.bg-blur-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
}

.bg-blur-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -50px;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* ===== GLASS EFFECT ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.6rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
}

.nav-cta {
    background: var(--gradient-btn);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Dropdown */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        z-index: 100;
    }

    .nav.show {
        display: flex;
    }

    .nav-link {
        padding: 14px 20px;
        text-align: center;
        border-radius: var(--radius-lg);
    }

    .menu-toggle {
        display: flex;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-card {
    border-radius: var(--radius-2xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.hero-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.avatar-section {
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--gradient-main);
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.avatar-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hunger-meter {
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.meter-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.meter-value {
    font-weight: 700;
    color: var(--primary);
}

.meter-track {
    height: 10px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    animation: pulse-meter 2s ease-in-out infinite;
}

@keyframes pulse-meter {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(108, 92, 231, 0.15) 100%);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.badge-icon {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 8px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(108, 92, 231, 0.1) 100%);
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.stat-info {
    min-width: 0;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
}

.btn-glass {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-glass:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 157, 0.05);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-gradient {
    background: var(--gradient-section);
}

.section-light {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header.light {
    color: white;
}

.section-header.light .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 157, 0.15);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-header.light .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* ===== TRANSACTION LIST ===== */
.tx-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--gradient-dark);
    color: white;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #00FF88;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 0 10px #00FF88;
}

@keyframes pulse-live {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.tx-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.tx-list {
    max-height: 450px;
    overflow-y: auto;
}

.tx-empty {
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.tx-empty p {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.tx-empty span {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.tx-item:hover {
    background: rgba(255, 107, 157, 0.03);
}

.tx-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-name {
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.tx-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--success), #00CEC9);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.tx-msg {
    font-size: 0.85rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-meta {
    text-align: right;
    flex-shrink: 0;
}

.tx-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.tx-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.tx-footer {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: var(--gray-50);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tx-footer:hover {
    background: var(--gray-100);
}

/* ===== DONATE SECTION ===== */
.donate-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

/* QR Toggle Button */
.qr-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    background: white;
    border: none;
    border-radius: var(--radius-2xl);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

/* Shake animation - chỉ dùng rotate, không translateX để tránh lệch layout */
.qr-toggle.shake-it {
    animation: shake 2.5s ease-in-out infinite;
    transform-origin: center center;
}

.qr-toggle.shake-it:hover {
    animation: none;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    10% {
        transform: rotate(-2deg) scale(1.02);
    }

    20% {
        transform: rotate(2deg) scale(1.02);
    }

    30% {
        transform: rotate(-2deg) scale(1.01);
    }

    40% {
        transform: rotate(2deg) scale(1.01);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }
}

.qr-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.qr-toggle.active {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.toggle-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 200px;
    text-align: center;
}

.toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--gray-400);
}

.qr-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

/* QR Card Collapsible */
.donate-card {
    border-radius: var(--radius-2xl);
    padding: 40px;
    color: white;
    overflow: hidden;
    animation: slideDown 0.4s ease;
}

.donate-card.slide-up {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 40px;
    }

    to {
        opacity: 1;
        max-height: 1000px;
        padding: 40px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
    }

    to {
        opacity: 0;
        max-height: 0;
        padding: 0 40px;
    }
}

.qr-toggle.active+.donate-card {
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.qr-section {
    text-align: center;
    margin-bottom: 28px;
}

.qr-frame {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
}

.qr-hint {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bank-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.bank-value {
    font-weight: 600;
}

.bank-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--primary);
}

.transfer-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.note-icon {
    font-size: 1.5rem;
}

.note-content {
    font-size: 0.9rem;
}

.note-content code {
    display: block;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    font-family: monospace;
}

.amount-section {
    text-align: center;
}

.amount-label {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amount-btn {
    position: relative;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.amount-btn.active {
    background: white;
    color: var(--gray-900);
    border-color: white;
}

.amount-btn.popular {
    border-color: var(--warning);
}

.popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    background: var(--warning);
    color: var(--gray-900);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Custom Amount Input */
.custom-amount {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-label {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.custom-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.custom-suffix {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.custom-btn {
    padding: 14px 24px;
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--gray-900);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== BUDGET GRID ===== */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.budget-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s;
}

.budget-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.budget-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.budget-info {
    margin-bottom: 16px;
}

.budget-name {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.budget-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.budget-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.budget-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== LEADERBOARD ===== */
.leaderboard {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.lead-header {
    padding: 20px 28px;
    background: var(--gradient-main);
    text-align: center;
}

.lead-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.lead-list {
    padding: 12px 0;
}

.lead-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-400);
}

.lead-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.lead-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    transition: all 0.3s;
}

.lead-item:hover {
    background: var(--gray-50);
}

.lead-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gray-600);
    flex-shrink: 0;
}

.lead-rank.r1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
}

.lead-rank.r2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #404040;
}

.lead-rank.r3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #FFF;
}

.lead-info {
    flex: 1;
}

.lead-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.lead-count {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.lead-amount {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== COMMITS GRID ===== */
.commits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.commit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-xl);
}

.commit-icon {
    font-size: 1.5rem;
    color: var(--success);
}

.commit-content h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.commit-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--gray-400);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
}

.disclaimer p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.disclaimer strong {
    color: var(--warning);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-900);
    color: white;
    padding: 16px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-2xl);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .budget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-card {
        padding: 28px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .avatar-wrapper {
        width: 150px;
        height: 150px;
    }

    .hero-top {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .avatar-section {
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .budget-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commits-grid {
        grid-template-columns: 1fr;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .title-sub {
        font-size: 1.2rem;
    }

    .hero-card {
        padding: 20px;
        margin: 0;
    }

    .hero-top {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 24px;
    }

    .avatar-section {
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        width: 100%;
    }

    .hero-desc {
        text-align: center;
    }

    .stats-row {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        gap: 8px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .avatar-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .donate-card {
        padding: 24px;
    }

    .qr-image {
        width: 160px;
        height: 160px;
    }

    .tx-item {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .tx-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .tx-info {
        flex: 1;
        min-width: 0;
    }

    .tx-name {
        font-size: 1rem;
        font-weight: 700;
        flex-wrap: wrap;
        margin-bottom: 4px;
    }

    .tx-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .tx-msg {
        white-space: normal;
        word-break: break-word;
        font-size: 0.85rem;
        color: var(--gray-600);
        line-height: 1.4;
    }

    .tx-meta {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--gray-200);
    }

    .tx-amount {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--success);
    }

    .tx-time {
        font-size: 0.75rem;
        color: var(--gray-500);
    }

    .budget-card {
        padding: 16px;
    }

    .budget-icon {
        font-size: 2rem;
    }

    .custom-input-wrap {
        flex-wrap: wrap;
    }

    .custom-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .custom-btn {
        width: 100%;
    }

    /* Fix căn giữa mobile */
    .section-header,
    .section-title,
    .section-desc {
        text-align: center;
    }

    .tx-container,
    .donate-wrapper,
    .budget-grid,
    .features-grid,
    .commits-grid,
    .leaderboard {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .qr-toggle {
        width: 100%;
    }

    /* Ẩn blur background trên mobile để tránh overflow */
    .bg-blur {
        display: none;
    }
}

/* ===== PAGE SPECIFIC ===== */
.page-header {
    padding: 120px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

/* ===== SUMMARY CARDS ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.summary-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.summary-value.income {
    color: var(--success);
}

.summary-value.expense {
    color: var(--primary);
}

.summary-value.balance {
    color: var(--secondary);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===== BREAKDOWN ===== */
.breakdown {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.breakdown h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.bar-item:last-child {
    margin-bottom: 0;
}

.bar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bar-info {
    flex: 1;
}

.bar-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bar-name {
    font-weight: 600;
}

.bar-val {
    font-weight: 600;
    color: var(--primary);
}

.bar-bg {
    height: 10px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fg {
    height: 100%;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

/* ===== DISBURSEMENT LIST ===== */
.dis-list {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
}

.dis-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.dis-item:hover {
    background: var(--gray-50);
}

.dis-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dis-content {
    flex: 1;
    min-width: 0;
}

.dis-cat {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(108, 92, 231, 0.15));
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
}

.dis-desc {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.dis-time {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.dis-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.dis-proofs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.dis-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s;
}

.dis-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.no-proof {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 8px;
}

/* ===== REACTIONS & COMMENTS ===== */
.dis-reactions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.react-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.react-btn:hover {
    background: var(--pink-light);
    border-color: var(--primary);
    transform: scale(1.05);
}

.comment-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s;
}

.comment-toggle:hover {
    background: var(--blue-light);
    border-color: var(--secondary);
    color: var(--secondary);
}

.dis-comments {
    margin-top: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.comments-list {
    margin-bottom: 16px;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item strong {
    color: var(--gray-800);
    margin-right: 8px;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.comment-item p {
    margin-top: 6px;
    color: var(--gray-600);
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 20px 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
}

.comment-textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    min-height: 80px;
    resize: vertical;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-submit {
    align-self: flex-end;
    padding: 10px 24px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* ===== COMMENT MODAL ===== */
.comment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.comment-modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: white;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.3s ease;
    overflow: hidden;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.comment-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.comment-modal-close {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.comment-modal-close:hover {
    background: var(--gray-200);
}

.comment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    max-height: 300px;
}

.comment-modal-body .comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-modal-body .comment-item {
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s;
}

.comment-modal-body .comment-item.new {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(108, 92, 231, 0.1));
    border: 1px solid var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-modal-body .no-comments {
    text-align: center;
    color: var(--gray-400);
    padding: 40px 20px;
}

.comment-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-modal-footer .comment-input {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.comment-modal-footer .comment-textarea {
    min-height: 60px;
}

.comment-modal-footer .comment-submit {
    align-self: stretch;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ===== ADMIN ===== */
.admin-page {
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.admin-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
}

.admin-title {
    text-align: center;
    margin-bottom: 36px;
}

.admin-title h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.admin-title p {
    color: var(--gray-500);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--gray-50);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.upload-text {
    color: var(--gray-500);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.result {
    margin-top: 20px;
    padding: 18px;
    border-radius: var(--radius-lg);
    display: none;
    font-weight: 500;
}

.result.success {
    display: block;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
}

.result.error {
    display: block;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
}

.history-link {
    text-align: center;
    margin-top: 24px;
}

.history-link a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== CATEGORY COLORS ===== */
.cat-food {
    background: linear-gradient(135deg, #FFE4E6, #FFF1F2);
}

.cat-internet {
    background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
}

.cat-coffee {
    background: linear-gradient(135deg, #F3E8FF, #FAF5FF);
}

.cat-rent {
    background: linear-gradient(135deg, #D1FAE5, #ECFDF5);
}

.cat-entertainment {
    background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
}

.cat-other {
    background: linear-gradient(135deg, #E5E7EB, #F9FAFB);
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-card {
        padding: 28px 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}