/* SGW Sniper – "Mac White" style, modelled on myibidder's classic skin. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #ececec;
  font: 12px Arial, Helvetica, sans-serif;
  color: #808081;
}
a { color: #4d5054; }
a:hover { color: #222; }
.hint { color: #999; font-weight: normal; font-size: 11px; }
.hidden { display: none; }
form.inline { display: inline; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], select {
  font: 13px Arial, Helvetica, sans-serif;
  color: #222;
  border: 1px solid #7a7a7a;
  background: #fff;
  padding: 2px 3px;
}
select { padding: 1px; }

/* ---------- page frame ---------- */
#content {
  width: 1002px;
  margin: 0 auto;
  background: #e2e2e2;
  border: 1px dotted #808081;
  border-top: none;
  min-height: 300px;
}

/* ---------- toolbar ---------- */
#top {
  position: relative;
  height: 106px;
  background:
    linear-gradient(#a3a3a3, #a3a3a3) 0 70px / 100% 1px no-repeat,
    linear-gradient(#fbfbfb, #f6f6f6 2px, #e9e9e9 69px, #f3f3f3 71px, #e6e6e6 89px, #e8e8e8 90px, #e8e8e8);
  border-top: 1px dotted #808081;
}
#top.plain { height: 60px; background: linear-gradient(#fbfbfb, #e6e6e6); border-bottom: 1px solid #a3a3a3; }
#top .brand { padding: 18px 24px; font: bold 22px Arial, sans-serif; color: #707070; text-shadow: 0 1px 0 #fff; }
#tools { list-style: none; margin: 0; padding: 0 0 0 10px; display: flex; }
#tools li { width: 85px; text-align: center; }
#tools a { text-decoration: none; display: block; }
#tools .tile {
  display: block;
  width: 62px; height: 52px;
  margin: 9px auto 0;
  border-radius: 10px;
  border: 1px solid #9aa5b5;
  background: linear-gradient(#e3e7ee, #cfd6e1 50%, #bac4d3 51%, #c6cfdc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.25);
}
#tools .tile svg { width: 40px; height: 40px; margin-top: 6px; fill: #fff; filter: drop-shadow(0 1px 1px rgba(40,50,70,.55)); }
#tools li.on .tile, #tools a:hover .tile {
  border-color: #6f86b0;
  background: linear-gradient(#c9d6ee, #a6bbe0 50%, #8ea8d6 51%, #9fb5dd);
}
#tools .lbl {
  display: block;
  margin-top: 10px;
  font: bold 13px Arial, sans-serif;
  color: #707070;
  text-shadow: 0 1px 0 #fff;
}
#avatar {
  position: absolute; left: 712px; top: 2px;
  width: 95px; height: 85px;
  border-radius: 9px;
  border: 1px solid #c4c4c4;
  background: linear-gradient(#fafafa, #e4e4e4);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  text-align: center;
}
#avatar svg { width: 64px; height: 64px; margin-top: 10px; fill: #8a97ab; }
#userbox { position: absolute; left: 820px; top: 10px; width: 170px; font-weight: bold; color: #808080; }
#userbox .who { font-size: 12px; margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#userbox .links { display: flex; justify-content: space-between; padding-right: 8px; }
#userbox a { font-size: 13px; color: #808080; text-decoration: none; }
#userbox a:hover, #userbox a.on { color: #444; }
#tools .tile { position: relative; }
#tools .badge {
  position: absolute; top: -7px; right: -9px;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; border: 1px solid #fff;
  background: #6f86b0; color: #fff; font: bold 11px/16px Arial, sans-serif;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
#tools .badge.empty { background: #b0302a; }

#optbar {
  height: 18px;
  padding: 2px 12px 0;
  text-align: right;
  font-size: 11px;
  background: linear-gradient(#ececec, #e3e3e3);
  border-bottom: 1px solid #f6f6f6;
}
#optbar a, #optbar .linkbtn { color: #8a8a8a; text-decoration: none; margin-left: 12px; font: 11px Arial, sans-serif; }
#optbar a:hover, #optbar .linkbtn:hover { color: #333; text-decoration: underline; }
.linkbtn { background: none; border: none; padding: 0; cursor: pointer; }

/* ---------- flash ---------- */
.flash { margin: 8px 12px; padding: 7px 10px; border: 1px solid; font-size: 12px; font-weight: bold; }
.flash.ok { background: #eef6e8; border-color: #a9c79a; color: #3f6b2e; }
.flash.error { background: #fbeceb; border-color: #d8a29d; color: #8a2a22; }

/* ---------- buttons ---------- */
.pill {
  display: inline-block;
  font: 10px Arial, sans-serif;
  text-transform: uppercase;
  color: #777;
  text-decoration: none;
  padding: 3px 16px;
  border: 1px solid #b4b4b4;
  border-radius: 9px;
  background: linear-gradient(#fdfdfd, #ececec 50%, #dedede 51%, #e8e8e8);
  box-shadow: inset 0 1px 0 #fff;
  cursor: pointer;
  vertical-align: middle;
}
.pill:hover { color: #333; border-color: #8f8f8f; }
.pill.small { padding: 3px 12px; }
.minus {
  width: 22px; height: 18px;
  border: 1px solid #8796ab;
  border-radius: 4px;
  background: linear-gradient(#dce3ee, #aab7ca);
  color: #555;
  font: bold 14px/12px Arial, sans-serif;
  cursor: pointer;
}
button.link {
  background: none; border: none; padding: 0;
  font: bold 12px Arial, sans-serif; color: #4d5054; text-decoration: underline; cursor: pointer;
}
button.link[disabled] { color: #aaa; cursor: default; }

/* ---------- add row ---------- */
.addrow {
  margin: 0;
  padding: 5px 24px;
  background: linear-gradient(#ececec, #dedede);
  border-top: 1px solid #f9f9f9;
  border-bottom: 1px solid #d0d0d0;
  font-size: 13px;
  color: #888;
}
.addrow label { margin-right: 4px; }
.addrow select { max-width: 240px; }
.addrow .pill { margin-left: 12px; }
.addrow .hint { margin-left: 10px; }

/* ---------- list ---------- */
.listhead { display: flex; justify-content: space-between; padding: 6px 12px 2px 24px; font-size: 11px; }
.listhead .where { color: #777; }
.pager .range { display: inline-block; padding: 1px 8px; background: #d0d5d9; color: #4d5054; font-weight: bold; border-right: 1px solid #999; }
.pager a { text-decoration: none; padding: 0 4px; font-weight: bold; }
table.list { width: 100%; border-collapse: separate; border-spacing: 0 2px; padding: 0 6px; }
table.list th { font: bold 11px Arial, sans-serif; color: #555; padding: 4px 4px; text-align: center; }
table.list th.title { text-align: center; }
table.list tr.head th { background: transparent; }
table.list td {
  background: #d0d5d9;
  color: #4d5054;
  padding: 1px 3px;
  height: 30px;
  border-right: 1px solid #e2e5e8;
  vertical-align: middle;
}
table.list td:last-child { border-right: none; }
table.list td.cb, table.list th.cb { width: 26px; text-align: center; background: transparent; border: none; }
table.list tr.foot td { background: transparent; border: none; height: 24px; }
table.list td.img { width: 44px; text-align: center; padding: 1px; }
table.list td.img img { max-width: 40px; max-height: 32px; display: block; margin: 0 auto; }
table.list td.num { text-align: center; width: 92px; }
table.list td.num a { text-decoration: none; }
table.list td.title { font-weight: bold; font-size: 13px; }
table.list td.title a { color: #4d5054; text-decoration: none; }
table.list td.title a:hover { text-decoration: underline; }
table.list td.seller { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.list td.money { text-align: right; font-weight: bold; width: 66px; font-size: 13px; }
table.list .cur { color: #8a8d91; font-weight: bold; }
table.list td.c { text-align: center; width: 36px; }
table.list td.timeleft { text-align: right; font-weight: bold; width: 82px; white-space: nowrap; font-size: 13px; }
table.list td.mybid { width: 60px; font-weight: bold; text-align: right; font-size: 13px; }
table.list td.mybid.armed { background: #d797a7; }
table.list td.mybid.armed .cur { color: #8b5664; }
table.list td.mybid.win { background: #a9cf98; color: #24481a; }
table.list td.mybid.win .cur { color: #4b7a3a; }
table.list td.mybid.lose { background: #e58f86; color: #5e1712; }
table.list td.mybid.lose .cur { color: #8e3a32; }
table.list td.mybid.bad { color: #8a2a22; }
table.list td.mybid .st { font-size: 10px; font-weight: normal; text-transform: uppercase; }
table.list td.grp { max-width: 90px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.list td.notes { max-width: 120px; font-size: 11px; }
table.list td.act { width: 64px; text-align: center; background: #d0d5d9; }
table.list td.noitems { background: transparent; font: bold 13px Arial, sans-serif; color: #555; height: 22px; }
table.list tr.ended td:not(.cb) { background: #dadde0; color: #7b7f84; }
table.list tr.wonrow td:not(.cb) { background: #d3e3cc; }
.result { font-weight: bold; }
.result.won { color: #2f6e1e; }
.result.lost { color: #8a4a44; }
.countdown.soon { color: #b0302a; }

/* ---------- pages with panels ---------- */
.page { padding: 14px 0 20px; }
.page.narrow { width: 420px; margin: 0 auto; padding-top: 50px; }
.page.narrow .pbody.form .hint { margin: 4px 0 8px; line-height: 14px; }
.altlink { text-align: center; font: bold 12px Arial, sans-serif; color: #555; margin: 4px 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* bot trap */
.panel { margin: 0 auto 14px; }
.panel.wide { width: 750px; }
.cols { width: 750px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-start; }
.cols > .half, .cols > .panel.half { width: 365px; flex: none; }
.phead {
  height: 18px;
  padding: 3px 10px 0;
  font: bold 10px Arial, sans-serif;
  color: #444;
  background: linear-gradient(#f2f2f2, #e7e7e7);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #999;
}
.pbody { background: #efefef; padding: 10px; }
.pbody p { margin: 0 0 12px; }
.pbody.help { color: #333; font-size: 12px; line-height: 14px; text-align: justify; }
.pbody.help a { color: #333; }
.pbody.faq h3 { font-size: 13px; color: #444; margin: 14px 0 4px; }
.pbody.faq h3:first-child { margin-top: 0; }
.pbody.faq ol { margin: 0 0 10px; padding-left: 20px; }

table.kv { border-collapse: collapse; }
table.kv th { text-align: right; font: bold 12px Arial, sans-serif; color: #333; padding: 2px 6px 2px 0; white-space: nowrap; vertical-align: top; }
table.kv td { font: bold 12px Arial, sans-serif; color: #555; padding: 2px 0; }
table.kv th a { color: #333; }

.pbody.info { display: flex; gap: 10px; }
.pbody.info .pic { width: 100px; flex: none; }
.pbody.info .pic img { width: 100px; height: 100px; object-fit: cover; border: 1px solid #c8c8c8; display: block; }
.pbody.info .nopic { width: 100px; height: 100px; border: 1px solid #c8c8c8; background: #e4e4e4; color: #aaa; text-align: center; line-height: 100px; }
.pbody.info td a { color: #555; }

.pbody.snipe { padding: 14px 10px; }
.pbody.snipe.active { background: #cf9fff; }
.pbody.snipe table.kv th { width: 120px; padding: 5px 6px 5px 0; }
.pbody.snipe table.kv td { padding: 3px 0; }
.pbody.snipe .cur { color: #6c6c6c; font-weight: bold; }
.snipestatus { margin-top: 10px; padding: 6px 8px; background: rgba(255,255,255,.55); color: #333; font-size: 12px; }
.snipestatus .msg { margin-top: 4px; font-weight: normal; }
.snipestatus.st-failed { color: #8a2a22; }
.snipestatus.st-placed { color: #2f6e1e; }

.tabbar { margin: 0; text-align: center; background: linear-gradient(#e6e6e6, #e2e2e2); border-top: 1px solid #a0a0a0; height: 17px; }
.tab {
  position: relative; top: -1px;
  display: inline-block;
  min-width: 92px;
  padding: 2px 20px 3px;
  font: bold 11px Arial, sans-serif;
  color: #555;
  background: linear-gradient(#f3f3f3, #e1e1e1);
  border: 1px solid #a0a0a0;
  border-top: none;
  border-radius: 0 0 3px 3px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  cursor: pointer;
}
.tab:hover { color: #222; background: linear-gradient(#fff, #e9e9e9); }

/* forms in panels */
.pbody.form { padding: 10px 14px; }
.frow { display: flex; align-items: center; margin: 6px 0; }
.frow > label { width: 170px; flex: none; text-align: right; padding-right: 8px; font: bold 12px Arial, sans-serif; color: #333; }
.frow .val { font: bold 12px Arial, sans-serif; color: #555; }
.frow .status-linked { color: #2f6e1e; }
.frow .status-error { color: #8a2a22; }
.colsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding-left: 40px; }
.colchk { font: bold 12px Arial, sans-serif; color: #555; }

/* tools */
.pbody.tools .trow { display: flex; gap: 12px; margin: 6px 0; align-items: baseline; }
.pbody.tools .trow > a.link, .pbody.tools .trow > form { width: 210px; flex: none; text-align: right; font-weight: bold; }
.pbody.tools .trow > span { color: #555; }

/* groups */
.grouprow { display: flex; align-items: center; gap: 12px; padding: 8px 24px; background: linear-gradient(#ececec, #dedede); border-bottom: 1px solid #d0d0d0; }
.grouprow .spacer { flex: 1; }
input.gname { width: 350px; }
table.groups { width: 100%; border-collapse: separate; border-spacing: 0 2px; padding: 4px 6px; }
table.groups th { font: bold 11px Arial, sans-serif; color: #555; padding: 4px; }
table.groups tr.g td { background: #d0d5d9; color: #4d5054; padding: 2px 4px; height: 26px; }
table.groups tr.g td.c { text-align: center; font-weight: bold; }
table.groups tr.ungrouped td { background: #c9cfd5; font-size: 13px; }
table.groups input.gname { width: 98%; }
.important { margin: 12px 30px 10px; color: #777; font-size: 12px; line-height: 15px; max-width: 720px; }
.important .ttl { font-weight: bold; text-decoration: underline; margin-bottom: 6px; color: #777; font-size: 13px; }

/* log */
table.log { width: 100%; border-collapse: collapse; }
table.log td { padding: 3px 6px; border-bottom: 1px solid #ddd; color: #444; vertical-align: top; }
table.log td.when { white-space: nowrap; width: 170px; color: #777; }
table.log td.num { width: 90px; }
table.log tr.lv-warn td { color: #8a6d1e; }
table.log tr.lv-error td { color: #8a2a22; font-weight: bold; }

#footer { text-align: right; padding: 10px 20px 8px; font: bold 11px Arial, sans-serif; color: #555; }

/* fixes */
.frow input[type=text], .frow input[type=email], .frow input[type=password] { width: 165px; }
.frow input[name=default_snipe_seconds], .frow input[name=default_group_to_win] { width: 50px; margin-right: 4px; }
table.list td form.inline { white-space: nowrap; }
table.list td form.inline input[type=text] { width: 62px; }
table.list td form.inline select { max-width: 92px; }

/* ---------- paid service: account, admin, legal ---------- */
#footer a { color: #555; }
label.accept { width: auto !important; text-align: left !important; font-weight: normal !important; padding: 0 !important; color: #444; line-height: 15px; }
label.accept input { vertical-align: -2px; margin-right: 4px; }
/* In a form row: wrap inside the box, wrapped lines start under the text, not under the checkbox. */
.frow > label.accept { flex: 0 1 auto; min-width: 0; padding-left: 19px !important; text-indent: -19px; }
.frow > label.accept input { margin: 0 3px 0 0; }
.acctbox { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; font: 12px Arial, sans-serif; color: #444; padding: 2px 8px; }
.acctbox b { text-align: right; }
.acctbox .total { border-top: 1px solid #ccc; padding-top: 3px; font-weight: bold; }
.acctbox .note { grid-column: 1 / -1; color: #777; font-size: 11px; margin-top: 4px; }
table.grid { width: 100%; border-collapse: collapse; font: 12px Arial, sans-serif; }
table.grid th { text-align: left; color: #555; font-size: 11px; padding: 4px 6px; border-bottom: 1px solid #bbb; }
table.grid td { padding: 4px 6px; border-bottom: 1px solid #ddd; color: #444; vertical-align: middle; }
table.grid td.r, table.grid th.r { text-align: right; }
table.grid tr.muted td { color: #999; }
table.grid input[type=text] { width: 60px; }
table.grid input.wide { width: 140px; }
.offers { display: grid; gap: 6px; margin: 4px 0 10px; }
.offers label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f7f7f7; border: 1px solid #d3d3d3; border-radius: 3px; cursor: pointer; font: 12px Arial, sans-serif; color: #333; }
.offers label b { min-width: 80px; }
.offers label .price { margin-left: auto; color: #555; }
.paybtns { display: flex; gap: 10px; margin-top: 8px; }
.testmode { background: #fff6d8; border: 1px solid #e3cf8a; color: #6d5a1a; padding: 5px 8px; font: bold 11px Arial, sans-serif; margin-bottom: 8px; }
.admintabs { width: 900px; margin: 0 auto 8px; font: bold 12px Arial, sans-serif; }
.admintabs a { margin-right: 14px; color: #666; text-decoration: none; }
.admintabs a.on { color: #222; text-decoration: underline; }
.panel.xwide { width: 900px; }
.legal { background: #fff; padding: 18px 26px; font: 13px/1.5 Georgia, 'Times New Roman', serif; color: #222; }
.legal h2 { font: bold 14px Arial, sans-serif; margin: 18px 0 6px; color: #333; }
.legal h1 { font: bold 18px Arial, sans-serif; margin: 0 0 4px; }
.legal .meta { color: #777; font: 12px Arial, sans-serif; margin-bottom: 14px; }
.legal .box { border: 1px solid #d8a29d; background: #fbeceb; padding: 8px 12px; margin: 10px 0; }

/* ---------- admin: users ---------- */
.typefilter { margin: 0 0 8px; font: bold 12px Arial, sans-serif; }
.typefilter a { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 10px; color: #555; text-decoration: none; border: 1px solid #c9c9c9; background: #f4f4f4; }
.typefilter a.on { background: #6f86b0; border-color: #5a6f97; color: #fff; }
.type { display: inline-block; padding: 1px 7px; border-radius: 3px; font: bold 11px Arial, sans-serif; background: #e3e3e3; color: #555; }
.type.t-paying { background: #dbe7f6; color: #2d4f80; }
.type.t-subscription { background: #d8ecd0; color: #2f5e22; }
.type.t-admin { background: #3e4a5e; color: #fff; }
.type.t-blocked { background: #f1d1ce; color: #8a2a22; }
table.grid.users tr.blocked td { color: #999; }
table.grid.users a { color: #333; }
table.grid a.pill { text-decoration: none; color: #444; }
.crumbs { width: 900px; margin: 0 auto 6px; font: 12px Arial, sans-serif; }
.crumbs a { color: #666; text-decoration: none; }
table.facts { border-collapse: collapse; font: 12px Arial, sans-serif; }
table.facts th { text-align: right; color: #666; padding: 3px 12px 3px 0; font-weight: bold; white-space: nowrap; }
table.facts td { padding: 3px 0; color: #333; }
.admincols { width: 900px; margin: 0 auto; display: flex; gap: 12px; align-items: flex-start; }
.admincols > .panel { flex: 1 1 0; margin: 0 0 14px; min-width: 0; }
.admincols .frow > label:not(.accept) { width: 100px; white-space: nowrap; }
.admincols .frow > label.accept { width: auto; text-align: left; font-weight: normal; }
.admincols .frow input[type=text], .admincols .frow input[type=password] { width: 140px; min-width: 0; }
.admincols .hint { line-height: 15px; }
.confirm-change { margin-top: 12px; border-top: 1px solid #ddd; padding-top: 8px; }
.confirm-change .frow input[type=email] { width: 250px; }
.warnline { color: #8a2a22 !important; }
.status-error { color: #8a2a22; }
