/* ============================================================
   ClassicStory+ CMS — MapleStory GMS Classic Theme
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #a8a8a8 url('img/bg_tile.png') repeat;
    font-family: Arial, Verdana, sans-serif;
    font-size: 11px;
    color: #222;
    line-height: 1.4;
}
a { color: #1155aa; text-decoration: none; }
a:hover { color: #e87000; text-decoration: underline; }
img { border: 0; max-width: 100%; display: block; }

/* ── SITE WRAPPER ───────────────────────────── */
#wrap {
    width: 1000px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

/* ── TOP BAR ────────────────────────────────── */
#topbar {
    background: #1a1a2e;
    color: #aaa;
    font-size: 10px;
    padding: 3px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#topbar a { color: #ccc; font-size: 10px; }
#topbar a:hover { color: #e87000; text-decoration: none; }
#topbar .top-right { display: flex; gap: 10px; }

/* ── HEADER ─────────────────────────────────── */
#header {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border-bottom: 3px solid #e87000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    overflow: hidden;
}
#logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#logo:hover { text-decoration: none; }
.logo-leaf { font-size: 36px; color: #cc2200; line-height: 1; }
.logo-name {
    font-size: 30px; font-weight: 900;
    font-family: 'Arial Black', Arial, sans-serif;
    color: #e87000; letter-spacing: -1px; line-height: 1;
}
.logo-name .plus { color: #cc2200; }
.logo-tag { font-size: 10px; color: #888; margin-top: 2px; letter-spacing: 0.5px; }
.header-right { text-align: right; font-size: 10px; color: #999; }
.header-right strong { color: #e87000; font-size: 13px; display: block; }

/* ── NAVIGATION ─────────────────────────────── */
#nav {
    background: linear-gradient(180deg, #f28c00 0%, #d97200 100%);
    border-bottom: 2px solid #b85e00;
    height: 34px;
    display: flex;
    align-items: stretch;
}
#nav a {
    display: flex; align-items: center;
    padding: 0 18px; color: #fff;
    font-size: 11px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    height: 100%;
}
#nav a:hover, #nav a.active {
    background: rgba(0,0,0,0.2); color: #fff; text-decoration: none;
}
#nav a:first-child { border-left: 1px solid rgba(255,255,255,0.2); }

/* ── LAYOUT ─────────────────────────────────── */
#main {
    display: flex;
    align-items: flex-start;
    background: #d8d8d8;
    min-height: 500px;
    overflow: hidden;
}
#col-left {
    width: 210px; flex: 0 0 210px;
    padding: 8px 6px;
    background: #e2e2e2;
    border-right: 1px solid #c0c0c0;
    overflow: hidden;
}
#col-center {
    width: 590px; flex: 0 0 590px;
    padding: 8px 7px;
    background: #f4f4f4;
    overflow: hidden;
}
#col-right {
    width: 200px; flex: 0 0 200px;
    padding: 8px 6px;
    background: #e2e2e2;
    border-left: 1px solid #c0c0c0;
    overflow: hidden;
}

/* ── PANEL ──────────────────────────────────── */
.box {
    background: #fff;
    border: 1px solid #c8c8c8;
    margin-bottom: 7px;
    overflow: hidden;
}
.box-title {
    background: linear-gradient(180deg, #f28c00 0%, #d97200 100%);
    color: #fff; font-size: 11px; font-weight: bold;
    padding: 5px 9px; text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #b85e00;
}
.box-title .more {
    color: #ffe0b0; font-size: 10px; font-weight: normal; text-decoration: none;
}
.box-title .more:hover { color: #fff; }
.box-body { padding: 7px 9px; }

/* ── LOGIN ──────────────────────────────────── */
.lf {
    display: flex; align-items: center;
    border: 1px solid #ccc; background: #fafafa;
    margin-bottom: 4px; padding: 2px 6px;
}
.lf span { color: #bbb; font-size: 13px; margin-right: 5px; width: 16px; }
.lf input {
    flex: 1; border: none; outline: none;
    padding: 4px 0; font-size: 11px; color: #444; background: transparent;
}
.lf input:focus { border-color: #e87000; }
.btn { display: block; width: 100%; border: none; padding: 5px 0; font-size: 11px; font-weight: bold; cursor: pointer; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; margin-bottom: 3px; }
.btn-orange { background: linear-gradient(180deg,#f5a000,#d97200); color:#fff; border:1px solid #b85e00; }
.btn-orange:hover { background: linear-gradient(180deg,#d97200,#b85e00); color:#fff; text-decoration:none; }
.btn-blue { background: linear-gradient(180deg,#3377cc,#1a55aa); color:#fff; border:1px solid #0a3388; }
.btn-blue:hover { background: linear-gradient(180deg,#1a55aa,#0a3388); color:#fff; text-decoration:none; }
.btn-gray { background: linear-gradient(180deg,#888,#555); color:#fff; border:1px solid #333; }
.btn-gray:hover { background: linear-gradient(180deg,#666,#333); color:#fff; text-decoration:none; }
.find-links { text-align:center; margin-top:4px; font-size:10px; color:#999; }
.find-links a { color:#888; }
.find-links a:hover { color:#e87000; }
.find-links .sep { margin:0 4px; color:#ddd; }
.welcome { padding:4px 0 5px; font-size:11px; }
.welcome .wname { font-weight:bold; color:#e87000; font-size:13px; }
.welcome .wsub { color:#777; font-size:10px; }

/* ── DOWNLOAD BOX ───────────────────────────── */
.dl-box {
    background: linear-gradient(180deg,#1e8040,#145a2c);
    border: 1px solid #0e3d1e; color: #fff;
    padding: 10px 9px; text-align: center;
    margin-bottom: 7px; overflow: hidden;
}
.dl-box .dl-icon { font-size: 34px; margin-bottom: 4px; }
.dl-box .dl-free { font-size: 10px; font-weight: bold; color: #aaffaa; letter-spacing: 1px; }
.dl-box .dl-big { font-size: 22px; font-weight: 900; font-family:'Arial Black',Arial; color:#fff; text-shadow:1px 1px 3px rgba(0,0,0,0.5); line-height:1.1; }
.dl-box .dl-sub { font-size: 10px; color: #88ddaa; margin: 3px 0 8px; }
.btn-dl { display:inline-block; background:linear-gradient(180deg,#f5a000,#d97200); color:#fff; padding:5px 18px; font-size:11px; font-weight:bold; text-decoration:none; border:1px solid #b85e00; letter-spacing:0.5px; text-transform:uppercase; }
.btn-dl:hover { background:linear-gradient(180deg,#d97200,#b85e00); color:#fff; text-decoration:none; }

/* ── SERVER INFO ────────────────────────────── */
.status-row { display:flex; align-items:center; padding:3px 0 5px; font-weight:bold; color:#228822; font-size:11px; }
.dot { width:9px; height:9px; border-radius:50%; background:#44cc44; display:inline-block; margin-right:6px; box-shadow:0 0 5px #44cc44; }
.irow { display:flex; justify-content:space-between; padding:2px 0; border-bottom:1px dotted #eee; font-size:11px; }
.irow:last-child { border-bottom:none; }
.irow .l { color:#666; }
.irow .v { color:#e87000; font-weight:bold; }
.irow .v.g { color:#888; font-weight:normal; }

/* ── RATES ──────────────────────────────────── */
.rrow { display:flex; justify-content:space-between; align-items:center; padding:3px 0; border-bottom:1px dotted #eee; font-size:11px; }
.rrow:last-child { border-bottom:none; }
.rrow .l { color:#555; }
.rrow .v { background:#e87000; color:#fff; font-size:10px; font-weight:bold; padding:1px 6px; border-radius:2px; }

/* ── HERO BANNER ────────────────────────────── */
.hero {
    width: 576px; height: 240px;
    overflow: hidden; position: relative;
    border: 1px solid #bbb; margin-bottom: 7px;
    background: linear-gradient(135deg,#7ec8e3 0%,#b0e0ff 25%,#c8eebc 65%,#5db840 100%);
}
.hero img {
    position: absolute; top:0; left:0;
    width:100%; height:100%; object-fit:cover;
}
.hero-text {
    position: absolute; top:0; left:0; bottom:0;
    width: 280px;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 20px;
}
.hero-title {
    font-size: 28px; font-weight: 900; color: #fff;
    font-family: 'Arial Black', Arial; line-height: 1.05;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}
.hero-title em { color: #ffdd00; font-style: normal; }
.hero-sub { font-size: 11px; color: #ddd; margin: 8px 0 12px; line-height: 1.5; text-shadow:1px 1px 2px rgba(0,0,0,0.7); }
.hero-btn {
    display: inline-block; background: linear-gradient(180deg,#f5a000,#d97200);
    color: #fff; padding: 6px 16px; font-size: 11px; font-weight: bold;
    text-decoration: none; border: 1px solid #b85e00; text-transform: uppercase;
    width: fit-content; letter-spacing: 0.5px;
}
.hero-btn:hover { background:linear-gradient(180deg,#d97200,#b85e00); color:#fff; text-decoration:none; }
.hero-nav {
    position: absolute; bottom: 8px; right: 10px;
    display: flex; gap: 3px;
}
.hero-nav span {
    width: 20px; height: 20px; background: rgba(0,0,0,0.45);
    color: #fff; font-size: 10px; font-weight: bold;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-nav span.on { background: #e87000; }

/* ── TWO-COL / THREE-COL ────────────────────── */
.row2 { display:flex; gap:7px; margin-bottom:7px; }
.row2 .box { flex:1; margin-bottom:0; }
.row3 { display:flex; gap:7px; }
.row3 .box { flex:1; margin-bottom:0; }

/* ── NEWS ITEMS ─────────────────────────────── */
.ni { display:flex; align-items:center; padding:3px 0; border-bottom:1px dotted #eee; gap:5px; font-size:11px; }
.ni:last-child { border-bottom:none; }
.tag { display:inline-block; padding:1px 5px; font-size:9px; font-weight:bold; color:#fff; text-transform:uppercase; min-width:52px; text-align:center; flex-shrink:0; }
.tag-gameup  { background:#cc2222; }
.tag-notice  { background:#2255bb; }
.tag-update  { background:#228833; }
.tag-event   { background:#e87000; }
.tag-info    { background:#666; }
.tag-progress{ background:#886600; }
.ni-title { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ni-title a { color:#333; }
.ni-title a:hover { color:#e87000; text-decoration:underline; }
.ni-date { color:#aaa; font-size:10px; flex-shrink:0; margin-left:3px; }

/* ── RANKING TABLE ──────────────────────────── */
.rtbl { width:100%; border-collapse:collapse; font-size:11px; }
.rtbl thead th { background:#f5f5f5; padding:4px 5px; font-weight:bold; color:#555; font-size:10px; text-align:left; border-bottom:2px solid #ddd; }
.rtbl tbody tr:nth-child(even) { background:#fafafa; }
.rtbl tbody tr:hover { background:#fff8f0; }
.rtbl tbody td { padding:3px 5px; border-bottom:1px dotted #eee; vertical-align:middle; }
.rn { font-weight:bold; color:#e87000; text-align:center; width:20px; }
.rname { font-weight:bold; color:#222; }
.rlvl { text-align:right; font-weight:bold; color:#2255aa; width:30px; }
.jdot { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:3px; vertical-align:middle; }

/* ── COMMUNITY ──────────────────────────────── */
.ci { display:flex; align-items:center; padding:4px 0; border-bottom:1px dotted #eee; gap:8px; }
.ci:last-child { border-bottom:none; }
.ci-ico { width:28px; height:28px; background:#e8f0ff; border:1px solid #c0d0ee; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.ci-title { font-weight:bold; font-size:11px; color:#222; }
.ci-desc { font-size:10px; color:#888; }

/* ── SUPPORT ────────────────────────────────── */
.sup-hd { background:linear-gradient(135deg,#ff8800,#e85500); color:#fff; padding:8px; text-align:center; margin-bottom:6px; }
.sup-hd .sh { font-weight:bold; font-size:12px; }
.sup-hd .ss { font-size:10px; opacity:.85; }
.si { display:flex; align-items:center; padding:3px 0; border-bottom:1px dotted #eee; gap:7px; font-size:11px; }
.si:last-child { border-bottom:none; }
.si-ico { width:22px; height:22px; background:#f8f8f8; border:1px solid #ddd; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }

/* ── RIGHT: PLAY FREE ───────────────────────── */
.play-ad {
    width: 188px; overflow: hidden;
    background: linear-gradient(180deg,#0a1f5c 0%,#1a3a8c 50%,#0c1e48 100%);
    border: 1px solid #06102e; color: #fff;
    text-align: center; margin-bottom: 7px;
    padding-bottom: 10px;
}
.play-ad img { width:100%; display:block; }
.play-ad .pa-text { padding: 6px 8px 0; }
.pa-tagline { font-size:10px; color:#aabbdd; margin-bottom:8px; }
.pa-btn {
    display:inline-block; background:linear-gradient(180deg,#f5a000,#d97200);
    color:#fff; padding:6px 20px; font-size:11px; font-weight:bold;
    text-decoration:none; border:1px solid #b85e00; text-transform:uppercase;
}
.pa-btn:hover { background:linear-gradient(180deg,#d97200,#b85e00); color:#fff; text-decoration:none; }

/* ── CASH SHOP ──────────────────────────────── */
.csi { display:flex; align-items:center; padding:3px 0; border-bottom:1px dotted #eee; gap:7px; font-size:11px; }
.csi:last-child { border-bottom:none; }
.csi-ico { width:26px; height:26px; background:#fff3e0; border:1px solid #ffd0a0; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }

/* ── MEDIA ──────────────────────────────────── */
.media { display:flex; gap:4px; }
.mbtn { flex:1; text-align:center; padding:7px 2px; border:1px solid #ddd; background:#f8f8f8; font-size:10px; color:#555; text-decoration:none; }
.mbtn:hover { background:#fff5ee; border-color:#e87000; color:#e87000; text-decoration:none; }
.mbtn .mi { font-size:17px; display:block; margin-bottom:2px; }

/* ── FOOTER ─────────────────────────────────── */
#footer {
    background: #1a1a2e; color: #888;
    padding: 14px 20px; font-size: 10px; text-align: center;
    border-top: 3px solid #e87000;
}
#footer .ft-links { margin-bottom: 6px; }
#footer .ft-links a { color: #aaa; padding: 0 8px; border-right: 1px solid #444; font-size: 11px; }
#footer .ft-links a:last-child { border-right: none; }
#footer .ft-links a:hover { color: #e87000; text-decoration: none; }
#footer .ft-copy { color: #666; font-size: 10px; }
#footer .ft-copy span { color: #e87000; }

/* ── INNER PAGE WRAPPER ─────────────────────── */
.page-body { padding: 16px 18px; background:#fff; min-height: 450px; }
.page-title {
    background: linear-gradient(180deg,#f28c00,#d97200);
    color: #fff; font-size: 13px; font-weight: bold;
    padding: 6px 12px; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid #b85e00;
    display: flex; align-items: center; gap: 8px;
}
.msg-ok  { background:#f0fff0; border:1px solid #88cc88; color:#006600; padding:7px 12px; margin-bottom:12px; font-size:11px; }
.msg-err { background:#fff0f0; border:1px solid #cc8888; color:#aa0000; padding:7px 12px; margin-bottom:12px; font-size:11px; }

/* ── FORMS ──────────────────────────────────── */
.form-wrap { max-width: 460px; }
.frow { display:flex; align-items:center; margin-bottom:7px; }
.frow label { width:150px; font-size:11px; font-weight:bold; color:#555; text-align:right; padding-right:12px; flex-shrink:0; }
.frow input[type=text],
.frow input[type=password],
.frow input[type=email],
.frow input[type=date],
.frow select {
    width:240px; padding:5px 8px; border:1px solid #ccc;
    font-size:11px; color:#333; background:#fff;
    outline:none;
}
.frow input:focus, .frow select:focus { border-color:#e87000; }
.frow .hint { font-size:10px; color:#aaa; margin-left:8px; }
.fsubmit { margin-left:150px; margin-top:8px; }
.fsubmit .btn { width:auto; display:inline-block; padding:6px 24px; }
.form-note { font-size:10px; color:#888; margin-top:12px; margin-left:150px; }
.form-note a { color:#e87000; }

/* ── RANKINGS PAGE ──────────────────────────── */
.rank-tabs { display:flex; gap:0; margin-bottom:12px; border-bottom:2px solid #e87000; }
.rank-tabs a { padding:6px 18px; font-size:11px; font-weight:bold; color:#666; background:#f0f0f0; border:1px solid #ddd; border-bottom:none; text-decoration:none; text-transform:uppercase; }
.rank-tabs a.active, .rank-tabs a:hover { background:#e87000; color:#fff; border-color:#e87000; text-decoration:none; }
.rank-full { width:100%; border-collapse:collapse; font-size:11px; }
.rank-full thead th { background:#e87000; color:#fff; padding:6px 8px; text-align:left; font-size:11px; }
.rank-full tbody tr:nth-child(even) { background:#fafafa; }
.rank-full tbody tr:hover { background:#fff8f0; }
.rank-full tbody td { padding:5px 8px; border-bottom:1px solid #eee; vertical-align:middle; }
.rank-full .r1 { color:#ffd700; font-weight:900; font-size:14px; }
.rank-full .r2 { color:#aaa; font-weight:900; font-size:13px; }
.rank-full .r3 { color:#cd7f32; font-weight:900; font-size:13px; }

/* ── DOWNLOAD PAGE ──────────────────────────── */
.dl-cards { display:flex; gap:12px; margin-bottom:20px; }
.dl-card { flex:1; border:1px solid #ddd; padding:16px; text-align:center; background:#fafafa; }
.dl-card h3 { font-size:14px; font-weight:bold; color:#333; margin-bottom:6px; }
.dl-card .dc-desc { font-size:11px; color:#888; margin-bottom:4px; }
.dl-card .dc-size { font-size:10px; color:#bbb; margin-bottom:14px; }
.dl-card .btn { width:auto; display:inline-block; padding:6px 20px; }
.how-steps { max-width:600px; }
.step { display:flex; gap:12px; padding:10px 0; border-bottom:1px dotted #eee; align-items:flex-start; }
.step:last-child { border-bottom:none; }
.step-n { width:24px; height:24px; background:#e87000; color:#fff; font-size:11px; font-weight:bold; display:flex; align-items:center; justify-content:center; flex-shrink:0; border-radius:50%; }
.step-t { font-weight:bold; font-size:11px; color:#333; }
.step-d { font-size:11px; color:#666; margin-top:2px; }

/* ── NX PAGE ────────────────────────────────── */
.nx-pkgs { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.nx-pkg { border:1px solid #ddd; padding:16px 20px; text-align:center; background:#fafafa; min-width:130px; }
.nx-pkg.pop { border-color:#e87000; background:#fff8f0; }
.nx-pkg .nx-badge { background:#e87000; color:#fff; font-size:9px; font-weight:bold; padding:1px 8px; display:inline-block; margin-bottom:6px; }
.nx-pkg .nx-amt { font-size:22px; font-weight:900; color:#333; font-family:'Arial Black',Arial; }
.nx-pkg .nx-lbl { font-size:10px; color:#999; }
.nx-pkg .nx-price { font-size:14px; font-weight:bold; color:#e87000; margin:6px 0; }
.nx-pkg .btn { width:auto; display:inline-block; padding:5px 16px; font-size:10px; }
