/* ============================================================
   CSS CUSTOM PROPERTIES — Default Summer Theme
   Dioverride oleh theme.php sesuai tema aktif
   ============================================================ */
:root {
    --theme-body-bg:     #6f6e6d;
    --theme-header-from: #FFEBCC;
    --theme-header-to:   #8CC0EB;
    --theme-nav-bg:      #BFDDF0;
    --theme-nav-border:  #8CC0EB;
    --theme-nav-active:  #FFEBCC;
    --theme-accent1:     #8CC0EB;
    --theme-accent2:     #BFDDF0;
    --theme-main-bg:     #FFF9D2;
    --theme-card-bg:     #FFEBCC;
    --theme-text-main:   #333333;
    --theme-link:        #0066cc;
    --theme-footer-from: #8CC0EB;
    --theme-footer-to:   #FFEBCC;
    --theme-warn-bg:     #333333;
    --theme-warn-text:   #FFF9D2;
    --theme-warn-badge:  #8CC0EB;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #6f6e6d;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    font-size: 9pt;
}

/* ============================================================
   WARNING BANNER (18+)
   ============================================================ */
.warning-banner {
    background-color: #333;
    color: var(--theme-main-bg);
    font-size: 11px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
    overflow: hidden;
}
.warning-badge {
    background-color: var(--theme-accent1);
    color: #333;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 10px;
    flex-shrink: 0;
}
.warning-marquee-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.warning-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee-scroll 28s linear infinite;
}
.warning-marquee:hover {
    animation-play-state: paused;
}
.warning-marquee span {
    display: inline-block;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER & LOGO
   ============================================================ */
.header {
    background: linear-gradient(to bottom, var(--theme-card-bg), var(--theme-accent1));
    text-align: center;
    padding: 20px 0 0 0;
    position: relative;
    border-bottom: 2px solid var(--theme-accent1);
    overflow: hidden;
}

.a {
    height: 60px;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}
.a img {
    z-index: 999;
    position: relative;
}

.bg_gunung {
    height: 47px;
    background: transparent url(/bg_bottom.png) repeat-x;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    display: flex;
    background-color: var(--theme-accent2);
    border-bottom: 2px solid var(--theme-accent1);
    position: relative;
    z-index: 10;
}
.nav a {
    flex: 1;
    text-decoration: none;
    color: #333;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: bold;
    border-right: 1px solid var(--theme-accent1);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav a.active {
    background-color: var(--theme-card-bg);
    color: #333;
    box-shadow: inset 0 -3px 0 var(--theme-accent1);
}
.nav a:last-child {
    border-right: none;
}
.nav a:hover:not(.active) {
    background-color: color-mix(in srgb, var(--theme-accent2) 80%, #fff);
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.main-content {
    min-height: 300px;
    background-color: var(--theme-main-bg);
}

/* ============================================================
   HERO SCENE (Beranda)
   ============================================================ */
.hero-scene {
    width: 100%;
    height: 250px;
    background: var(--theme-card-bg);
    background-image: var(--theme-banner);
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--theme-accent1);
    overflow: hidden;
}

.bg_top_2 {
    display: table;
    height: 250px;
    width: 100%;
    border-radius: 20px;
    background-size: auto !important;
}
.bg_top_3 {
    display: table;
    height: 250px;
    width: 100%;
    background-size: auto !important;
}

/* ============================================================
   INFO HERO (Memperkenalkan & Forum)
   ============================================================ */
.info-hero {
    background: 
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        var(--theme-banner);
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid var(--theme-accent1);
    overflow: hidden;
}
.info-hero-inner {
    position: relative;
    z-index: 1;
}
.info-hero-icon {
    font-size: 40px;
    color: var(--theme-text-header);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}
.info-hero h2 {
    color: var(--theme-text-header);
    font-size: 22px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    margin-bottom: 6px;
}
.info-hero p {
    color: var(--theme-text-header);
    font-size: 13px;
}

/* ============================================================
   DOWNLOAD AREA
   ============================================================ */
.download-area {
    background-color: var(--theme-main-bg);
    padding: 25px 15px;
    border-bottom: 2px solid var(--theme-accent1);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 380px;
    margin: 0 auto;
    align-items: start;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.full-width {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.btn-game {
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    border: 1px solid var(--theme-accent1);
    border-radius: 10px;
    padding: 10px 8px;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0px 3px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: 0.1s;
    white-space: nowrap;
}
.btn-center-size {
    max-width: 220px;
}
.btn-game i {
    color: #fff;
    font-size: 16px;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.3);
}
.btn-game:active {
    transform: scale(0.95);
    box-shadow: inset 0px 2px 4px rgba(0,0,0,0.2);
}

.badge {
    font-size: 9px;
    background-color: rgba(255,255,255,0.6);
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.version-text {
    color: #e57373;
    font-size: 12px;
    margin-top: 6px;
    font-weight: bold;
    min-height: 15px;
}

.guide-text {
    color: #e57373;
    font-size: 14px;
    margin: 5px 0 10px 0;
    text-decoration: none;
    display: block;
    font-weight: bold;
    text-align: center;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
    background-color: var(--theme-main-bg);
    padding-bottom: 20px;
}
.news-header {
    background-color: var(--theme-card-bg);
    color: var(--theme-text-main);
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 2px solid var(--theme-accent2);
    border-top: 2px solid var(--theme-accent2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-header i {
    color: var(--theme-accent1);
}
.news-content {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--theme-text-main);
}
.news-title {
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
    font-size: 16px;
    color: var(--theme-text-main);
}
.news-image {
    width: 100%;
    min-height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================================
   FEATURE GRID (Memperkenalkan)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}
.feature-card {
    background: linear-gradient(135deg, var(--theme-card-bg), var(--theme-main-bg));
    border: 1px solid var(--theme-accent2);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
}
.feature-card i {
    font-size: 24px;
    color: var(--theme-accent1);
    margin-bottom: 8px;
    display: block;
}
.feature-card h4 {
    font-size: 13px;
    color: var(--theme-text-main);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 11px;
    color: var(--theme-text-main) ;
    line-height: 1.4;
}

/* ============================================================
   PLATFORM LIST (Memperkenalkan)
   ============================================================ */
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.platform-item {
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    border-radius: 8px;
    padding: 10px 15px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.platform-item i {
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    width: 24px;
    text-align: center;
}

/* ============================================================
   FORUM LIST
   ============================================================ */
.forum-list {
    display: flex;
    flex-direction: column;
}
.forum-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid var(--theme-accent2);
    background-color: var(--theme-main-bg);
    transition: background-color 0.15s;
}
.forum-item:hover {
    background-color: var(--theme-card-bg);
}
.forum-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--theme-accent2), var(--theme-accent1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.forum-icon i {
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.forum-info {
    flex: 1;
}
.forum-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--theme-text-main);
    margin-bottom: 3px;
}
.forum-desc {
    font-size: 11px;
    color: var(--theme-text-main);
    line-height: 1.3;
}
.forum-arrow {
    color: var(--theme-accent1);
    font-size: 14px;
}

/* ============================================================
   SOCIAL LINKS (Forum)
   ============================================================ */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.2s;
}
.social-btn:active {
    opacity: 0.8;
}
.social-btn.facebook {
    background-color: #1877F2;
    color: #fff;
}
.social-btn.discord {
    background-color: #5865F2;
    color: #fff;
}
.social-btn i {
    font-size: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.bg_tree {}

.footer-wrapper {
    background: linear-gradient(to bottom, var(--theme-accent1), var(--theme-card-bg));
    border-top: 2px solid var(--theme-accent1);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bg_gunung_foot {
    height: 47px;
    background: transparent url(http://knightageonline.com/images/bg_bottom.png) repeat-x;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

.copyright {
    position: relative;
    z-index: 2;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    font-size: 10px;
    padding: 15px 0 60px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.copyright a {
    font-size: 12px;
}
.copyright p {
    margin-top: 8px;
    line-height: 1.6;
}

/* ============================================================
   FORUM — TOOLBAR
   ============================================================ */
.forum-toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--theme-card-bg);
    border-bottom: 1px solid var(--theme-accent2);
}
.forum-btn-outline {
    padding: 6px 20px;
    border: 2px solid var(--theme-accent1);
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.forum-btn-solid {
    padding: 6px 20px;
    border: 2px solid var(--theme-accent1);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   FORUM — NAP / TOP-UP BANNER
   ============================================================ */
.forum-nap {
    background: #c9952a;
    text-align: center;
    padding: 8px;
    border-bottom: 2px solid #a07020;
}
.nap-btn {
    background: linear-gradient(180deg, #f5c842, #d4a020);
    border: 2px solid #a07020;
    border-radius: 8px;
    padding: 6px 24px;
    color: #5a2d00;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ============================================================
   FORUM — KATEGORI TABS (scroll horizontal)
   ============================================================ */
.forum-cat-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--theme-accent2);
    border-bottom: 2px solid var(--theme-accent1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.forum-cat-tabs::-webkit-scrollbar { display: none; }
.forum-cat-tab {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border-right: 1px solid var(--theme-accent1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}
.forum-cat-tab:hover { background: color-mix(in srgb, var(--theme-accent2) 80%, #fff); }
.forum-cat-tab.active {
    background: var(--theme-card-bg);
    color: #333;
    box-shadow: inset 0 -3px 0 var(--theme-accent1);
}

/* ============================================================
   FORUM — TOPIC LIST
   ============================================================ */
.forum-topic-list {
    background: var(--theme-main-bg);
    border-bottom: 2px solid var(--theme-accent2);
}
.forum-topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    text-decoration: none;
    background: var(--theme-main-bg);
    transition: background 0.15s;
}
.forum-topic-item:hover { background: var(--theme-card-bg); }
.topic-left { flex-shrink: 0; width: 14px; display: flex; justify-content: center; }
.topic-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.topic-pin-icon { color: #e57373; font-size: 12px; }
.topic-mid { flex: 1; min-width: 0; }
.topic-title {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topic-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.topic-cat-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
}
.topic-author { font-size: 10px; color: #888; }
.topic-time   { font-size: 10px; color: #aaa; }
.topic-right  { font-size: 10px; color: #aaa; white-space: nowrap; flex-shrink: 0; }
.forum-empty  { text-align: center; padding: 40px; color: #aaa; }
.forum-empty i { font-size: 30px; margin-bottom: 10px; display: block; }

/* ============================================================
   FORUM — RECENT POSTS
   ============================================================ */
.forum-recent-header {
    background: var(--theme-card-bg);
    padding: 9px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    border-top: 2px solid var(--theme-accent2);
    border-bottom: 1px solid var(--theme-accent2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.forum-recent { background: var(--theme-main-bg); }
.forum-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    text-decoration: none;
    transition: background 0.15s;
}
.forum-recent-item:hover { background: var(--theme-card-bg); }
.recent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent1), var(--theme-accent2));
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--theme-accent1);
}
.recent-info { flex: 1; min-width: 0; }
.recent-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--theme-link);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-meta { font-size: 10px; color: #888; margin-top: 2px; }
.recent-meta span { color: var(--theme-link); }

/* ============================================================
   FORUM — DETAIL VIEW / TOPBAR
   ============================================================ */
.forum-topbar {
    background: var(--theme-accent1);
    padding: 9px 14px;
    border-bottom: 2px solid color-mix(in srgb, var(--theme-accent1) 80%, #000);
    display: flex;
    align-items: center;
    gap: 10px;
}
.forum-back {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.forum-topbar-title {
    color: #fff;
    font-size: 12px;
    opacity: 0.8;
}
.forum-detail-wrap {
    background: var(--theme-main-bg);
    padding: 15px;
    min-height: 200px;
}
.topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.badge-announce {
    background: #c62828;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
}
.badge-pin {
    background: #e65100;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
}
.badge-cat {
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
}
.topic-detail-title {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    padding-bottom: 10px;
}
.forum-post-card {
    background: #fff;
    border: 1px solid var(--theme-accent2);
    border-radius: 10px;
    overflow: hidden;
}
.post-card-header {
    background: linear-gradient(to right, var(--theme-card-bg), var(--theme-main-bg));
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--theme-accent2);
}
.post-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent1), var(--theme-accent2));
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--theme-accent1);
    flex-shrink: 0;
}
.post-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.post-card-author { font-weight: bold; color: var(--theme-link); font-size: 13px; }
.post-card-time   { font-size: 10px; color: #888; }
.post-card-views  { font-size: 10px; color: #aaa; }
.post-card-body {
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

/* ============================================================
   FORM — INPUT, SELECT, TEXTAREA
   ============================================================ */
.forum-form-group {
    margin-bottom: 14px;
}
.forum-label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}
.forum-input,
.forum-select,
.forum-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 7px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border 0.15s, box-shadow 0.15s;
    font-family: Arial, sans-serif;
}
.forum-input:focus,
.forum-select:focus,
.forum-textarea:focus {
    border-color: var(--theme-accent1);
    box-shadow: 0 0 0 3px rgba(140,192,235,0.18);
}
.forum-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}
.forum-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238CC0EB' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}
.forum-input-error {
    border-color: #e57373 !important;
    box-shadow: 0 0 0 3px rgba(229,115,115,0.15) !important;
}
.forum-error-msg {
    color: #c62828;
    font-size: 11px;
    margin-top: 4px;
}
.forum-input-hint {
    color: #aaa;
    font-size: 10px;
    margin-top: 3px;
}
.forum-input-success {
    border-color: #66bb6a !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.forum-btn-primary {
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    color: #333;
    font-weight: bold;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s;
    font-family: Arial, sans-serif;
}
.forum-btn-primary:hover  { filter: brightness(1.05); }
.forum-btn-primary:active { transform: scale(0.96); filter: brightness(0.95); }

.forum-btn-danger {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(180deg, #f08080, #e57373);
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s;
    font-family: Arial, sans-serif;
}
.forum-btn-danger:hover  { filter: brightness(1.05); }
.forum-btn-danger:active { transform: scale(0.96); }

.forum-btn-success {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(180deg, #81c784, #4caf50);
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s;
    font-family: Arial, sans-serif;
}
.forum-btn-success:hover  { filter: brightness(1.05); }
.forum-btn-success:active { transform: scale(0.96); }

.forum-btn-ghost {
    padding: 8px 18px;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: #555;
    font-weight: bold;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s;
    font-family: Arial, sans-serif;
}
.forum-btn-ghost:hover { background: var(--theme-card-bg); }

.forum-btn-sm {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    border: 1.5px solid var(--theme-accent1);
    background: #fff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: Arial, sans-serif;
}
.forum-btn-sm:hover { background: var(--theme-card-bg); }

.forum-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--theme-accent2);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--theme-accent1);
    transition: background 0.15s;
    text-decoration: none;
}
.forum-btn-icon:hover { background: var(--theme-card-bg); }

.forum-btn-disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   TAGS / BADGE STATUS TOPIK
   ============================================================ */
.forum-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    cursor: default;
}
.tag-new    { background: #d0f0c0; color: #2e7d32; }
.tag-hot    { background: #ffe0b2; color: #e65100; }
.tag-closed { background: #f5f5f5; color: #999; border: 1px solid #ddd; }
.tag-solved { background: #e3f2fd; color: #1565c0; }
.tag-pinned { background: #fce4ec; color: #c62828; }
.tag-staff  { background: #e8eaf6; color: #3949ab; }
.tag-update { background: #fff9c4; color: #f57f17; }
.tag-event  { background: #f3e5f5; color: #7b1fa2; }

/* ============================================================
   ALERT / NOTIFIKASI INLINE
   ============================================================ */
.forum-alert {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.forum-alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.alert-info    { background: #e3f2fd; color: #1565c0; border-left: 3px solid var(--theme-accent1); }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #66bb6a; }
.alert-warning { background: #fff8e1; color: #e65100; border-left: 3px solid #ffa726; }
.alert-danger  { background: #ffebee; color: #c62828; border-left: 3px solid #e57373; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.forum-search-wrap {
    position: relative;
}
.forum-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #333;
    transition: border 0.15s, box-shadow 0.15s;
    font-family: Arial, sans-serif;
}
.forum-search-input:focus {
    border-color: var(--theme-accent1);
    box-shadow: 0 0 0 3px rgba(140,192,235,0.18);
}
.forum-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-accent1);
    font-size: 15px;
    pointer-events: none;
}

/* ============================================================
   REPLY BOX (kotak balas topik)
   ============================================================ */
.forum-reply-box {
    background: #fff;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 10px;
    overflow: hidden;
}
.reply-toolbar {
    background: #f5f5f5;
    border-bottom: 1px solid var(--theme-accent2);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    flex-wrap: wrap;
}
.reply-tool-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.12s;
    font-family: Arial, sans-serif;
}
.reply-tool-btn:hover { background: var(--theme-card-bg); border-color: var(--theme-accent1); }
.reply-tool-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 2px;
    flex-shrink: 0;
}
.reply-textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 13px;
    color: #333;
    resize: none;
    min-height: 80px;
    line-height: 1.6;
    background: #fff;
    font-family: Arial, sans-serif;
}
.reply-footer {
    background: #f9f9f9;
    border-top: 1px solid var(--theme-accent2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 8px;
}
.reply-char-count { font-size: 10px; color: #aaa; }
.reply-char-limit { color: #e57373; }

/* ============================================================
   VOTE (upvote / downvote)
   ============================================================ */
.forum-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vote-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid var(--theme-accent2);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: var(--theme-accent1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, border-color 0.12s;
}
.vote-btn:hover { background: #e3f2fd; border-color: var(--theme-accent1); }
.vote-btn.voted { background: var(--theme-card-bg); border-color: #f5c842; color: #c9952a; }
.vote-count {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    min-width: 24px;
    text-align: center;
}

/* ============================================================
   QUOTE BLOCK (kutipan balasan)
   ============================================================ */
.forum-quote {
    border-left: 3px solid var(--theme-accent1);
    background: #f0f8ff;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    margin: 8px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.forum-quote-author {
    font-weight: bold;
    color: var(--theme-link);
    font-size: 11px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================
   SPOILER
   ============================================================ */
.forum-spoiler-btn {
    padding: 5px 14px;
    border-radius: 6px;
    border: 1.5px dashed var(--theme-accent1);
    background: #e8f4fd;
    color: var(--theme-link);
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, sans-serif;
    transition: background 0.15s;
}
.forum-spoiler-btn:hover { background: var(--theme-accent2); }
.forum-spoiler-content {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #555;
    margin-top: 6px;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
}

/* ============================================================
   CODE BLOCK
   ============================================================ */
.forum-code-header {
    background: #1e1e1e;
    color: #aaa;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.forum-code-copy {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.12s;
    font-family: Arial, sans-serif;
}
.forum-code-copy:hover { background: #333; color: #fff; }
.forum-code {
    background: #2b2b2b;
    color: #f8f8f2;
    border-radius: 0 0 8px 8px;
    padding: 12px 14px;
    font-size: 11px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.forum-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    flex-wrap: wrap;
}
.page-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1.5px solid var(--theme-accent2);
    background: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.12s;
    font-family: Arial, sans-serif;
}
.page-btn.active {
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    border-color: var(--theme-accent1);
    color: #333;
}
.page-btn:hover:not(.active) { background: var(--theme-card-bg); }
.page-dots { font-size: 13px; color: #aaa; padding: 0 2px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.forum-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    background: var(--theme-card-bg);
    border-bottom: 1px solid var(--theme-accent2);
    font-size: 11px;
    color: #888;
}
.forum-breadcrumb a {
    color: var(--theme-link);
    text-decoration: none;
    font-weight: bold;
}
.forum-breadcrumb a:hover { text-decoration: underline; }
.forum-breadcrumb i { font-size: 10px; color: #bbb; }

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.forum-dropdown {
    position: relative;
    display: inline-block;
}
.forum-dropdown-menu {
    background: #fff;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 9px;
    min-width: 160px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
}
.dropdown-item:hover { background: var(--theme-card-bg); }
.dropdown-item i { color: var(--theme-accent1); font-size: 14px; }
.dropdown-item.danger { color: #e57373; }
.dropdown-item.danger i { color: #e57373; }
.dropdown-divider {
    border: none;
    border-top: 1px solid var(--theme-accent2);
    margin: 3px 0;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.forum-toast-wrap {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.forum-toast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #333;
    color: #fff;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.forum-toast.toast-success { background: #2e7d32; }
.forum-toast.toast-error   { background: #c62828; }
.forum-toast.toast-warning { background: #e65100; }
.forum-toast.toast-info    { background: #1565c0; }

/* ============================================================
   MODAL DIALOG
   ============================================================ */
.forum-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.forum-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.forum-modal-header {
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.forum-modal-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.forum-modal-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.15s;
}
.forum-modal-close:hover { background: rgba(255,255,255,0.8); }
.forum-modal-body {
    padding: 16px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.forum-modal-footer {
    padding: 10px 16px;
    background: #f5f5f5;
    border-top: 1px solid var(--theme-accent2);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================
   USER ONLINE STATUS
   ============================================================ */
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff;
    flex-shrink: 0;
}
.offline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff;
    flex-shrink: 0;
}

/* ============================================================
   PROFILE / USER CARD (mini)
   ============================================================ */
.forum-user-card {
    background: #fff;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.forum-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent1), var(--theme-accent2));
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--theme-accent1);
    flex-shrink: 0;
    position: relative;
}
.forum-user-avatar .online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
}
.forum-user-info { flex: 1; }
.forum-user-name {
    font-weight: bold;
    font-size: 13px;
    color: var(--theme-link);
}
.forum-user-role {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}
.forum-user-stats {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.forum-user-stat {
    font-size: 10px;
    color: #555;
    text-align: center;
}
.forum-user-stat strong {
    display: block;
    font-size: 13px;
    color: #333;
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.forum-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: forum-shimmer 1.4s infinite;
    border-radius: 6px;
}
@keyframes forum-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full   { width: 100%; }
.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.forum-divider {
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    margin: 12px 0;
}
.forum-divider-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 11px;
    color: #aaa;
}
.forum-divider-label::before,
.forum-divider-label::after {
    content: '';
    flex: 1;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
}

/* ============================================================
   HALAMAN LOGIN / DAFTAR — FORM
   ============================================================ */
form {
    padding: 18px 15px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.form-group label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-group label i {
    color: var(--theme-accent1);
    font-size: 13px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid var(--theme-accent2);
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border 0.15s, box-shadow 0.15s;
    font-family: Arial, sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--theme-accent1);
    box-shadow: 0 0 0 3px rgba(140,192,235,0.18);
}
.form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}
.info-text {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
}

/* INPUT DENGAN TOMBOL TOGGLE (show/hide password) */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap input {
    flex: 1;
    padding-right: 40px !important;
}
.toggle-pass {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--theme-accent1);
    font-size: 15px;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.toggle-pass:hover { color: #555; }

/* TOMBOL SUBMIT UTAMA */
form > button[type="submit"],
form > button[name="login"],
form > button[name="daftar"],
form > button[name="submit"] {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    color: #333;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: filter 0.15s, transform 0.1s;
    margin-top: 4px;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}
form > button[type="submit"]:hover,
form > button[name="login"]:hover,
form > button[name="daftar"]:hover {
    filter: brightness(1.05);
}
form > button[type="submit"]:active,
form > button[name="login"]:active,
form > button[name="daftar"]:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

/* PESAN SUCCESS / ERROR */
.message {
    margin: 10px 15px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #66bb6a;
}
.message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #e57373;
}
.message i { font-size: 15px; flex-shrink: 0; }

/* LINKS BAWAH FORM (daftar / lupa password) */
.links-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 15px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    margin-top: 4px;
}
.links-row a {
    color: var(--theme-link);
    text-decoration: none;
    font-weight: bold;
}
.links-row a:hover { text-decoration: underline; }

/* INFO IP ADDRESS */
.ip-info {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 4px 15px 12px;
    padding: 7px 12px;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ip-info strong { color: #555; }

/* TOMBOL DOWNLOAD (APK / EXE / JAR) */
.download-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px 16px;
}
.dl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    border: 1px solid var(--theme-accent1);
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 11px;
    transition: filter 0.15s, transform 0.1s;
    min-width: 64px;
}
.dl-btn i {
    font-size: 22px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.dl-btn span { font-size: 11px; font-weight: bold; }
.dl-btn:active { transform: scale(0.95); filter: brightness(0.95); }
.dl-btn:hover  { filter: brightness(1.06); }

/* FOOTER SUBTITLE */
.subtitle-footer {
    text-align: center;
    padding: 10px 15px 20px;
    font-size: 11px;
    color: #aaa;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
}