﻿/* ==========================================================================
   Ngoc Rong Online Classic Theme
   Inspired by the classic Ngoc Rong Online layout
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    background: #b3afaf;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #000;
}

a {
    color: #ff7700;
    text-decoration: none;
}

a:hover {
    color: #b33800;
    text-decoration: underline;
}

img {
    border: none;
    max-width: 100%;
}

/* ── Outer wrapper ──────────────────────────────────────────────────────── */
.body_body {
    max-width: 630px;
    margin: 0 auto 5px auto;
    position: relative;
}

/* ── 18+ line ─────────────────────────────────────────────────────────── */
.div-12 {
    line-height: 10px;
    font-size: 10px;
    padding: 2px 5px 0 0;
    margin-bottom: -8px;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.div-12 span {
    vertical-align: middle;
    color: #fff;
}

/* ── Orange header cap ─────────────────────────────────────────────────── */
.bg_top {
    background: linear-gradient(to bottom, #fe5604 0%, #fe5604 30%, #ff5601 100%);
    border-radius: 15px 15px 0 0;
    width: 100%;
    height: 42px;
    margin-top: 10px;
}

.left_top { height: 0; }

/* ── Body content area ─────────────────────────────────────────────────── */
.body-content {
    background: #ff5601;
    width: 100%;
    padding: 0;
    position: relative;
}

.bg-content2 {
    background: #ff5601;
    width: 100%;
}

/* ── Logo ──────────────────────────────────────────────────────────────── */
.a {
    height: 48px;
    text-align: center;
    margin: -10px 0 0;
    position: relative;
    z-index: 1;
}

.a img {
    width: auto;
    height: 90px;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

/* ── Navigation ────────────────────────────────────────────────────────── */
#top {
    width: 100%;
}

.link-more {
    width: 100%;
}

.h {
    padding-top: 5px;
}

.menu2 {
    margin: 0 0 3px 0;
}

.menu2 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    margin: 0;
}

.menu td {
    border: 3px solid #924C31;
    padding: 2px;
    width: 25%;
    background-color: #924C31;
    text-align: center;
    vertical-align: middle;
}

tr.menu td a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 11px;
    display: block;
    line-height: 1.2;
}

td#selected {
    background-color: #ffaf4c !important;
    border: 3px solid #FFAF4D !important;
}

td#selected a {
    color: #561d00 !important;
}

tr.menu td a:hover,
td#selected a:hover {
    text-decoration: underline;
}

/* ── Banner directly below menu ────────────────────────────────────────── */
.bg_top_22 {
    width: 100%;
    line-height: 0;
    margin-bottom: 3px;
}

.bg_top_22 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Download strip ─────────────────────────────────────────────────────── */
.download {
    width: 100%;
    text-align: center;
    margin-bottom: 3px;
    background: #ffaf4c;
    padding: 4px 3px 2px 3px;
}

#columns {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3px;
    text-align: center;
}

div#columns figure {
    margin: 0 1px;
    display: inline-block;
    text-align: center;
    vertical-align: top;
}

div#columns figure img {
    height: 35px;
    display: block;
    margin: 0 auto;
}

div#columns figure figcaption {
    font-size: 9px;
    color: #444;
    line-height: 1.2;
    margin-top: 2px;
}

div#columns figure figcaption a {
    color: #561d00;
}

/* ── Member-link strip (Tra Cuu / Dang Ky / Dang Xuat) ──────────────── */
.member-strip {
    background: #ffaf4c;
    padding: 2px 3px 3px 3px;
    margin-bottom: 3px;
    font-size: 10px;
    text-align: center;
    color: #561d00;
    border-top: 1px solid #c97f26;
}

.member-strip a {
    color: #561d00;
    font-weight: bold;
    margin: 0 4px;
}

.member-strip a:hover {
    color: #b33800;
    text-decoration: underline;
}

.member-strip form {
    display: inline;
}

.member-strip button {
    background: none;
    border: none;
    color: #561d00;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.member-strip button:hover {
    text-decoration: underline;
    color: #b33800;
}

/* ── Flash messages ─────────────────────────────────────────────────────── */
.flash {
    margin: 3px 0;
    padding: 5px 8px;
    font-weight: bold;
    font-size: 11px;
    border-radius: 2px;
}

.flash.success {
    color: #1e5e15;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.flash.error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* ── Content blocks ─────────────────────────────────────────────────────── */
.bg-content {
    text-align: left;
    padding: 5px 5px;
    margin-bottom: 3px;
    background: #ffaf4c;
    color: #000;
    font-size: 9pt;
    line-height: 1.45;
}

.bg-content .title {
    font-size: 15px;
    color: #e73d00;
    border-bottom: 1px solid #B98A51;
    padding-bottom: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}

.bg-content .title h4 {
    margin: 0;
    font-size: 15px;
    color: #e73d00;
    font-weight: bold;
}

.bg-content .content {
    padding: 2px 0;
}

.content-p {
    color: red;
    text-align: center;
    font-weight: bold;
    margin: 8px 0 3px 0;
}

.text-center {
    text-align: center;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-nro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 380px;
    margin: 6px auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-group label {
    font-weight: bold;
    color: #561d00;
    font-size: 10px;
}

.form-control {
    padding: 4px 6px;
    border: 1px solid #924C31;
    background: #fff;
    font-size: 11px;
    color: #000;
    width: 100%;
    border-radius: 2px;
}

.form-control:focus {
    outline: none;
    border-color: #fe5604;
}

.btn-nro {
    padding: 5px 12px;
    background: #fe5604;
    color: #fff;
    border: 1px solid #924C31;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    text-shadow: 1px 1px 1px #561d00;
}

.btn-nro:hover {
    background: #d13000;
}

.btn-nro-gold {
    background: #ffd700;
    color: #561d00;
    text-shadow: none;
    border-color: #b8860b;
}

.btn-nro-gold:hover {
    background: #e6c200;
}

/* ── Account center ─────────────────────────────────────────────────────── */
.account-summary {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
    background: #ffd99e;
}

.account-summary td {
    padding: 4px 8px;
    border-bottom: 1px solid #e09938;
    font-size: 11px;
}

.account-summary td:first-child {
    font-weight: bold;
    color: #561d00;
    width: 40%;
}

.exchange-cards {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.exchange-card {
    flex: 1 1 180px;
    background: #ffd99e;
    border: 1px solid #c97f26;
    padding: 6px;
}

.exchange-card h5 {
    margin: 0 0 4px 0;
    color: #b33800;
    font-size: 12px;
    font-weight: bold;
}

/* ── Forum ──────────────────────────────────────────────────────────────── */
.forum-topic {
    background: #ffe3b8;
    border: 1px solid #c97f26;
    padding: 6px;
    margin-bottom: 5px;
}

.forum-topic-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    border-bottom: 1px dashed #dca565;
    padding-bottom: 3px;
    margin-bottom: 4px;
}

.forum-topic-header strong {
    color: #b33800;
}

.forum-topic h5 {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #000;
}

.forum-topic-body {
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.bg_tree {
    width: 100%;
    height: 3px;
}

.foot_bg {
    width: 100%;
    height: 3px;
}

.left_b_bottom {
    width: 100%;
    position: relative;
}

.right_b_bottom {
    position: relative;
    width: 100%;
}

.footer {
    display: none;
}

.left_bottom,
.right_bottom {
    display: none;
}

.copyright {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 8px 10px 10px;
    background: #ff5601;
    border-radius: 0 0 15px 15px;
    text-align: center;
    color: #000;
    font-size: 10px;
    line-height: 14px;
    padding-bottom: 6px;
}

.copyright p {
    margin: 2px 0;
}

.copyright a {
    color: #000;
    text-decoration: underline;
}

/* ── Back to Top ─────────────────────────────────────────────────────────── */
#backTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    display: none;
    opacity: 0.8;
}

#backTop:hover {
    opacity: 1;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .body_body {
        margin: 0;
        border-radius: 0;
    }
    .bg_top {
        border-radius: 0;
    }
    .div-12 {
        border-radius: 0;
    }
    .footer {
        border-radius: 0;
    }
    .copyright {
        border-radius: 0;
    }
    .exchange-cards {
        flex-direction: column;
    }
}
