:root{
  --wa-bg:#efeae2;
  --wa-panel:#ffffff;
  --wa-border:#e9edef;
  --wa-text:#111b21;
  --wa-sub:#667781;
  --wa-green:#00a884;
  --wa-green-dark:#0b141a;
  --wa-chat:#d9fdd3;
  --wa-chip:#f0f2f5;
  --wa-shadow:0 6px 24px rgba(17,27,33,.12);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:#111b21;color:var(--wa-text)}
.auth-page{background:radial-gradient(circle at top,#2a3942 0,#0b141a 42%,#081016 100%)}
.auth-shell{display:flex;align-items:center;justify-content:center}
.auth-card{max-width:540px;width:100%}
.auth-brand{display:flex;align-items:center;gap:16px;margin-bottom:10px}.auth-logo{width:72px;height:72px;border-radius:18px;box-shadow:0 10px 24px rgba(0,0,0,.15)}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.shell{height:100dvh;min-height:100svh;padding:14px;display:flex}
.app{height:100%;min-height:680px;width:100%;max-width:1400px;margin:0 auto;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 70px rgba(0,0,0,.35);display:grid;grid-template-columns:72px 420px minmax(0,1fr)}
.navrail{background:#f7f8fa;border-right:1px solid var(--wa-border);display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:14px 0}
.navrail-top,.navrail-bottom{display:flex;flex-direction:column;gap:12px;align-items:center}
.rail-btn,.head-icon,.icon-btn{border:0;background:transparent;cursor:pointer}
.rail-btn{width:42px;height:42px;border-radius:12px;font-size:18px;opacity:.85}
.rail-btn.active,.rail-btn:hover{background:#e9edef;opacity:1}
.rail-avatar{display:inline-flex}
.sidebar{display:grid;grid-template-rows:56px auto minmax(180px,1fr) minmax(190px,32vh);background:#fff;border-right:1px solid var(--wa-border);min-height:0}
.wa-head,.sb-top{display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#f0f2f5}
.wa-brand{font-size:18px;font-weight:800;color:var(--wa-green);display:flex;align-items:center;gap:10px}.brand-mark{width:28px;height:28px;border-radius:8px;display:block}
.wa-actions{display:flex;align-items:center;gap:8px}
.head-icon{width:36px;height:36px;border-radius:10px;color:#54656f;display:flex;align-items:center;justify-content:center}
.head-icon:hover{background:#e4e7ea}
.search-wrap{padding:8px 12px 10px;border-bottom:1px solid var(--wa-border);background:#fff}
.search-wa{display:flex;align-items:center;gap:8px;background:#f0f2f5;border-radius:12px;padding:0 10px;height:40px}
.search-wa input{flex:1;border:0;background:transparent;outline:none}
.search-icon,.search-clear{color:#8696a0}
.search-clear{font-size:22px;line-height:1;width:28px;height:28px;border-radius:999px}
.search-clear:hover{background:#e4e7ea}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chip{height:30px;padding:0 12px;border-radius:999px;border:1px solid #d1d7db;background:#fff;color:#54656f;cursor:pointer}
.chip-active{background:#e7fce3;border-color:#b7ebc6;color:#087b5b}
.roomlist,.contactList,.groupMembers{overflow:auto;min-height:0}
.room{display:flex;gap:12px;padding:12px 14px;border-bottom:1px solid #f3f5f6;cursor:pointer;align-items:center}
.room:hover{background:#f5f6f6}.room.active{background:#f0f2f5}
.room-main{min-width:0;flex:1}
.room-top{display:flex;gap:10px;align-items:baseline}
.room .title{font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room .preview{font-size:13px;color:var(--wa-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.room .meta{font-size:12px;color:var(--wa-sub)}
.room .meta.time{margin-left:auto}
.room-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:54px}
.section-title{font-size:14px;font-weight:700;color:#667781;margin-bottom:8px;padding:0 2px}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mini-btn{border:1px solid rgba(0,0,0,.12);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer}
.mini-btn:hover{background:#f6f6f6}

/* Modal (WA-like) */
.modal.hidden{display:none}
.modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.modal-card{position:relative;width:min(520px,calc(100vw - 24px));max-height:min(720px,calc(100vh - 24px));background:#fff;border-radius:16px;box-shadow:0 16px 60px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.08)}
.modal-title{font-weight:800}
.modal-body{padding:12px 14px;overflow:auto}
.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid rgba(0,0,0,.08)}
.field{display:block;margin-bottom:12px}
.field-label{font-size:12px;color:#667781;margin-bottom:6px;font-weight:700}
.input{width:100%;border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:10px 12px;outline:none}
.input:focus{border-color:rgba(0,0,0,.28)}
.btn-primary{background:#0a7c6f;color:#fff;border:0;border-radius:999px;padding:10px 14px;font-weight:800;cursor:pointer}
.btn-primary:hover{filter:brightness(.96)}
.muted{font-size:12px;color:#667781}

.picklist{display:flex;flex-direction:column;gap:6px}
.pick{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;border:1px solid rgba(0,0,0,.08);cursor:pointer}
.pick:hover{background:#f6f6f6}
.pick .meta{min-width:0;flex:1}
.pick .name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick .sub{font-size:12px;color:#667781;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick input{width:18px;height:18px}

.search.search-wa.small{margin-top:6px}
.search.search-wa.small input{height:34px}
.contactsBox,.groupbox{padding:10px 12px;border-top:1px solid var(--wa-border);background:#fff}
.contactsBox.compact{overflow:auto;min-height:0}.room-section{min-height:0;overflow:hidden}.contactList{padding-bottom:8px}.wa-head,.wa-topbar,.wa-composer-wrap{flex-shrink:0}
.contact{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:12px;cursor:pointer}.contact:hover{background:#f7f8fa}
.contact .name{font-size:14px;font-weight:600}.contact .sub{font-size:12px;color:var(--wa-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dot{width:9px;height:9px;border-radius:999px;background:#c1c7cb;display:inline-block}.dot.on{background:#25d366}
.groupbox-modern input{width:100%;height:40px;border:1px solid #d1d7db;border-radius:10px;padding:0 12px;outline:none;margin-bottom:8px}
.groupMembers{max-height:84px;border:1px solid var(--wa-border);border-radius:10px;padding:8px;background:#fff}
.groupMembers label{display:flex;gap:8px;align-items:center;font-size:13px;padding:4px 0}
.groupbox button{width:100%;height:40px;border:0;border-radius:10px;background:var(--wa-green);color:#fff;font-weight:700;cursor:pointer}
.main{display:grid;grid-template-rows:60px minmax(0,1fr) auto auto;background:var(--wa-bg);min-width:0;min-height:0}
.wa-topbar{display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#f0f2f5;border-bottom:1px solid var(--wa-border)}
.chat-head{display:flex;align-items:center;gap:12px;min-width:0}.chat-head .title{font-size:16px;font-weight:600}.chat-head .sub{font-size:13px;color:var(--wa-sub)}
.pill{font-size:12px;padding:6px 10px;border-radius:999px;background:#e9edef;color:#54656f}
.wallpaper{background-color:#efeae2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23d9d3ca' stroke-width='1.2' opacity='.55'%3E%3Cpath d='M28 26c10 0 10 12 20 12s10-12 20-12 10 12 20 12 10-12 20-12'/%3E%3Ccircle cx='176' cy='58' r='18'/%3E%3Cpath d='M44 88l20 20-20 20-20-20zM124 84l18 10v22l-18 10-18-10V94zM182 112c0 10-8 18-18 18s-18-8-18-18 8-18 18-18 18 8 18 18zM64 166c0-12 10-22 22-22s22 10 22 22-10 22-22 22-22-10-22-22zM130 162h40M150 142v40M176 184l26 20M28 182c10-18 26-18 36 0'/%3E%3C/g%3E%3C/svg%3E")}
.msgs{overflow:auto;padding:20px 6%;display:flex;flex-direction:column;gap:3px;min-height:0}
.msg-row{display:flex;align-items:flex-end;gap:8px}.msg-row.me{justify-content:flex-end}.msg-row.other{justify-content:flex-start}
.bubble{max-width:min(640px,70%);padding:6px 8px 8px;border-radius:10px;box-shadow:0 1px .5px rgba(17,27,33,.13);position:relative}
.bubble.me{background:var(--wa-chat);border-top-right-radius:2px}.bubble.other{background:#fff;border-top-left-radius:2px}
.bubble .meta{font-size:12px;color:#667781;margin-bottom:2px}.bubble .body{font-size:14px;line-height:1.4;white-space:pre-wrap;word-break:break-word}.bubble .time{font-size:11px;color:#667781;text-align:right;margin-top:4px}
.bubble img.att{max-width:320px;max-height:360px;border-radius:8px;display:block;margin-top:6px}
.filelink{display:inline-flex;align-items:center;gap:8px;background:#f8f9fa;border:1px solid #dfe5e7;padding:8px 12px;border-radius:10px;margin-top:6px;font-size:13px}
.typing{min-height:18px;padding:0 22px 10px;font-size:12px;color:#667781}
.wa-composer-wrap{position:relative;padding:0 14px 14px;background:linear-gradient(180deg,rgba(239,234,226,0) 0%, rgba(239,234,226,.94) 40%, rgba(239,234,226,1) 100%)}
.wa-composer{height:56px;border-radius:28px;background:#fff;border-top:0;padding:0 12px;display:flex;align-items:center;gap:10px;box-shadow:var(--wa-shadow)}
.wa-composer input{flex:1;border:0;outline:none;background:transparent;height:100%}
.icon-btn.alt{width:36px;height:36px;border-radius:999px;color:#54656f;font-size:22px;display:flex;align-items:center;justify-content:center}
.icon-btn.alt:hover{background:#f0f2f5}.send-btn{width:40px;height:40px;border:0;border-radius:999px;background:var(--wa-green);color:#fff;font-weight:900;cursor:pointer}
.notice{position:fixed;left:20px;bottom:20px;background:rgba(17,27,33,.92);color:#fff;padding:10px 14px;border-radius:12px;font-size:12px;display:none;z-index:100}.notice.show{display:block}
.badge{min-width:20px;height:20px;border-radius:999px;background:#25d366;color:#fff;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.avatar-hit{appearance:none;border:0;background:transparent;padding:0;display:inline-flex;border-radius:999px;cursor:pointer}.avatar{width:40px;height:40px;border-radius:999px;background:#dfe5e7;color:#3b4a54;display:flex;align-items:center;justify-content:center;font-weight:800;overflow:hidden;flex:0 0 auto}.avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block}.profile-avatar{width:40px;height:40px}.room-avatar{width:48px;height:48px}.room-avatar.big{width:40px;height:40px}.bubble-avatar{width:32px;height:32px}.mini{width:36px;height:36px;font-size:13px}
.sticker-panel,.attach-menu{position:absolute;bottom:72px;background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(17,27,33,.18);padding:12px;display:none;z-index:20;border:1px solid #e6eaed}
.sticker-panel.show,.attach-menu.show{display:grid}
.sticker-panel{left:58px;width:290px;max-height:260px;overflow:auto;grid-template-columns:repeat(4,1fr);gap:10px}
.sticker-item{height:58px;border:0;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.sticker-item:hover{background:#f4f5f5}.sticker-item img{max-width:44px;max-height:44px;object-fit:contain}
.chat-sticker{width:112px;display:block}
.attach-menu{left:14px;width:228px;gap:8px;padding:10px;border-radius:18px}
.attach-item{height:44px;border:0;background:#fff;border-radius:14px;padding:0 10px;display:flex;align-items:center;gap:12px;cursor:pointer;text-align:left;font-size:15px;font-weight:500}.attach-item:hover{background:#f5f6f6}
.attach-ico{width:32px;height:32px;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;box-shadow:0 4px 10px rgba(0,0,0,.12)}.purple{background:#7c4dff}.blue{background:#2196f3}.pink{background:#ff2d75}.orange{background:#ff9800}.teal{background:#00bfa5}.lime{background:#8bc34a}
.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;padding:10px 12px;border-radius:12px;margin-bottom:10px}
.mobile-only{display:none}
@media (max-width:1100px){.app{grid-template-columns:64px 360px minmax(0,1fr)}.sidebar{grid-template-rows:56px auto minmax(180px,1fr) minmax(180px,34vh)}.bubble{max-width:82%}}
@media (max-width:860px){
  .shell{padding:0;height:100dvh;min-height:100svh}
  .app{border-radius:0;grid-template-columns:1fr;min-height:100dvh}
  .navrail{display:none}
  .mobile-only{display:inline-flex}

  /* Mobile: tampilkan salah satu layar (list atau chat) */
  .app-wa.is-mobile .sidebar,
  .app-wa.is-mobile .main{grid-column:1/-1}

  .app-wa.is-mobile.view-list .sidebar{display:grid}
  .app-wa.is-mobile.view-list .main{display:none}

  .app-wa.is-mobile.view-chat .sidebar{display:none}
  .app-wa.is-mobile.view-chat .main{display:grid}

  /* rapikan tinggi section */
  .sidebar{grid-template-rows:56px 82px minmax(0,1fr) 0 0}
  .contactsBox.compact,.groupbox{display:none}
}

@media (max-width:480px){
  .brand-wordmark{font-size:17px}
  .sticker-panel{left:14px;width:calc(100% - 28px)}
  .attach-menu{left:14px;width:calc(100% - 28px)}
  .bubble{max-width:90%}
}

/* Stage 4 additions */
.msg-date-sep{align-self:center;background:rgba(255,255,255,.92);padding:6px 12px;border-radius:8px;font-size:12px;color:#667781;box-shadow:0 1px .5px rgba(17,27,33,.13);margin:8px 0}
.time-row{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:4px}
.checks{font-size:12px;color:#8696a0;letter-spacing:-1px}.checks.read{color:#53bdeb}
.doc-card{display:flex;align-items:center;gap:12px;background:#f8f9fa;border:1px solid #dfe5e7;padding:10px 12px;border-radius:12px;margin-top:6px;color:inherit;text-decoration:none;min-width:220px;max-width:340px}
.doc-card:hover{background:#f1f4f5}.doc-ico{width:40px;height:40px;border-radius:10px;background:#6b7280;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.doc-meta{min-width:0;flex:1}.doc-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-sub{font-size:12px;color:#667781}.doc-dl{width:30px;height:30px;border-radius:999px;background:#e9edef;display:flex;align-items:center;justify-content:center;color:#54656f}

.audio-card{display:grid;gap:8px;background:#f8f9fa;border:1px solid #dfe5e7;padding:10px 12px;border-radius:12px;margin-top:6px;min-width:240px;max-width:360px}
.audio-meta{display:flex;flex-direction:column;gap:2px}.audio-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-card audio{width:100%;height:40px}
.video-card{display:grid;gap:8px;margin-top:6px;max-width:340px}.att-video{width:100%;max-height:360px;border-radius:12px;background:#000}.video-dl{font-size:12px;color:#0b7d63;font-weight:700}
.doc-card.audio .doc-ico{background:#ff9800}.doc-card.video .doc-ico{background:#2196f3}
.info-drawer.hidden{display:none}.info-drawer{position:fixed;inset:0;z-index:210}.info-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.28)}.info-panel{position:absolute;top:0;right:0;width:min(420px,100vw);height:100%;background:#fff;box-shadow:-10px 0 40px rgba(0,0,0,.18);display:flex;flex-direction:column}.info-head{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid rgba(0,0,0,.08)}.info-body{padding:14px;overflow:auto}.info-summary{display:flex;align-items:center;gap:12px;margin-bottom:14px}.info-title{font-size:18px;font-weight:800}.info-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.mini-btn.danger{color:#b42318;border-color:#f0b2aa;background:#fff5f5}
@media (max-width:860px){.info-panel{width:100%}.doc-card{min-width:0;max-width:100%}}

.reply-bar{display:flex;align-items:center;gap:10px;background:#f0f2f5;border-radius:10px;padding:8px 10px;margin-bottom:8px}
.reply-bar.hidden{display:none}
.reply-label{font-size:12px;color:#0b7d63;font-weight:700}.reply-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#54656f}
.reply-skim{border-left:3px solid #0b7d63;background:rgba(11,125,99,.08);padding:6px 8px;border-radius:8px;margin-bottom:8px}.reply-user{font-size:12px;font-weight:700;color:#0b7d63}.reply-body{font-size:12px;color:#54656f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-actions{position:absolute;right:8px;top:8px;display:flex;gap:4px;opacity:0;transition:.15s}.bubble{position:relative}.msg-row:hover .msg-actions{opacity:1}.msg-act{border:0;background:#fff;border-radius:8px;padding:2px 6px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.viewer.hidden,.modal.hidden,.info-drawer.hidden{display:none}.viewer{position:fixed;inset:0;z-index:100}.viewer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}.viewer-card{position:relative;z-index:2;height:100%;display:flex;align-items:center;justify-content:center;padding:20px}.viewer-card img{max-width:min(92vw,1000px);max-height:90vh;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.35)}.viewer-close{position:absolute;top:20px;right:20px;background:#fff}
.group-avatar-edit{display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer}.mini-chip{background:#f0f2f5;border-radius:999px;padding:4px 8px;font-size:12px;color:#54656f}.group-meta-block{min-width:0}.inline-edit{display:flex;gap:8px}.inline-edit .input{flex:1}
@media (max-width:860px){.viewer-card{padding:12px}.msg-actions{opacity:1}.inline-edit{flex-direction:column}}


.attach-picked{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #d9e2dc;border-radius:14px;padding:8px 12px;margin:0 12px 10px;box-shadow:0 6px 20px rgba(0,0,0,.05)}
.attach-picked.hidden{display:none}
.attach-picked-ico{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef6f2}
.attach-picked-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#334155}

.auth-pro-page{min-height:100vh;margin:0;background:linear-gradient(135deg,#fff5f5 0%,#fff 38%,#f6fbfa 100%);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a}
.auth-pro-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:stretch;padding:32px}
.auth-pro-hero{position:relative;border-radius:32px;padding:44px;background:radial-gradient(circle at top left,rgba(255,31,41,.18),transparent 34%),linear-gradient(145deg,#111827,#0f3d34 58%,#075e54);color:#fff;display:flex;flex-direction:column;justify-content:center;overflow:hidden;box-shadow:0 30px 60px rgba(15,23,42,.18)}
.auth-pro-hero:after{content:'';position:absolute;inset:auto -60px -60px auto;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.08);filter:blur(2px)}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.12);font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;width:max-content}
.hero-logo{width:84px;height:84px;margin:28px 0 18px;border-radius:24px;box-shadow:0 16px 30px rgba(0,0,0,.22)}
.auth-pro-hero h1{font-size:42px;line-height:1.08;margin:0 0 14px;max-width:640px}
.auth-pro-hero p{font-size:17px;line-height:1.7;max-width:620px;margin:0 0 28px;color:rgba(255,255,255,.84)}
.hero-points{display:grid;grid-template-columns:1fr;gap:14px;max-width:560px}
.hero-point{display:flex;gap:14px;align-items:flex-start;padding:15px 16px;border-radius:18px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}
.hero-point span{font-size:22px;line-height:1}
.hero-point strong{display:block;font-size:15px;margin-bottom:4px}
.hero-point small{display:block;font-size:13px;color:rgba(255,255,255,.76)}
.auth-pro-card{max-width:520px;width:100%;justify-self:center;align-self:center;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);border:1px solid rgba(226,232,240,.9);border-radius:28px;padding:30px;box-shadow:0 22px 60px rgba(15,23,42,.12)}
.auth-card-head{display:flex;gap:16px;align-items:center;margin-bottom:22px}
.auth-card-logo{width:56px;height:56px;border-radius:18px}
.auth-overline{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#ff1f29;margin-bottom:6px}
.auth-card-head h2{margin:0;font-size:28px;color:#0f172a}
.auth-card-head p{margin:6px 0 0;color:#64748b;font-size:14px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.auth-tab{border:1px solid #dbe4e0;background:#fff;border-radius:14px;padding:12px 14px;font-weight:700;color:#475569;cursor:pointer;transition:.18s ease}
.auth-tab.active{background:#075e54;color:#fff;border-color:#075e54;box-shadow:0 12px 24px rgba(7,94,84,.2)}
.auth-form-pro{display:grid;gap:14px}
.field-pro{display:grid;gap:8px}.field-pro.hidden{display:none}
.field-pro span{font-size:13px;font-weight:700;color:#334155}
.field-pro input{height:50px;border:1px solid #dbe4e0;border-radius:14px;padding:0 14px;font-size:15px;outline:none;background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.field-pro input:focus{border-color:#075e54;box-shadow:0 0 0 4px rgba(7,94,84,.12)}
.btn-auth-primary{height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,#ff1f29,#d91d26 42%,#075e54);color:#fff;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 18px 28px rgba(217,29,38,.2)}
.btn-auth-primary:disabled{opacity:.72;cursor:wait}
.auth-footer-note{margin-top:18px;padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:13px;line-height:1.6}
@media (max-width: 980px){.auth-pro-shell{grid-template-columns:1fr;padding:18px}.auth-pro-hero{padding:28px;min-height:auto}.auth-pro-hero h1{font-size:30px}.auth-pro-card{max-width:100%}}
@media (max-width: 640px){.auth-pro-shell{padding:12px}.auth-pro-hero{border-radius:24px}.auth-pro-card{padding:22px;border-radius:24px}.auth-card-head h2{font-size:24px}.hero-logo{width:72px;height:72px;margin:18px 0 12px}.auth-pro-hero p{font-size:15px}}

.brand-logo-visible{display:block;height:34px;width:auto;max-width:156px;object-fit:contain}.brand-logo-mark{width:34px;height:34px;max-width:none;border-radius:10px;box-shadow:0 4px 14px rgba(255,31,41,.18)}.brand-wordmark{font-size:18px;font-weight:800;color:#00a884;letter-spacing:.2px}
.wa-brand{display:flex;align-items:center}.brand-mark{width:34px;height:34px;object-fit:contain}.hero-logo-wide{width:220px;height:auto;border-radius:24px;background:rgba(255,255,255,.08);padding:10px 14px}
.profile-avatar-wrap{position:relative}.profile-avatar-btn{appearance:none;border:0;background:transparent;padding:0;cursor:pointer;border-radius:999px}.profile-camera-btn{position:absolute;right:-2px;bottom:-2px;width:28px;height:28px;border-radius:999px;border:2px solid #fff;background:#0b7d63;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px;box-shadow:0 4px 12px rgba(0,0,0,.14)}
.profile-modal-card{max-width:420px}.profile-modal-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}.profile-photo-view{appearance:none;border:0;background:transparent;padding:0;cursor:pointer}.profile-photo-view:disabled{cursor:default}.profile-modal-avatar{width:132px;height:132px;font-size:42px}.profile-modal-name{font-size:24px;font-weight:800;color:#0f172a}.profile-modal-email{font-size:14px;color:#64748b}.profile-modal-meta{font-size:13px;color:#94a3b8}.profile-modal-actions{display:flex;gap:10px;justify-content:center}.user-card-modal .profile-modal-meta{max-width:280px;line-height:1.45}.avatar img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:860px){.brand-logo-visible{height:30px;max-width:138px}.profile-modal-avatar{width:108px;height:108px;font-size:34px}}
