:root {
    --bg-dark: #07070a;
    --bg-surface: rgba(255, 255, 255, 0.02);
    --primary-blue: #00e5ff;
    --primary-blue-glow: rgba(0, 229, 255, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0b5;
    --glass-border: rgba(0, 229, 255, 0.3);
    --glass-border-light: rgba(255, 255, 255, 0.08);
    --success: #00e676;
    --danger: #ff1744;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
                #07070a;
}

#app-container { padding-bottom: 90px; }

/* Ultra Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border-light);
    border-radius: 20px;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 45px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }

#nav-bar, #nav-bar-admin {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px 12px;
}
.nav-item i {
    font-size: 1.35rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.nav-item.active { color: var(--primary-blue); }
.nav-item.active i {
    transform: translateY(-5px) scale(1.15);
    text-shadow: 0 0 15px var(--primary-blue-glow);
}
.nav-item:hover:not(.active) {
    color: var(--text-main);
    transform: translateY(-2px);
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(10deg) rotateY(-10deg); }
    50% { transform: translateY(-15px) rotateX(15deg) rotateY(-5deg); }
    100% { transform: translateY(0px) rotateX(10deg) rotateY(-10deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(0,229,255,0.4), inset 0 0 10px rgba(0, 229, 255, 0.1); }
    50% { box-shadow: 0 0 35px rgba(0,229,255,0.6), inset 0 0 20px rgba(0, 229, 255, 0.2); }
    100% { box-shadow: 0 0 20px rgba(0,229,255,0.4), inset 0 0 10px rgba(0, 229, 255, 0.1); }
}

.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    background: radial-gradient(circle at center, rgb(15, 15, 23) 0%, rgb(5, 5, 8) 100%);
    overflow: hidden;
    margin-top: -75px; 
}
.login-card {
    width: 380px;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: rotateX(10deg) rotateY(-10deg);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}
.login-card:hover { transform: rotateX(0deg) rotateY(0deg) scale(1.02); animation: none; box-shadow: 0 15px 45px rgba(0, 229, 255, 0.2); }
.brand-logo-text { font-size: 3rem; font-weight: 800; text-align: center; background: linear-gradient(135deg, #ffffff, var(--primary-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0px; letter-spacing: 2px; }

/* Premium Inputs */
.input-group { position: relative; margin-top: 10px; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary-blue); box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.2); background: rgba(255, 255, 255, 0.04); }
.input-group label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #07070a;
    padding: 0 8px;
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Primary buttons overhaul */
.btn-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}
.btn-primary:active { transform: scale(0.96); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(0, 229, 255, 0.4); }

.btn-secondary { background: rgba(255,255,255,0.03); color: var(--text-main); border: 1px solid rgba(255,255,255,0.15); padding: 14px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s; backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }

/* Campaign Cards & Home */
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.campaign-card { padding: 25px; cursor: pointer; transform-style: preserve-3d; perspective: 1000px; position: relative; overflow:hidden; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease; }
.campaign-card:hover { transform: translateY(-10px) rotateX(3deg) scale(1.02); box-shadow: 0 25px 50px rgba(0, 229, 255, 0.15); border-color: var(--primary-blue); }
.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.campaign-logo { width: 55px; height: 55px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 15px rgba(0,0,0,0.5); background: #fff; }
.card-title-box { flex: 1; }
.campaign-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 5px; }
.price-box { background: var(--primary-blue); color: #000; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 800; display: inline-block; box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); }
.fund-stats { display: flex; justify-content: space-between; background: rgba(0,0,0,0.4); padding: 12px 18px; border-radius: 10px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.stat { display: flex; flex-direction: column; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.05rem; font-weight: 700; color: #fff; }
.campaign-desc-short { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.campaign-desc-full { font-size: 1rem; color: rgba(255, 255, 255, 0.9); line-height: 1.7; margin-bottom: 25px; padding: 20px; background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.05), transparent 80%); border-radius: 12px; border: 1px solid rgba(0, 229, 255, 0.1); }
.back-btn { background: transparent; color: var(--primary-blue); border: none; font-size: 1rem; font-weight: 600; cursor: pointer; margin-bottom: 25px; display: flex; align-items: center; gap: 8px; transition: transform 0.2s; padding: 5px; }
.back-btn:hover { transform: translateX(-8px); }

input[type="file"]::file-selector-button { background: var(--primary-blue); border: none; color: #000; padding: 10px 18px; border-radius: 8px; font-weight: 800; cursor: pointer; margin-right: 15px; transition: all 0.2s; }
input[type="file"]::file-selector-button:hover { background: #ffffff; box-shadow: 0 0 15px var(--primary-blue-glow); }

.lang-btn { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); color:var(--text-muted); padding:6px 14px; border-radius:8px; font-size:0.8rem; cursor:pointer; transition:all 0.3s; font-weight:600; }
.lang-btn:hover { border-color:var(--primary-blue); color:var(--primary-blue); }
.lang-active { background:var(--primary-blue) !important; color:#000 !important; border-color:var(--primary-blue) !important; }
