/* utiles.net — Entraide — Shared CSS */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --green:#0F6E56;--green-l:#E1F5EE;--green-d:#085041;
  --blue:#185FA5;--blue-l:#E6F1FB;--blue-d:#0C447C;
  --purple:#6D28D9;--purple-l:#EDE9FE;--purple-d:#4C1D95;
  --amber:#B45309;--amber-l:#FEF3C7;--amber-d:#78350F;
  --red:#A32D2D;--red-l:#FCEBEB;--red-d:#791F1F;
  --teal:#0D9488;--teal-l:#CCFBF1;--teal-d:#0F766E;
  --pink:#BE185D;--pink-l:#FCE7F3;--pink-d:#831843;
  --gray-l:#F1EFE8;--gray-d:#2C2C2A;
  --text:#1a1a18;--muted:#6b6b67;
  --border:rgba(0,0,0,.09);--border-md:rgba(0,0,0,.15);
  --bg:#f9f9f7;--white:#fff;
  --r:10px;--r-lg:14px;--r-xl:20px;
  --shadow:0 1px 4px rgba(0,0,0,.07);
  --shadow-md:0 4px 16px rgba(0,0,0,.1);
}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
h1,h2,h3{font-weight:700;line-height:1.3}

.wrap{max-width:1320px;margin:0 auto;padding:0 40px}
.wrap-sm{max-width:760px;margin:0 auto;padding:0 40px}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:var(--r);font-size:14px;font-weight:500;border:1px solid transparent;cursor:pointer;transition:all .15s;white-space:nowrap;text-decoration:none;font-family:inherit}
.btn:active{transform:scale(.98)}
.btn-green{background:var(--green);color:#fff;border-color:var(--green)}
.btn-green:hover{background:var(--green-d);color:#fff}
.btn-blue{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn-blue:hover{opacity:.88;color:#fff}
.btn-purple{background:var(--purple);color:#fff;border-color:var(--purple)}
.btn-purple:hover{opacity:.88;color:#fff}
.btn-outline{background:var(--white);color:var(--text);border-color:var(--border-md)}
.btn-outline:hover{background:var(--gray-l)}
.btn-ghost{background:transparent;color:var(--muted);border-color:transparent}
.btn-ghost:hover{background:var(--gray-l);color:var(--text)}
.btn-danger{background:var(--red);color:#fff;border-color:var(--red)}
.btn-sm{padding:5px 12px;font-size:13px}
.btn-lg{padding:12px 24px;font-size:15px}
.btn-icon{width:36px;height:36px;padding:0;justify-content:center}

/* Badges */
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:500}
.badge-offer{background:var(--green-l);color:var(--green-d)}
.badge-request{background:var(--blue-l);color:var(--blue-d)}
.badge-dream{background:var(--purple-l);color:var(--purple-d)}
.badge-fulfilled{background:var(--pink-l);color:var(--pink-d)}
.badge-active{background:var(--green-l);color:var(--green-d)}
.badge-paused{background:var(--amber-l);color:var(--amber-d)}

/* Trust badges */
.trust-1{background:#F3F4F6;color:#374151}
.trust-2{background:var(--blue-l);color:var(--blue-d)}
.trust-3{background:var(--green-l);color:var(--green-d)}
.trust-4{background:var(--amber-l);color:var(--amber-d)}

/* Header */
.en-header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.en-header-inner{display:flex;align-items:center;justify-content:space-between;height:58px;gap:12px}
.en-logo{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}
.en-logo img{height:34px;width:auto}
.en-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.en-nav-link{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:4px;padding:5px 10px;border-radius:8px;transition:all .15s}
.en-nav-link:hover{color:var(--text);background:var(--gray-l)}
.en-nav-link.active{color:var(--green);background:var(--green-l)}
.notif-badge{background:var(--red);color:#fff;font-size:10px;font-weight:700;width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-left:-6px;margin-top:-10px}
.lang-sw{display:flex;border:1px solid var(--border-md);border-radius:8px;overflow:hidden}
.lang-sw a{font-size:12px;font-weight:600;padding:4px 10px;color:var(--muted);transition:all .15s}
.lang-sw a.on{background:var(--text);color:#fff}

/* Hero */
.en-hero{width:100%;min-height:380px;padding:72px 0 56px;text-align:center;color:#fff;display:flex;align-items:center;position:relative;overflow:hidden}
.en-hero h1{font-size:36px;margin-bottom:12px;letter-spacing:-.5px;position:relative;z-index:2}
.en-hero p{font-size:16px;opacity:.9;max-width:540px;margin:0 auto 28px;line-height:1.7;position:relative;z-index:2}
.en-hero-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:14px;position:relative;z-index:2}
.en-hero-btn{padding:11px 22px;border-radius:var(--r);font-size:14px;font-weight:600;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:all .15s}
.en-hero-btn-white{background:#fff;color:var(--green)}
.en-hero-btn-white:hover{opacity:.9;color:var(--green)}
.en-hero-btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.5)}
.en-hero-btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.1);color:#fff}
.en-hero-note{font-size:12px;opacity:.7;position:relative;z-index:2}

/* Type tabs */
.type-strip{background:var(--white);border-bottom:1px solid var(--border);padding:0}
.type-tabs{display:flex;overflow-x:auto;scrollbar-width:none}
.type-tabs::-webkit-scrollbar{display:none}
.type-tab{flex:none;padding:14px 20px;font-size:14px;font-weight:500;color:var(--muted);border-bottom:3px solid transparent;display:flex;align-items:center;gap:6px;white-space:nowrap;transition:all .15s;cursor:pointer;text-decoration:none;background:none;border-top:none;border-left:none;border-right:none;font-family:inherit}
.type-tab:hover{color:var(--text)}
.type-tab.active-all{color:var(--text);border-bottom-color:var(--text)}
.type-tab.active-offer{color:var(--green);border-bottom-color:var(--green)}
.type-tab.active-request{color:var(--blue);border-bottom-color:var(--blue)}
.type-tab.active-dream{color:var(--purple);border-bottom-color:var(--purple)}

/* Filters */
.en-filters{background:var(--white);border-bottom:1px solid var(--border);padding:12px 0;position:sticky;top:58px;z-index:90}
.filter-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.search-wrap{position:relative;flex:1;min-width:200px}
.search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:16px;pointer-events:none}
.search-input{width:100%;height:38px;padding:0 12px 0 36px;border-radius:var(--r);border:1px solid var(--border-md);font-size:14px;background:var(--white);color:var(--text);outline:none;font-family:inherit}
.search-input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(15,110,86,.1)}
.cat-select{height:38px;padding:0 10px;border-radius:var(--r);border:1px solid var(--border-md);font-size:14px;background:var(--white);color:var(--text);font-family:inherit}
.results-info{font-size:13px;color:var(--muted);margin-top:8px}

/* Cards */
.en-main{padding:28px 0 60px}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.post-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);padding:18px;transition:all .2s;display:flex;flex-direction:column;gap:10px;position:relative}
.post-card:hover{border-color:var(--border-md);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.post-card.pinned{border-color:var(--amber);border-width:2px}
.post-card-pin{position:absolute;top:12px;right:12px;font-size:16px}
.post-card-top{display:flex;align-items:flex-start;gap:10px}
.post-cat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.post-title{font-size:14px;font-weight:600;line-height:1.35;flex:1}
.post-desc{font-size:13px;color:var(--muted);line-height:1.55;flex:1}
.post-footer{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--border);margin-top:auto}
.post-meta{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:4px}
.avatar-sm{width:24px;height:24px;border-radius:50%;object-fit:cover;flex-shrink:0}
.avatar-initials{width:24px;height:24px;border-radius:50%;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0}

/* Empty state */
.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-state i{font-size:48px;display:block;margin-bottom:12px;opacity:.4}
.empty-state p{font-size:15px;margin-bottom:16px}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:6px;margin-top:28px;flex-wrap:wrap}
.page-btn{width:38px;height:38px;border-radius:var(--r);border:1px solid var(--border-md);background:var(--white);color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;transition:all .15s;text-decoration:none}
.page-btn:hover{background:var(--gray-l);color:var(--text)}
.page-btn.active{background:var(--green);color:#fff;border-color:var(--green)}

/* Post form */
.form-page{background:var(--bg);min-height:100vh;padding:32px 0 60px}
.form-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);padding:28px;margin-bottom:16px}
.form-card-title{font-size:15px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.form-row{margin-bottom:16px}
.form-label{display:block;font-size:13px;font-weight:500;margin-bottom:6px}
.form-label .req{color:var(--red);margin-left:2px}
.form-label .opt{color:var(--muted);font-weight:400;font-size:12px}
.form-input,.form-select,.form-textarea{width:100%;padding:10px 14px;border:1px solid var(--border-md);border-radius:var(--r);font-size:14px;font-family:inherit;color:var(--text);background:var(--white);outline:none;transition:border-color .15s,box-shadow .15s}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(15,110,86,.1)}
.form-textarea{min-height:110px;resize:vertical;line-height:1.6}
.form-hint{font-size:12px;color:var(--muted);margin-top:5px}
.type-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.type-choice{display:block;cursor:pointer}
.type-choice input{display:none}
.type-choice-inner{padding:14px 10px;border:2px solid var(--border-md);border-radius:var(--r-lg);text-align:center;transition:all .15s}
.type-choice-inner i{font-size:26px;display:block;margin-bottom:6px}
.type-choice-inner strong{font-size:13px;display:block;margin-bottom:3px}
.type-choice-inner span{font-size:11px;color:var(--muted)}
.type-choice.sel-offer .type-choice-inner{border-color:var(--green);background:var(--green-l)}
.type-choice.sel-request .type-choice-inner{border-color:var(--blue);background:var(--blue-l)}
.type-choice.sel-dream .type-choice-inner{border-color:var(--purple);background:var(--purple-l)}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.cat-opt{padding:10px 6px;border:1.5px solid var(--border-md);border-radius:10px;text-align:center;font-size:12px;cursor:pointer;transition:all .15s}
.cat-opt:hover{border-color:var(--green);background:var(--green-l)}
.cat-opt.selected{border-color:var(--green);background:var(--green-l);font-weight:500}
.cat-opt-icon{font-size:20px;display:block;margin-bottom:4px}

/* Item page */
.item-page{background:var(--bg);min-height:100vh;padding:28px 0 60px}
.item-grid{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}
.item-main{display:flex;flex-direction:column;gap:16px}
.item-sidebar{display:flex;flex-direction:column;gap:14px;position:sticky;top:80px}
.item-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px}

/* Chat */
.chat-wrap{background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;height:460px}
.chat-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;flex-shrink:0}
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.chat-msg{display:flex;gap:8px;align-items:flex-end;max-width:85%}
.chat-msg.mine{flex-direction:row-reverse;margin-left:auto}
.chat-bubble{padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;word-break:break-word}
.chat-bubble-other{background:var(--gray-l);color:var(--text);border-bottom-left-radius:4px}
.chat-bubble-mine{background:var(--green);color:#fff;border-bottom-right-radius:4px}
.chat-time{font-size:10px;color:var(--muted);margin-top:3px;text-align:right}
.chat-time-other{text-align:left}
.chat-input-wrap{padding:12px 14px;border-top:1px solid var(--border);display:flex;gap:8px;align-items:flex-end;flex-shrink:0}
.chat-input{flex:1;min-height:38px;max-height:120px;padding:9px 14px;border:1px solid var(--border-md);border-radius:20px;font-size:14px;font-family:inherit;outline:none;resize:none;line-height:1.5}
.chat-input:focus{border-color:var(--green)}
.chat-send-btn{width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s}
.chat-send-btn:hover{background:var(--green-d)}
.chat-send-btn:disabled{opacity:.4;cursor:not-allowed}
.typing-indicator{font-size:12px;color:var(--muted);padding:4px 16px;display:none}
.chat-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);text-align:center;padding:20px}
.chat-empty i{font-size:36px;margin-bottom:8px;opacity:.4}

/* Profile */
.profile-page{background:var(--bg);min-height:100vh;padding:28px 0 60px}
.profile-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);padding:24px;margin-bottom:16px}
.avatar-upload{position:relative;width:80px;height:80px;cursor:pointer}
.avatar-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:3px solid var(--border)}
.avatar-big-initials{width:80px;height:80px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;border:3px solid var(--border)}
.avatar-edit-btn{position:absolute;bottom:0;right:0;width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;border:2px solid #fff}
.progress-bar-wrap{background:var(--border);border-radius:4px;height:8px;overflow:hidden;margin:8px 0}
.progress-bar-fill{height:100%;background:var(--green);border-radius:4px;transition:width .5s}
.profile-check{display:flex;align-items:center;gap:8px;font-size:13px;padding:6px 0}
.profile-check i{width:18px;text-align:center}
.profile-check.done{color:var(--green-d)}
.profile-check.miss{color:var(--muted)}

/* Alert */
.alert{padding:12px 16px;border-radius:var(--r);font-size:14px;margin-bottom:14px;display:flex;align-items:flex-start;gap:8px}
.alert i{flex-shrink:0;margin-top:1px}
.alert-success{background:var(--green-l);color:var(--green-d)}
.alert-error{background:var(--red-l);color:var(--red-d)}
.alert-info{background:var(--blue-l);color:var(--blue-d)}
.alert-warning{background:var(--amber-l);color:var(--amber-d)}

/* Admin */
.admin-page{background:var(--bg);min-height:100vh}
.admin-content{padding:28px 0 60px}
.admin-page-title{font-size:22px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:10px}
.admin-page-sub{font-size:14px;color:var(--muted);margin-bottom:24px}
.admin-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px;margin-bottom:18px}
.admin-card-title{font-size:15px;font-weight:600;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
.stat-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-bottom:24px}
.stat-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:16px}
.stat-card-val{font-size:28px;font-weight:700;color:var(--text);margin-bottom:2px}
.stat-card-label{font-size:12px;color:var(--muted)}
.admin-table{width:100%;border-collapse:collapse;font-size:13px}
.admin-table th{padding:9px 12px;text-align:left;font-size:11px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--border)}
.admin-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.admin-table tr:last-child td{border-bottom:none}
.admin-table tr:hover td{background:var(--gray-l)}

/* Footer */
.en-footer{background:var(--white);border-top:1px solid var(--border);padding:20px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{font-size:12px;color:var(--muted)}
.footer-links a:hover{color:var(--text)}
.footer-note{font-size:12px;color:var(--muted);margin-top:6px}

@media(max-width:768px){
  .wrap,.wrap-sm{padding:0 16px}
  .en-hero h1{font-size:26px}
  .en-hero p{font-size:14px}
  .type-selector{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}
  .cards-grid{grid-template-columns:1fr}
  .item-grid{grid-template-columns:1fr}
  .item-sidebar{position:static}
  .chat-wrap{height:380px}
  .filter-row{flex-direction:column}
  .search-wrap{width:100%}
  .cat-select{width:100%}
}
