﻿*{margin:0;padding:0;box-sizing:border-box}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f5f7fc;color:#1a2c3e;line-height:1.4}
a{text-decoration:none;color:inherit}
.pub-nav{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.08);padding:1rem 2rem;position:sticky;top:0;z-index:100;display:flex;justify-content:space-between;align-items:center}
.pub-nav-brand{font-size:1.4rem;font-weight:700;color:#0a2b42}
.pub-nav-brand span{color:#2c7da0}
.sidebar{background:#0a2b42 !important;width:220px !important;min-width:220px !important;display:flex;flex-direction:column;height:100vh}
.sidebar-brand{padding:18px 16px 14px;border-bottom:1px solid rgba(255,255,255,0.08)}
.sidebar-brand-name{font-size:13px;font-weight:700;color:#fff}
.sidebar-brand-sub{font-size:10px;color:rgba(255,255,255,0.4);margin-top:1px}
.sidebar-section{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:0.7px;color:rgba(255,255,255,0.3);padding:12px 16px 4px}
.nav-item{display:flex;align-items:center;gap:8px;padding:8px 16px;color:rgba(255,255,255,0.55);font-size:13px;border-radius:6px;margin:1px 8px;cursor:pointer;transition:background 0.15s,color 0.15s;text-decoration:none}
.nav-item:hover,.nav-item.active{background:rgba(255,255,255,0.1);color:#fff}
.sidebar-footer{padding:14px;border-top:1px solid rgba(255,255,255,0.08)}
.sidebar-user{font-size:11px;color:rgba(255,255,255,0.45);margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn{display:inline-flex;align-items:center;gap:5px;padding:.5rem 1.2rem;border-radius:40px;font-weight:600;font-size:13px;cursor:pointer;border:none;transition:all 0.2s;text-decoration:none;line-height:1.4}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:#2c7da0;color:#fff}
.btn-primary:hover{background:#1f5e7a;color:#fff}
.btn-outline{background:transparent;color:#2c7da0;border:1.5px solid #2c7da0}
.btn-outline:hover{background:#2c7da0;color:#fff}
.btn-ghost{background:transparent;color:#4a627a;border:1.5px solid #e2e8f0}
.btn-ghost:hover{background:#f5f7fc}
.btn-danger{background:#dc2626;color:#fff}
.btn-success{background:#16a34a;color:#fff}
.btn-sm{padding:.35rem 1rem;font-size:12px}
.btn-lg{padding:.75rem 1.8rem;font-size:15px}
.btn-full{width:100%;justify-content:center}
.container{max-width:1280px;margin:0 auto;padding:0 2rem}
.page{padding:2rem;max-width:1280px;margin:0 auto}
.page-hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}
.page-title{font-size:1.6rem;font-weight:700;color:#0a2b42;margin:0}
.page-sub{font-size:13px;color:#5b7a9a;margin:2px 0 0}
.card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.05);border:1px solid #edf2f7;transition:transform 0.2s,box-shadow 0.2s}
.card:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,0.08)}
.card-pad{padding:1.5rem}
.stats-bar{background:#fff;border-top:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;padding:1.8rem 2rem;margin-bottom:2rem}
.stats-flex{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1.5rem;text-align:center}
.stat-item h3{font-size:2rem;font-weight:700;color:#0a2b42}
.stat-item p{color:#5b7a9a;font-weight:500}
.stat{background:#fff;border-radius:24px;padding:1.5rem;box-shadow:0 2px 6px rgba(0,0,0,0.05);border:1px solid #edf2f7}
.stat-lbl{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#5b7a9a}
.stat-val{font-size:2rem;font-weight:800;color:#0a2b42;margin-top:4px;line-height:1.1}
.stat.navy{background:#0a2b42;border-color:#0a2b42}
.stat.navy .stat-lbl{color:rgba(255,255,255,.55)}
.stat.navy .stat-val{color:#fff}
.section-title{font-size:2rem;font-weight:700;color:#0a2b42;margin-bottom:.5rem}
.section-sub{color:#5b7a9a;margin-bottom:2rem;border-left:4px solid #2c7da0;padding-left:1rem}
.campaign-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2rem;margin:1.5rem 0 3rem}
.camp-card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.05);border:1px solid #edf2f7;display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit;transition:transform 0.2s,box-shadow 0.2s}
.camp-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(0,0,0,0.10);color:inherit}
.camp-banner{height:180px;background:#d9e6f2;display:flex;align-items:center;justify-content:center;overflow:hidden}
.camp-banner img{width:100%;height:100%;object-fit:cover}
.camp-banner-icon{font-size:2.5rem}
.camp-body{padding:1.5rem;flex:1;display:flex;flex-direction:column}
.camp-tag{font-size:.75rem;text-transform:uppercase;letter-spacing:1px;font-weight:600;color:#2c7da0;margin-bottom:.5rem;display:block}
.camp-title{font-size:1.1rem;font-weight:700;margin-bottom:.4rem;line-height:1.3}
.camp-desc{color:#4a627a;font-size:.9rem;margin-bottom:1rem;line-height:1.4;flex:1}
.prog-track{background:#e2e8f0;border-radius:30px;height:8px;width:100%;margin:.8rem 0}
.prog-fill{background:#2c7da0;height:8px;border-radius:30px}
.prog-meta{display:flex;justify-content:space-between;font-size:.9rem;font-weight:600;color:#4a627a}
.prog-meta .raised{color:#0a2b42}
.camp-footer{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid #edf2f7;margin-top:8px}
.camp-meta{font-size:11px;color:#5b7a9a;display:flex;align-items:center;gap:3px}
.form-group{margin-bottom:1rem}
.form-label{font-size:12px;font-weight:600;color:#1a2c3e;display:block;margin-bottom:5px}
.form-control,.form-select{width:100%;padding:.6rem .9rem;border:1.5px solid #e2e8f0;border-radius:12px;font-size:13px;color:#1a2c3e;background:#fff;outline:none;display:block;font-family:inherit;transition:border-color 0.15s}
.form-control:focus,.form-select:focus{border-color:#2c7da0;box-shadow:0 0 0 3px rgba(44,125,160,.10)}
.input-wrap{display:flex}
.input-pre{background:#f5f7fc;border:1.5px solid #e2e8f0;border-right:none;border-radius:12px 0 0 12px;padding:.6rem .9rem;font-size:13px;color:#5b7a9a;font-weight:600}
.input-wrap .form-control{border-radius:0 12px 12px 0}
.field-error{font-size:11px;color:#dc2626;margin-top:3px}
.auth-page{min-height:100vh;background:#f5f7fc;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-box{background:#fff;border:1px solid #edf2f7;border-radius:28px;padding:2.5rem 2rem;width:100%;max-width:440px;box-shadow:0 8px 20px rgba(0,0,0,0.05)}
.auth-hd{text-align:center;margin-bottom:1.8rem}
.auth-icon{font-size:2.5rem;color:#2c7da0;margin-bottom:.8rem}
.auth-title{font-size:1.4rem;font-weight:700;margin:0;color:#0a2b42}
.auth-sub{font-size:12px;color:#5b7a9a;margin:4px 0 0}
.badge{display:inline-flex;align-items:center;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;padding:3px 10px;border-radius:20px}
.badge-active{background:#dcfce7;color:#15803d}
.badge-pending{background:#fef9c3;color:#854d0e}
.badge-draft{background:#f3f4f6;color:#6b7280}
.badge-rejected{background:#fee2e2;color:#991b1b}
.badge-closed{background:#e5e7eb;color:#374151}
.tbl{width:100%;border-collapse:collapse}
.tbl th{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#5b7a9a;padding:10px 14px;border-bottom:1px solid #edf2f7;text-align:left;white-space:nowrap}
.tbl td{padding:12px 14px;border-bottom:1px solid #edf2f7;font-size:13px;vertical-align:middle}
.tbl tr:last-child td{border-bottom:none}
.tbl tbody tr:hover td{background:#f5f7fc}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;animation:fi .15s}
.modal-box{background:#fff;border-radius:28px;width:100%;max-width:460px;box-shadow:0 20px 60px rgba(0,0,0,.15);animation:su .2s}
.modal-hd{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.5rem 0}
.modal-title{font-size:1.1rem;font-weight:700;color:#0a2b42}
.modal-close{background:none;border:none;font-size:20px;color:#5b7a9a;cursor:pointer;line-height:1;padding:0}
.modal-bd{padding:1.2rem 1.5rem 1.5rem}
@keyframes fi{from{opacity:0}to{opacity:1}}
@keyframes su{from{transform:translateY(14px);opacity:0}to{transform:translateY(0);opacity:1}}
.amt-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.amt-btn{border:1.5px solid #e2e8f0;background:#fff;border-radius:12px;padding:8px 4px;font-size:13px;font-weight:600;color:#1a2c3e;cursor:pointer;text-align:center;transition:border-color 0.15s,background 0.15s;font-family:inherit}
.amt-btn:hover,.amt-btn.sel{border-color:#2c7da0;background:#e1f0f7;color:#1f5e7a}
.camp-detail-banner{width:100%;max-height:340px;object-fit:cover;display:block;border-radius:24px 24px 0 0}
.camp-detail-sidebar{background:#fff;border:1px solid #edf2f7;border-radius:24px;padding:1.8rem;box-shadow:0 4px 12px rgba(0,0,0,0.06);position:sticky;top:20px}
.raised-big{font-size:2rem;font-weight:800;color:#0a2b42}
.goal-sub{font-size:12px;color:#5b7a9a;margin-top:2px}
.big-track{height:8px;background:#e2e8f0;border-radius:30px;margin:14px 0 8px;overflow:hidden}
.big-fill{height:100%;background:#2c7da0;border-radius:30px}
.camp-stats-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:16px 0;padding:16px 0;border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7;text-align:center}
.cstat-val{font-size:1.3rem;font-weight:700;color:#0a2b42}
.cstat-lbl{font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:#5b7a9a}
.share-row{display:flex;gap:8px;margin-top:12px;align-items:center}
.share-link{flex:1;padding:8px 12px;border:1.5px solid #e2e8f0;border-radius:12px;font-size:11px;color:#5b7a9a;background:#f5f7fc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alert{padding:12px 16px;border-radius:12px;font-size:13px;margin-bottom:16px;border:1px solid}
.alert-success{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}
.alert-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.alert-info{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.alert-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.empty{text-align:center;padding:4rem 1rem}
.empty i{font-size:2.5rem;color:#e2e8f0;display:block;margin-bottom:12px}
.empty-title{font-size:1rem;font-weight:600;margin-bottom:6px;color:#0a2b42}
.empty-sub{font-size:13px;color:#5b7a9a}
.spin{display:inline-block;width:18px;height:18px;border:2px solid rgba(44,125,160,.15);border-top-color:#2c7da0;border-radius:50%;animation:rot .7s linear infinite;vertical-align:middle}
.spin-sm{width:13px;height:13px}
@keyframes rot{to{transform:rotate(360deg)}}
.loading{display:flex;align-items:center;justify-content:center;padding:4rem}
.success-screen{text-align:center;padding:1rem 0}
.success-icon{font-size:3rem;color:#16a34a;margin-bottom:12px}
.success-title{font-size:1.2rem;font-weight:700;margin-bottom:6px;color:#0a2b42}
.success-sub{font-size:13px;color:#5b7a9a;margin-bottom:1.2rem}
.ref-box{background:#f5f7fc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 16px;font-family:monospace;font-size:13px;color:#1a2c3e;margin-bottom:1.2rem;word-break:break-all}
footer{background:#fff;border-top:1px solid #e2e8f0;padding:2.5rem 2rem;margin-top:3rem}
.footer-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2rem;max-width:1280px;margin:0 auto}
.footer-copyright{text-align:center;margin-top:1.5rem;padding-top:1rem;border-top:1px solid #ecf3f9;color:#6c86a0;font-size:.85rem;max-width:1280px;margin:1.5rem auto 0}
@media(max-width:768px){.container,.page{padding:0 1rem}.sidebar{display:none}.campaign-grid{grid-template-columns:1fr}}
