/* ======================================================================
   Craft Writers — stylesheet
   Own styling; layout structure mirrors a writing-service site.
   ====================================================================== */
:root{
  --ink:#141b2d;
  --ink-soft:#3a4256;
  --muted:#64748b;
  --line:#dcdfe6;
  --line-strong:#c7cbd4;
  --bg:#f7f6f3;
  --card:#ffffff;
  --brand:#0f6d64;       /* deep teal */
  --brand-dark:#0a4f48;
  --accent:#f59e0b;      /* amber  */
  --accent-dark:#b45309;
  --ok:#0f9d58;
  --err:#dc2626;
  --radius:14px;
  --shadow:0 12px 34px rgba(20,27,45,.10);
  --shadow-lg:0 18px 42px rgba(20,27,45,.16);
  --maxw:1140px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(15,109,100,.07) 0%, transparent 45%),
    radial-gradient(circle at 100% 20%, rgba(245,158,11,.07) 0%, transparent 40%),
    var(--bg);
  background-attachment:fixed;
  line-height:1.6;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
h1,h2,h3{line-height:1.2;color:var(--ink);margin:0 0 .5em}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.section{padding:70px 0}
.section-alt{background:#fbfaf8}
.text-center{text-align:center}
.muted{color:var(--muted)}

/* ---- Buttons ---- */
.btn{
  display:inline-block;border:0;cursor:pointer;font-weight:600;
  padding:12px 22px;border-radius:10px;font-size:15px;
  transition:.15s ease;text-align:center;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-dark);text-decoration:none}
.btn-accent{background:var(--accent);color:#111}
.btn-accent:hover{background:var(--accent-dark);color:#fff;text-decoration:none}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.6)}
.btn-ghost:hover{background:rgba(255,255,255,.12);text-decoration:none}
.btn-block{display:block;width:100%}
.btn-sm{padding:7px 14px;font-size:13px}

/* ---- Top navigation ---- */
.topbar{background:var(--ink);color:#cfd3e0;font-size:13px}
.topbar .container{display:flex;justify-content:space-between;padding:8px 20px;flex-wrap:wrap;gap:8px}
.topbar a{color:#cfd3e0}

.nav{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.nav .container{display:flex;align-items:center;justify-content:space-between;height:70px}
.brand{font-size:22px;font-weight:800;color:var(--ink);display:flex;align-items:center;gap:10px}
.brand-icon{
  width:32px;height:32px;border-radius:9px;background:var(--brand);color:#fff;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.brand-icon .nav-svg{width:18px;height:18px}
.nav-links{display:flex;align-items:center;gap:22px;list-style:none;margin:0;padding:0}
.nav-links a{color:var(--ink-soft);font-weight:600;font-size:15px}
.nav-links a:hover{color:var(--brand);text-decoration:none}
.nav-dropdown{position:relative}
.nav-dropdown-toggle{display:flex;align-items:center;gap:4px}
.nav-dropdown-toggle .caret{font-size:11px}
.nav-dropdown.open .nav-dropdown-toggle{color:var(--brand)}
.nav-dropdown-menu{
  display:none;position:absolute;top:calc(100% + 14px);left:0;background:#fff;
  border-radius:10px;box-shadow:var(--shadow-lg);min-width:170px;padding:10px 0;
  list-style:none;margin:0;z-index:60;
}
.nav-dropdown.open .nav-dropdown-menu{display:block}
.nav-dropdown-menu li a{display:block;padding:9px 18px;font-weight:600}
.nav-cta{display:flex;gap:10px;align-items:center}
.nav-toggle{display:none;background:none;border:0;font-size:26px;cursor:pointer;color:var(--ink)}

/* ---- Hero ---- */
.hero{
  position:relative;overflow:hidden;color:#fff;padding:110px 0;
  background:linear-gradient(135deg,#073b36 0%,#0f6d64 55%,#17968a 100%);
}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg-slide{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;animation:hero-fade 14s infinite;
}
.hero-bg-slide:nth-child(1){animation-delay:0s}
.hero-bg-slide:nth-child(2){animation-delay:7s}
@keyframes hero-fade{
  0%{opacity:0} 4%{opacity:1} 46%{opacity:1} 50%{opacity:0} 100%{opacity:0}
}
.hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(115deg,rgba(7,59,54,.92) 0%,rgba(15,109,100,.82) 48%,rgba(23,150,138,.55) 100%);
}
.hero .container{position:relative;z-index:2}
.hero h1{color:#fff;font-size:44px;max-width:720px}
.hero p{font-size:19px;max-width:640px;color:#e4e6f7}
.hero .btn-row{margin-top:26px;display:flex;gap:14px;flex-wrap:wrap}
.about-img{width:100%;height:100%;min-height:280px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}

/* ---- Page banner (inner pages) ---- */
.page-banner{background:var(--ink);color:#fff;padding:54px 0}
.page-banner h1{color:#fff;margin:0}
.breadcrumb{color:#aeb4c7;font-size:14px;margin-top:8px}
.breadcrumb a{color:#c7cbe0}

/* ---- Cards / features ---- */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.profile-grid{grid-template-columns:0.9fr 1.6fr 1.1fr}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;box-shadow:var(--shadow);transition:box-shadow .2s ease,transform .2s ease;
}
.card h3{margin-top:6px}
a.card{display:block;color:inherit;text-decoration:none}
a.card:hover{text-decoration:none;border-color:var(--brand);box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.icon-badge{
  width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:#e3f2ef;color:var(--brand);font-size:24px;margin-bottom:14px;
}
.section-head{max-width:640px;margin:0 auto 44px;text-align:center}
.section-head h2{font-size:32px}
.eyebrow{color:var(--brand);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.eyebrow-lined{display:flex;align-items:center;justify-content:center;gap:14px}
.eyebrow-lined::before,.eyebrow-lined::after{content:"";flex:0 0 44px;height:2px;background:var(--brand)}

.job-mosaic{display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:280px 280px;gap:20px}
.job-mosaic .job-tile:nth-child(1){grid-column:1/3;grid-row:1}
.job-mosaic .job-tile:nth-child(2){grid-column:1;grid-row:2}
.job-mosaic .job-tile:nth-child(3){grid-column:2;grid-row:2}
.job-mosaic .job-tile:nth-child(4){grid-column:3;grid-row:1/3}
.job-tile{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .2s ease,transform .2s ease}
.job-tile:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.job-tile img{width:100%;height:100%;object-fit:cover;display:block}
.job-tile-caption{
  position:absolute;right:16px;bottom:16px;background:#fff;padding:12px 18px;
  border-radius:8px;box-shadow:var(--shadow);min-width:170px;
}
.job-tile-caption .cat{font-weight:800;color:var(--ink);font-size:16px}
.job-tile-caption .sub{color:var(--brand);font-size:13px;margin-top:2px}

/* ---- Team ---- */
.member{text-align:center}
.member .avatar{
  width:110px;height:110px;border-radius:50%;margin:0 auto 14px;
  background:linear-gradient(135deg,#2e9d8f,#0f6d64);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:38px;font-weight:700;
}
.member h3{margin:0}
.member .role{color:var(--brand);font-weight:600;font-size:14px}

/* ---- Testimonials ---- */
.quote{position:relative}
.quote::before{content:"\201C";font-size:60px;color:#dcece9;position:absolute;top:-18px;left:12px;font-family:Georgia,serif}
.quote p{position:relative;z-index:1;font-style:italic;color:var(--ink-soft)}
.quote .who{font-weight:700;margin-top:10px}

/* ---- Forms / auth ---- */
.auth-wrap{max-width:460px;margin:50px auto;padding:0 20px}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:34px}
.auth-banner{
  height:260px;background-size:cover;background-position:center;position:relative;
}
.auth-banner::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(7,59,54,.12) 0%,rgba(247,246,243,.05) 60%,var(--bg) 100%);
}
.auth-card h2{text-align:center}
.auth-icon{width:64px;height:64px;border-radius:50%;background:#e3f2ef;color:var(--brand);font-size:30px;
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
label{display:block;font-weight:600;font-size:14px;margin:14px 0 6px}
input,select,textarea{
  width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:9px;font-size:15px;
  font-family:inherit;background:#fbfbfa;color:var(--ink);
}
input:focus,select:focus,textarea:focus{outline:2px solid #c8e6e1;border-color:var(--brand)}
input:disabled,select:disabled,textarea:disabled{background:#eef0f0;color:var(--ink-soft);opacity:1;-webkit-text-fill-color:var(--ink-soft)}
textarea{min-height:120px;resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.help{font-size:13px;color:var(--muted);margin-top:6px}
.auth-foot{text-align:center;margin-top:18px;font-size:14px}

/* ---- Alerts ---- */
.alert{padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:14px;border:1px solid transparent}
.alert-success{background:#e7f6ee;color:#0f5132;border-color:#bfe6cf}
.alert-error{background:#fdecec;color:#842029;border-color:#f5c2c7}
.alert-info{background:#e7f0fd;color:#084298;border-color:#bcd4f5}

/* ---- Dashboard ---- */
.dash{display:flex;min-height:calc(100vh - 70px)}
.dash-main{flex:1;padding:30px;background:var(--bg)}
.dash-main h1{font-size:26px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}
.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;transition:box-shadow .2s ease,transform .2s ease}
.stat:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.stat .n{font-size:30px;font-weight:800;color:var(--brand)}
.stat .l{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.04em}

/* ---- Table ---- */
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto}
table{width:100%;border-collapse:collapse;min-width:640px}
th,td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);font-size:14px}
th{background:#f3f4fb;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
tr:last-child td{border-bottom:0}
.pill{display:inline-block;padding:3px 11px;border-radius:20px;font-size:12px;font-weight:600}
.pill.pending{background:#fef3c7;color:#92400e}
.pill.assigned,.pill.accepted{background:#dbeafe;color:#1e40af}
.pill.closed{background:#e5e7eb;color:#374151}
.pill.in_progress{background:#e0e7ff;color:#3730a3}
.pill.submitted{background:#ede9fe;color:#5b21b6}
.pill.completed{background:#dcfce7;color:#166534}
.pill.cancelled{background:#fee2e2;color:#991b1b}
.pill.rejected{background:#fecaca;color:#7f1d1d}

/* ---- Messages thread ---- */
.msg{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-bottom:12px}
.msg .meta{font-size:12px;color:var(--muted);margin-bottom:4px}
.msg.mine{background:#e6f2f0;border-color:#c9e2dd}

/* ---- Support bot ---- */
:root{ --bot-blue:#3b82f6; --bot-blue-dark:#2563eb; }

.bot-log{
  display:flex;flex-direction:column;gap:8px;overflow-y:auto;
  background:var(--bg);padding:14px;flex:1;
}
.bot-msg{max-width:80%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.bot-msg.bot{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:2px;box-shadow:0 2px 6px rgba(20,27,45,.06)}
.bot-msg.me{align-self:flex-end;background:var(--bot-blue);color:#fff;border-bottom-right-radius:2px}

.bot-panel{
  position:fixed;right:20px;bottom:80px;z-index:70;width:340px;max-width:calc(100vw - 40px);
  height:440px;max-height:calc(100vh - 160px);background:#fff;border-radius:14px;
  box-shadow:0 20px 50px rgba(20,27,45,.25);display:flex;flex-direction:column;overflow:hidden;
}
.bot-panel[hidden]{display:none}
.bot-panel-head{
  background:var(--bot-blue);color:#fff;padding:16px 18px;font-weight:700;font-size:16px;
  display:flex;align-items:center;justify-content:space-between;flex-shrink:0;
}
.bot-panel-head button{background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0}
.bot-panel-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);flex-shrink:0}
.bot-panel-form input{flex:1;margin:0}
.bot-panel-form .btn{background:var(--bot-blue)}
.bot-panel-form .btn:hover{background:var(--bot-blue-dark)}

@media (max-width:480px){
  .bot-panel{right:12px;left:12px;width:auto;bottom:80px}
}

/* ---- Footer ---- */
.footer{background:var(--ink);color:#aeb4c7;padding:56px 0 0}
.footer h4{color:#fff;font-size:16px;margin-bottom:16px}
.footer a{color:#aeb4c7}
.footer a:hover{color:#fff}
.footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:32px}
.footer ul{list-style:none;margin:0;padding:0}
.footer ul li{margin-bottom:9px}
.foot-brand{font-size:22px;font-weight:800;color:#fff;margin-bottom:12px;display:flex;align-items:center;gap:10px}
.foot-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;max-width:260px}
.foot-gallery img{aspect-ratio:1/1;width:100%;object-fit:cover;background:#26304d;border-radius:8px}
.footer-bottom{border-top:1px solid #2a3350;margin-top:40px;padding:18px 0;text-align:center;font-size:13px}

/* ---- Writer dashboard (job requests / wallet) ---- */
:root{ --gold:#b45309; --gold-dark:#92400e; }

.job-card p{margin:6px 0}
.job-card{transition:box-shadow .2s ease,transform .2s ease}
.job-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.job-actions{display:flex;gap:10px;margin-top:16px}
.job-actions form{flex:1;margin:0}
.job-actions span.btn-jobstate{flex:1}
.btn-jobstate{
  width:100%;background:#94a3b8;color:#fff;cursor:not-allowed;font-weight:700;
}
.btn-view{flex:1;background:var(--brand);color:#fff;font-weight:700}
.btn-view:hover{background:var(--brand-dark);color:#fff;text-decoration:none}
.icon-btn{
  width:38px;height:38px;border-radius:50%;background:#f3f4fb;color:var(--ink-soft);
  display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;
}
.icon-btn:hover{background:#e6e8ef;text-decoration:none}
.nav-icons{display:flex;gap:10px;align-items:center}
.nav-svg{width:19px;height:19px}
.icon-btn .nav-svg{width:18px;height:18px}
.bottom-nav .ic .nav-svg{width:22px;height:22px}

.ticker{background:var(--gold);color:#fff;overflow:hidden;position:relative}
.ticker-track{display:flex;gap:0;width:max-content;animation:ticker-scroll 32s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-item{display:flex;align-items:center;gap:10px;padding:10px 28px;font-size:14px;white-space:nowrap;font-weight:600}
.ticker-item .ok{
  width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;
}
.ticker-item b{font-weight:800}
@keyframes ticker-scroll{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

.writer-main{padding-bottom:100px}
.wstat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.wstat-grid-5{grid-template-columns:repeat(5,1fr)}
.wstat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);transition:box-shadow .2s ease,transform .2s ease}
.wstat:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.wstat .l{color:var(--muted);font-size:14px;margin-bottom:10px}
.wstat .n{font-size:28px;font-weight:800;color:var(--ink);margin-bottom:12px}
.wstat .tag{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px}
.wstat .tag.blue{background:#dbeafe;color:#1e40af}
.wstat .tag.green{background:#dcfce7;color:#166534}
.wstat .tag.teal{background:#fef3c7;color:var(--gold-dark)}

.wcard{background:#fff;border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px}
.wcard-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}
.wcard-head h3{margin:0;font-size:17px}
.wcard-body{padding:26px 22px}
.wempty{text-align:center;padding:20px 10px}
.wempty .dot{color:var(--ok);font-weight:800;margin-right:6px}
.wempty p{color:var(--muted);margin:10px 0 18px}

.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);
  display:flex;justify-content:space-around;padding:8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);
  font-size:11px;font-weight:600;padding:4px 6px;
}
.bottom-nav a .ic{font-size:19px;line-height:1}
.bottom-nav a.active{color:var(--gold)}
.bottom-nav a:hover{text-decoration:none;color:var(--gold)}

/* ---- Responsive ---- */
@media (max-width:900px){
  .grid-3,.grid-4{grid-template-columns:1fr 1fr}
  .footer .cols{grid-template-columns:1fr 1fr}
  .stat-grid{grid-template-columns:1fr 1fr}
  .job-mosaic{grid-template-columns:1fr 1fr;grid-template-rows:240px 240px 240px}
  .job-mosaic .job-tile:nth-child(4){grid-column:1/3;grid-row:3}
  .auth-banner{height:180px}
  .profile-grid{grid-template-columns:1fr}
  .wstat-grid-5{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width:680px){
  .job-mosaic{grid-template-columns:1fr;grid-template-rows:none}
  .job-mosaic .job-tile{grid-column:1 !important;grid-row:auto !important;height:220px}
  .nav-links{
    display:none;position:absolute;top:70px;left:0;right:0;background:#fff;
    flex-direction:column;align-items:flex-start;padding:14px 20px;border-bottom:1px solid var(--line);gap:6px;
  }
  .nav-links.open{display:flex}
  .nav-links a{width:100%;padding:8px 0}
  .nav-toggle{display:block}
  .grid-3,.grid-4,.grid-2,.form-row,.profile-grid{grid-template-columns:1fr}
  .hero h1{font-size:32px}
  .hero{padding:80px 0}
  .dash{flex-direction:column}
  .footer .cols{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr 1fr}
  .wstat-grid{grid-template-columns:1fr 1fr}
  .wstat-grid-5{grid-template-columns:1fr 1fr}
}

/* Modern writer dashboard */
.writer-welcome{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:26px 28px;
  margin-bottom:20px;
  color:#fff;
  background:linear-gradient(135deg,#086f68,#0d857b);
  border-radius:18px;
  box-shadow:0 14px 36px rgba(8,111,104,.18);
}
.writer-welcome h1{margin:4px 0 6px;font-size:28px;color:#fff}
.writer-welcome p{margin:0;color:rgba(255,255,255,.82)}
.writer-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#d5f5ee}
.writer-account{
  min-width:180px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
  font-size:13px;
}
.writer-status{
  padding:7px 12px;
  border-radius:999px;
  font-weight:700;
}
.writer-status.online{background:#d8f8e5;color:#08733b}
.writer-status.offline{background:#ffe1e1;color:#a12626}

.writer-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}
.writer-stat{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:20px;
  background:#fff;
  color:var(--text);
  border:1px solid var(--line-strong);
  border-radius:16px;
  box-shadow:0 8px 24px rgba(20,35,60,.06);
}
.writer-stat:hover{
  text-decoration:none;
  transform:translateY(-2px);
  border-color:#168f84;
}
.writer-stat-label{font-size:13px;color:var(--muted)}
.writer-stat strong{font-size:25px;color:#071a37}
.writer-stat small{font-size:12px;color:var(--muted)}

.writer-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:20px;
  padding:22px 24px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
}
.writer-actions h2{margin:0 0 6px;font-size:19px}
.writer-actions p{margin:0;color:var(--muted)}
.writer-action-buttons{display:flex;gap:10px;flex-wrap:wrap}
.writer-action-buttons .btn-ghost{color:var(--brand);border-color:var(--brand)}

.writer-panel{
  margin-bottom:20px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(20,35,60,.05);
}
.writer-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
}
.writer-panel-head h2{margin:3px 0 0;font-size:18px}
.writer-panel-head .writer-eyebrow{color:#08796f}
.writer-assignment-list,.writer-activity-list{padding:8px 22px}
.writer-assignment{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.writer-assignment:last-child{border-bottom:0}
.writer-assignment h3{margin:0 0 5px;font-size:16px}
.writer-assignment p,.writer-activity p{margin:0;color:var(--muted);font-size:13px}
.writer-assignment-meta{display:flex;align-items:flex-end;flex-direction:column;gap:7px}
.writer-activity{display:flex;align-items:flex-start;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}
.writer-activity:last-child{border-bottom:0}
.writer-activity-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:#0d857b}
.writer-empty{text-align:center;padding:38px 20px}
.writer-empty p{color:var(--muted);margin:7px 0}

@media(max-width:900px){
  .writer-stats{grid-template-columns:repeat(2,1fr)}
  .writer-actions{align-items:flex-start;flex-direction:column}
}
@media(max-width:600px){
  .dash-main{padding:16px}
  .writer-welcome{align-items:flex-start;flex-direction:column;padding:22px}
  .writer-account{align-items:flex-start}
  .writer-stats{grid-template-columns:1fr 1fr;gap:10px}
  .writer-stat{padding:15px}
  .writer-stat strong{font-size:21px}
  .writer-action-buttons{width:100%}
  .writer-action-buttons .btn{flex:1;text-align:center}
  .writer-assignment{align-items:flex-start;flex-direction:column}
  .writer-assignment-meta{align-items:flex-start}
}
/* Writer bottom navigation and More panel */
.writer-more-glyph{
  font-size:16px !important;
  font-weight:900;
  letter-spacing:2px;
}

.writer-more-backdrop{
  position:fixed;
  inset:0;
  z-index:1090;
  background:rgba(5,18,35,.42);
  backdrop-filter:blur(2px);
}

.writer-more-panel{
  position:fixed;
  left:50%;
  bottom:86px;
  z-index:1100;
  width:min(520px,calc(100% - 28px));
  padding:10px 18px 18px;
  transform:translateX(-50%);
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(8,25,50,.25);
}

.writer-more-handle{
  width:42px;
  height:4px;
  margin:1px auto 12px;
  background:#d6dde7;
  border-radius:999px;
}

.writer-more-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}

.writer-more-head div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.writer-more-head span{
  color:var(--muted);
  font-size:12px;
}

.writer-more-head button{
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#f1f4f8;
  color:#25344c;
  font-size:23px;
  cursor:pointer;
}

.writer-more-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding-top:14px;
}

.writer-more-grid > a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:72px;
  padding:13px;
  color:var(--text);
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:13px;
}

.writer-more-grid > a:hover{
  color:var(--brand);
  border-color:#8bc8c2;
  text-decoration:none;
}

.writer-more-grid > a > span{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  color:#08796f;
  background:#e1f4f1;
  border-radius:11px;
}

.writer-more-grid .nav-svg{
  width:20px;
  height:20px;
}

.writer-more-grid strong,
.writer-more-grid small{
  display:block;
}

.writer-more-grid small{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.writer-more-grid .writer-more-logout{
  grid-column:1 / -1;
  color:#a12626;
  background:#fff5f5;
}

.writer-more-grid .writer-more-logout > span{
  color:#a12626;
  background:#ffe4e4;
}

body.more-open{
  overflow:hidden;
}

@media(max-width:600px){
  .writer-more-panel{
    bottom:76px;
    padding:9px 14px 14px;
    border-radius:20px;
  }

  .writer-more-grid{
    grid-template-columns:1fr;
  }

  .writer-more-grid .writer-more-logout{
    grid-column:auto;
  }
}
/* Modern writer profile hub */
.profile-hero{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:18px;
  padding:25px;
  color:#fff;
  background:linear-gradient(135deg,#08766d,#0b9185);
  border-radius:18px;
  box-shadow:0 14px 35px rgba(8,118,109,.2);
}

.profile-avatar{
  display:grid;
  place-items:center;
  flex:0 0 72px;
  width:72px;
  height:72px;
  color:#08766d;
  background:#fff;
  border-radius:22px;
  font-size:30px;
  font-weight:900;
}

.profile-identity{flex:1}
.profile-identity h1{margin:3px 0;color:#fff}
.profile-identity p{margin:0;color:rgba(255,255,255,.82)}

.profile-badges{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:11px;
  font-size:12px;
}

.profile-balance{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  padding-left:20px;
  border-left:1px solid rgba(255,255,255,.25);
}

.profile-balance span{font-size:12px;color:rgba(255,255,255,.75)}
.profile-balance strong{font-size:24px}
.profile-balance a{color:#fff;font-size:12px;font-weight:700}

.profile-stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  margin-bottom:18px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
  overflow:hidden;
}

.profile-stats div{
  padding:18px;
  text-align:center;
  border-right:1px solid var(--line);
}

.profile-stats div:last-child{border-right:0}
.profile-stats strong{display:block;font-size:23px;color:#071a37}
.profile-stats span{font-size:12px;color:var(--muted)}

.profile-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);
  gap:18px;
  margin-bottom:18px;
}

.profile-card{
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(20,35,60,.05);
}

.profile-card-head{
  padding:17px 20px;
  border-bottom:1px solid var(--line);
}

.profile-card-head h2{margin:3px 0 0;font-size:18px}
.profile-card-head .writer-eyebrow{color:#08796f}

.profile-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  padding:20px;
}

.profile-form label{margin-top:0}
.profile-form-full{grid-column:1/-1}

.profile-tools{padding:8px 18px}
.profile-tools a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  color:var(--text);
  border-bottom:1px solid var(--line);
}

.profile-tools a:last-child{border-bottom:0}
.profile-tools a:hover{color:var(--brand);text-decoration:none}

.profile-tools a > span{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  color:#08796f;
  background:#e2f5f1;
  border-radius:11px;
}

.profile-tools .nav-svg{width:20px;height:20px}
.profile-tools strong,.profile-tools small{display:block}
.profile-tools small{margin-top:3px;color:var(--muted);font-size:11px}

.profile-security{margin-bottom:18px}
.security-form{
  grid-template-columns:repeat(3,1fr) auto;
  align-items:end;
}

.profile-password-button{padding-bottom:1px}

.profile-logout-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
  padding:20px;
  background:#fffafa;
  border-color:#f0cccc;
}

.profile-logout-card h2{margin:0 0 5px;font-size:17px}
.profile-logout-card p{margin:0;color:var(--muted)}

.profile-logout-btn{
  color:#a12626;
  background:#ffe1e1;
  border:1px solid #efb8b8;
}

@media(max-width:950px){
  .profile-layout{grid-template-columns:1fr}
  .security-form{grid-template-columns:1fr 1fr}
  .profile-password-button{grid-column:1/-1}
}

@media(max-width:650px){
  .profile-hero{align-items:flex-start;flex-wrap:wrap}
  .profile-avatar{width:58px;height:58px;flex-basis:58px}
  .profile-balance{
    align-items:flex-start;
    width:100%;
    padding:14px 0 0;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.25);
  }

  .profile-stats{grid-template-columns:repeat(2,1fr)}
  .profile-stats div{border-bottom:1px solid var(--line)}
  .profile-form,.security-form{grid-template-columns:1fr}
  .profile-form-full,.profile-password-button{grid-column:auto}
  .profile-logout-card{align-items:flex-start;flex-direction:column}
}
/* Modern writer jobs page */
.jobs-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  padding:25px 28px;
  color:#fff;
  background:linear-gradient(135deg,#08766d,#0b9185);
  border-radius:18px;
  box-shadow:0 14px 35px rgba(8,118,109,.18);
}

.jobs-hero h1{margin:3px 0 5px;color:#fff}
.jobs-hero p{margin:0;color:rgba(255,255,255,.82)}

.jobs-credit-box{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:3px 13px;
  min-width:160px;
  padding:14px 17px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
  border-radius:14px;
}

.jobs-credit-box span{font-size:12px}
.jobs-credit-box strong{grid-row:1/3;grid-column:2;font-size:29px}
.jobs-credit-box a{color:#fff;font-size:11px;font-weight:700}

.jobs-toolbar{
  display:flex;
  align-items:end;
  gap:14px;
  margin-bottom:13px;
  padding:15px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:15px;
}

.jobs-search{
  display:flex;
  align-items:center;
  flex:1;
  gap:10px;
  height:46px;
  padding:0 14px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:11px;
}

.jobs-search input{
  height:auto;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.jobs-search input:focus{outline:0}
.jobs-category-filter{width:260px;margin:0}
.jobs-category-filter label{margin:0 0 5px;font-size:11px}
.jobs-category-filter select{height:46px}

.jobs-result-line{
  display:flex;
  justify-content:space-between;
  margin-bottom:15px;
  color:var(--muted);
  font-size:13px;
}

.modern-job-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.modern-job-card{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:20px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
  box-shadow:0 8px 24px rgba(20,35,60,.06);
  transition:.2s ease;
}

.modern-job-card:hover{
  transform:translateY(-3px);
  border-color:#83c9c2;
  box-shadow:0 14px 32px rgba(20,35,60,.1);
}

.modern-job-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.modern-job-category{
  color:#08796f;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.modern-premium{
  padding:5px 9px;
  color:#805b00;
  background:#fff1bd;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}

.modern-job-card h2{
  min-height:48px;
  margin:0 0 13px;
  font-size:18px;
  line-height:1.35;
}

.modern-job-price{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  padding:11px 12px;
  background:#e9f7f4;
  border-radius:10px;
}

.modern-job-price span{font-size:11px;color:#52706d}
.modern-job-price strong{color:#08766d;font-size:17px}

.modern-job-details{
  display:grid;
  grid-template-columns:1fr 70px 1.3fr;
  gap:8px;
  margin-bottom:13px;
}

.modern-job-details div{
  padding:9px;
  background:#f8fafc;
  border-radius:9px;
}

.modern-job-details span,
.modern-job-details strong{display:block}

.modern-job-details span{
  margin-bottom:4px;
  color:var(--muted);
  font-size:10px;
}

.modern-job-details strong{font-size:11px}
.modern-job-details .urgent{background:#fff0f0;color:#a12626}
.modern-job-details .soon{background:#fff8e3;color:#855d00}

.modern-job-summary{
  flex:1;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.modern-job-card .job-actions{
  margin-top:15px;
  padding-top:15px;
  border-top:1px solid var(--line);
}

.modern-job-card[hidden]{display:none}

@media(max-width:1050px){
  .modern-job-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:700px){
  .jobs-hero{align-items:flex-start;flex-direction:column}
  .jobs-credit-box{width:100%}
  .jobs-toolbar{align-items:stretch;flex-direction:column}
  .jobs-category-filter{width:100%}
  .modern-job-grid{grid-template-columns:1fr}
}
/* Modern My Work page */
.work-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
  padding:24px 27px;
  color:#fff;
  background:linear-gradient(135deg,#08766d,#0b9185);
  border-radius:18px;
  box-shadow:0 14px 35px rgba(8,118,109,.18);
}

.work-hero h1{margin:3px 0 5px;color:#fff}
.work-hero p{margin:0;color:rgba(255,255,255,.82)}
.work-browse-btn{color:#08766d;background:#fff;border-color:#fff}

.work-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-bottom:16px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:15px;
  overflow:hidden;
}

.work-summary div{
  padding:17px 20px;
  border-right:1px solid var(--line);
}

.work-summary div:last-child{border-right:0}
.work-summary span{display:block;color:var(--muted);font-size:12px}
.work-summary strong{display:block;margin-top:5px;font-size:23px}

.work-filters{
  display:flex;
  gap:8px;
  margin-bottom:16px;
  padding:7px;
  overflow-x:auto;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:13px;
}

.work-filters button{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  padding:10px 13px;
  color:#57677d;
  background:transparent;
  border:0;
  border-radius:9px;
  font-weight:700;
  cursor:pointer;
}

.work-filters button span{
  min-width:21px;
  padding:2px 6px;
  background:#edf1f5;
  border-radius:999px;
  font-size:10px;
}

.work-filters button.active{
  color:#fff;
  background:#08796f;
}

.work-filters button.active span{
  color:#08796f;
  background:#fff;
}

.work-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.work-item{
  position:relative;
  display:flex;
  align-items:stretch;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:15px;
  box-shadow:0 7px 20px rgba(20,35,60,.05);
}

.work-item-status{flex:0 0 5px;background:#8a98aa}
.work-item-status.status-active{background:#0a9e67}
.work-item-status.status-submitted{background:#3979dd}
.work-item-status.status-completed{background:#11a35b}
.work-item-status.status-rejected{background:#d94a4a}
.work-item-status.status-pending{background:#e7a52a}

.work-main{flex:1;padding:18px 20px}

.work-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:14px;
}

.work-title-row h2{margin:4px 0 0;font-size:17px}
.work-category{
  color:#08796f;
  font-size:10px;
  font-weight:800;
  letter-spacing:.7px;
  text-transform:uppercase;
}

.work-meta{
  display:grid;
  grid-template-columns:1fr 90px 1.4fr 130px;
  gap:9px;
}

.work-meta > div{
  padding:9px 11px;
  background:#f8fafc;
  border-radius:9px;
}

.work-meta span,
.work-meta strong,
.work-meta small{display:block}

.work-meta span{
  margin-bottom:4px;
  color:var(--muted);
  font-size:10px;
}

.work-meta strong{font-size:12px}
.work-meta small{margin-top:3px;color:var(--muted);font-size:10px}
.work-meta .work-overdue{color:#a12626;background:#fff0f0}
.work-payment{color:#08796f}

.work-actions{
  display:flex;
  align-items:center;
  padding:18px;
  border-left:1px solid var(--line);
}

.work-actions .btn{white-space:nowrap}
.work-item[hidden]{display:none}

.work-empty,
.work-no-results{
  padding:55px 20px;
  text-align:center;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
}

.work-empty-icon{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 auto 15px;
  color:#08796f;
  background:#e2f5f1;
  border-radius:17px;
}

.work-empty-icon .nav-svg{width:27px;height:27px}
.work-empty h2,.work-no-results h3{margin-bottom:7px}
.work-empty p,.work-no-results p{color:var(--muted)}

@media(max-width:900px){
  .work-meta{grid-template-columns:1fr 1fr}
  .work-item{flex-direction:column}
  .work-item-status{height:5px}
  .work-actions{padding-top:0;border-left:0}
  .work-actions .btn{width:100%;text-align:center}
}

@media(max-width:650px){
  .work-hero{align-items:flex-start;flex-direction:column}
  .work-summary{grid-template-columns:1fr 1fr}
  .work-summary div{border-bottom:1px solid var(--line)}
  .work-title-row{flex-direction:column}
  .work-meta{grid-template-columns:1fr}
}
/* Modern writer wallet */
.wallet-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-bottom:17px;
  padding:26px 28px;
  color:#fff;
  background:linear-gradient(135deg,#08766d,#0b9185);
  border-radius:18px;
  box-shadow:0 14px 35px rgba(8,118,109,.18);
}

.wallet-hero h1{margin:3px 0 5px;color:#fff}
.wallet-hero p{margin:0;color:rgba(255,255,255,.82)}

.wallet-main-balance{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:220px;
  padding-left:24px;
  border-left:1px solid rgba(255,255,255,.25);
}

.wallet-main-balance span,
.wallet-main-balance small{
  color:rgba(255,255,255,.77);
  font-size:11px;
}

.wallet-main-balance strong{
  margin:3px 0;
  font-size:28px;
}

.wallet-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-bottom:17px;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:15px;
  overflow:hidden;
}

.wallet-summary-grid div{
  padding:18px 21px;
  border-right:1px solid var(--line);
}

.wallet-summary-grid div:last-child{border-right:0}
.wallet-summary-grid span{display:block;color:var(--muted);font-size:11px}
.wallet-summary-grid strong{display:block;margin-top:6px;font-size:20px}

.wallet-layout{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);
  gap:17px;
  margin-bottom:17px;
}

.wallet-card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:16px;
  box-shadow:0 8px 24px rgba(20,35,60,.05);
}

.wallet-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 20px;
  border-bottom:1px solid var(--line);
}

.wallet-card-head h2{margin:3px 0 0;font-size:18px}
.wallet-card-head .writer-eyebrow{color:#08796f}

.wallet-form{padding:20px}
.wallet-form label:first-child{margin-top:0}

.wallet-amount-input{
  display:flex;
  align-items:center;
  overflow:hidden;
  border:1px solid var(--line-strong);
  border-radius:11px;
}

.wallet-amount-input span{
  align-self:stretch;
  display:grid;
  place-items:center;
  padding:0 15px;
  color:#08796f;
  background:#e5f5f2;
  font-size:12px;
  font-weight:800;
}

.wallet-amount-input input{
  border:0;
  border-radius:0;
  font-size:19px;
  font-weight:800;
}

.wallet-use-all{
  margin-top:7px;
  padding:0;
  color:#08796f;
  background:transparent;
  border:0;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.wallet-notice{
  margin:17px 0;
  padding:13px 15px;
  color:#62501d;
  background:#fff8df;
  border:1px solid #f1df9e;
  border-radius:10px;
}

.wallet-notice strong{font-size:12px}
.wallet-notice p{margin:4px 0 0;font-size:11px;line-height:1.5}

.wallet-steps{padding:8px 20px}
.wallet-steps > div{
  display:flex;
  gap:12px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.wallet-steps > div:last-child{border-bottom:0}
.wallet-steps > div > span{
  display:grid;
  place-items:center;
  flex:0 0 32px;
  height:32px;
  color:#08796f;
  background:#e3f5f1;
  border-radius:10px;
  font-weight:900;
}

.wallet-steps p{margin:0;color:var(--muted);font-size:12px}
.wallet-steps strong{display:block;margin-bottom:3px;color:var(--text)}

.wallet-history-count{
  padding:5px 9px;
  color:#08796f;
  background:#e3f5f1;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}

.wallet-history-list{padding:5px 20px}
.wallet-transaction{
  display:flex;
  align-items:center;
  gap:13px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.wallet-transaction:last-child{border-bottom:0}

.wallet-transaction-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  color:#08796f;
  background:#e3f5f1;
  border-radius:11px;
}

.wallet-transaction-icon .nav-svg{width:19px;height:19px}
.wallet-transaction-main{flex:1}
.wallet-transaction-main strong,
.wallet-transaction-main span{display:block}
.wallet-transaction-main span{margin-top:3px;color:var(--muted);font-size:11px}

.wallet-transaction-amount{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.wallet-transaction-amount > strong{font-size:14px}
.wallet-empty{text-align:center;padding:42px 20px}
.wallet-empty > div{color:#08796f}
.wallet-empty .nav-svg{width:31px;height:31px}
.wallet-empty h3{margin:9px 0 5px}
.wallet-empty p{margin:0;color:var(--muted)}

@media(max-width:850px){
  .wallet-layout{grid-template-columns:1fr}
}

@media(max-width:650px){
  .wallet-hero{align-items:flex-start;flex-direction:column}
  .wallet-main-balance{
    align-items:flex-start;
    width:100%;
    padding:14px 0 0;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.25);
  }

  .wallet-summary-grid{grid-template-columns:1fr}
  .wallet-summary-grid div{border-right:0;border-bottom:1px solid var(--line)}
  .wallet-transaction{align-items:flex-start}
}