/* ============================================
   暗金奢华主题 - Gold Luxury Theme
   设计语言：极简建筑美学 · 直角 · 大写间距 · 轻字重
   与 /preview/gold_*.html 视觉风格一致
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --gold: #c8a951;
    --gold-light: #e8d5a3;
    --gold-dark: #a88a3d;
    --bg: #ffffff;
    --card: #ffffff;
    --text: #333333;
    --text2: #666666;
    --text3: #888888;
    --border: #e0e0e0;
    --accent: var(--gold);
    --radius: 0px;
    --radius-lg: 0px;
    --nav-h: 56px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px; -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
*::-webkit-scrollbar { display: none; }
*:focus { outline: none; }
*:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }

body {
    font-family: 'Georgia', 'Noto Serif SC', 'STSong', 'SimSun', serif;
    color: var(--text); background: var(--bg); line-height: 1.8;
    text-wrap: pretty;
}
a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ===== Headings ===== */
h1, h2, h3, h4 { font-weight: 400; color: var(--text); text-wrap: balance; letter-spacing: -0.3px; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin-bottom: 0.5rem; }
.text-muted { color: var(--text3); font-size: 0.875rem; }

/* ===== Universal Inputs ===== */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="url"], input[type="tel"],
input[type="search"], select, textarea {
    padding: 10px 14px; border: 1px solid var(--border);
    font-size: 14px; color: var(--text);
    background: var(--bg); width: 100%; box-sizing: border-box;
    font-family: inherit; transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
input::placeholder, textarea::placeholder { color: var(--text3); }
textarea { line-height: 1.6; resize: vertical; min-height: 80px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block; padding: 12px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--bg) !important; border: none !important;
    font-size: 13px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; cursor: pointer;
    font-family: inherit; transition: opacity .3s;
    text-decoration: none; line-height: 1.4; text-align: center;
    border-radius: 0 !important;
}
.btn:hover { opacity: .85; color: var(--bg) !important; text-decoration: none; }
.btn-full { width: 100%; text-align: center; }

.btn-sm {
    display: inline-block; padding: 8px 20px;
    border: 1px solid var(--gold) !important; background: transparent !important;
    color: var(--gold) !important; font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; cursor: pointer;
    font-family: inherit; transition: all .3s; text-decoration: none;
    text-align: center; font-weight: 400;
    border-radius: 0 !important;
}
.btn-sm:hover { background: var(--gold) !important; color: var(--bg) !important; text-decoration: none; }

.btn-sm-outline {
    border-color: var(--border) !important; color: var(--text2) !important;
    border-radius: 0 !important;
}
.btn-sm-outline:hover { border-color: var(--gold) !important; color: var(--gold) !important; background: transparent !important; }

.btn-sm-danger {
    border-color: #c0392b; color: #c0392b;
}
.btn-sm-danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

.btn-sm-active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* Outline Button */
.btn-outline {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 24px; font-size: 13px; letter-spacing: 1px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text2); cursor: pointer;
    border-radius: 0 !important;
    font-family: inherit; transition: all .3s; text-decoration: none;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline svg { vertical-align: middle; flex-shrink: 0; display: block; }

.btn-ai-update {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none; font-weight: 600; letter-spacing: 1px;
}
.btn-ai-update:hover { opacity: .85; }

.btn-ai-sm {
    display: inline-block; padding: 2px 10px; font-size: 11px;
    background: transparent; color: var(--text3);
    border: 1px solid var(--border); cursor: pointer;
    margin-left: 8px; vertical-align: middle;
    font-family: inherit; transition: all .3s;
}
.btn-ai-sm:hover { border-color: var(--gold); color: var(--gold); }

.btn-add {
    display: inline-block; padding: 8px 16px; font-size: 12px;
    letter-spacing: 1px;
    background: transparent; color: var(--text3);
    border: 1px dashed var(--border); cursor: pointer;
    margin-top: 8px; width: 100%; font-family: inherit; transition: all .3s;
}
.btn-add:hover { border-color: var(--gold); color: var(--gold); }

.btn-remove {
    background: none; border: none; color: #c0392b;
    cursor: pointer; font-size: 12px; padding: 2px 6px;
    font-family: inherit;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 11px; color: var(--text3);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 8px; font-weight: 400;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 14px; font-family: inherit; transition: border-color .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold); outline: none;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* File input */
input[type="file"] { font-size: 14px; color: var(--text2); font-family: inherit; padding: 6px 0; }
input[type="file"]::file-selector-button {
    padding: 6px 14px; border: 1px solid var(--border);
    background: var(--card); color: var(--text);
    cursor: pointer; font-size: 12px; letter-spacing: 1px;
    font-family: inherit; transition: all .3s; margin-right: 8px;
}
input[type="file"]::file-selector-button:hover {
    border-color: var(--gold); background: var(--gold); color: var(--bg);
}

/* ===== Messages ===== */
.msg { padding: 10px 14px; font-size: 13px; margin-bottom: 16px; letter-spacing: 0.5px; }
.msg-success { background: rgba(39,174,96,.1); color: #27ae60; border: 1px solid rgba(39,174,96,.2); }
.msg-error { background: rgba(192,57,43,.1); color: #c0392b; border: 1px solid rgba(192,57,43,.2); }

/* ===== Cards ===== */
.card {
    background: var(--card); border: 1px solid var(--border);
    padding: 24px; margin-bottom: 16px;
    position: relative; overflow: hidden;
    transition: border-color .3s;
}
.card:hover { border-color: var(--gold); }
.card::before {
    content: ''; position: absolute; inset: 0;
    border: 1px solid var(--gold); opacity: 0;
    transition: opacity .4s; pointer-events: none; z-index: var(--z-base);
}
.card:hover::before { opacity: 1; }
.card-title {
    font-size: 15px; font-weight: 400; letter-spacing: 1px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ===== Auth Pages ===== */
.auth-page {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; background: var(--bg); padding: 20px;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
    background: var(--card); border: 1px solid var(--border);
    padding: 36px 32px; position: relative;
}
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-logo {
    display: block; font-size: 24px; font-weight: 700; letter-spacing: 3px;
    text-align: center; margin-bottom: 32px; color: var(--gold);
    font-family: 'Georgia', serif;
}
.auth-logo:hover { text-decoration: none; color: var(--gold); }
.auth-title { font-size: 20px; font-weight: 400; text-align: center; margin-bottom: 4px; letter-spacing: -0.3px; }
.auth-desc { font-size: 13px; color: var(--text3); text-align: center; margin-bottom: 28px; letter-spacing: 1px; }
.auth-form .btn { margin-top: 8px; }
.auth-footer {
    text-align: center; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text3);
}
.auth-footer a { color: var(--gold); margin: 0 4px; font-size: 13px; }

/* ===== Auth Tabs ===== */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text3);
    transition: color 0.2s, border-color 0.2s, font-weight 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.auth-tab:hover {
    color: var(--text2);
}
.auth-tab.active {
    color: var(--gold);
    font-weight: 700;
    border-bottom-color: var(--gold);
}

/* ===== Captcha ===== */
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-row img {
    height: 44px; width: 120px; flex-shrink: 0;
    border: 1px solid var(--border); cursor: pointer;
    object-fit: fill; box-sizing: border-box; transition: border-color .3s;
    background: var(--bg);
}
.captcha-row img:hover { border-color: var(--gold); }
.captcha-group { margin-bottom: 16px; }
.captcha-refresh {
    width: 44px; height: 44px; border: 1px solid var(--border);
    background: var(--card); cursor: pointer; flex-shrink: 0;
    color: var(--text2); transition: all .3s;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; font-family: inherit;
}
.captcha-refresh:hover { border-color: var(--gold); color: var(--gold); background: var(--bg); }

/* ===== User Navigation ===== */
.user-nav { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: var(--z-sticky); }
.home-nav { background: var(--card); border-bottom: 1px solid var(--border); }
.nav-inner, .home-nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 32px; height: auto; min-height: var(--nav-h);
}
.nav-brand, .home-brand {
    font-size: 22px; font-weight: 700; letter-spacing: 2px;
    color: var(--gold); font-family: 'Georgia', serif;
}
.nav-brand:hover, .home-brand:hover { text-decoration: none; color: var(--gold); }
.nav-links, .home-nav-links, .user-nav-links {
    display: flex; align-items: center; gap: 32px;
}
.nav-links a, .home-nav-links a, .user-nav-links a {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text2); transition: color .3s;
}
.nav-links a svg, .home-nav-links a svg, .user-nav-links a svg { flex-shrink: 0; align-self: center; display: block; }
.nav-links a:hover, .nav-links a.active,
.home-nav-links a:hover, .home-nav-links a.active,
.user-nav-links a:hover, .user-nav-links a.active {
    color: var(--gold); text-decoration: none;
}
.nav-links a.active, .home-nav-links a.active, .user-nav-links a.active {
    border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.nav-links a.btn-sm, .home-nav-links a.btn-sm,
.nav-links a.btn-sm:hover, .home-nav-links a.btn-sm:hover {
    color: var(--gold) !important; background: transparent;
    border-color: var(--gold);
}
.home-nav-links a.btn-sm:hover { background: var(--gold); color: var(--bg) !important; }
.nav-credits { font-size: 13px; color: var(--text3); letter-spacing: 0.5px; }
.nav-recharge {
    font-size: 12px; color: var(--gold) !important; font-weight: 600;
    padding: 4px 12px; border: 1px solid var(--gold);
    text-transform: uppercase; letter-spacing: 1px;
}
.nav-logout { font-size: 13px; color: var(--text3) !important; text-transform: uppercase; }
.nav-admin-link {
    font-size: 13px; color: var(--gold) !important; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase;
}
.nav-admin-link svg { display: block; flex-shrink: 0; }

/* ============================================
   后台管理页面 — 暗金奢华主题适配
   ============================================ */

/* -- Admin Nav Bar -- */
#active-gold-theme .admin-nav {
    background: var(--card) !important;
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .admin-nav-inner {
    border-bottom: 1px solid var(--border) !important;
}
#active-gold-theme .admin-brand {
    color: var(--gold) !important;
}
#active-gold-theme .admin-nav-links a {
    font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text2); transition: color .3s;
}
#active-gold-theme .admin-nav-links a:hover,
#active-gold-theme .admin-nav-links a.active { color: var(--gold); }
#active-gold-theme .admin-user { color: var(--text3) !important; }
#active-gold-theme .admin-logout { color: var(--text3) !important; }
#active-gold-theme .admin-hamburger span { background: var(--text2) !important; }

/* -- Admin Sidebar -- */
#active-gold-theme .admin-sidebar {
    background: var(--card) !important;
    border-right-color: var(--border) !important;
}
#active-gold-theme .sidebar-group-label {
    color: var(--text3) !important;
}
#active-gold-theme .sidebar-group-label:hover {
    color: var(--text2) !important;
}
#active-gold-theme .sidebar-group-arrow {
    color: var(--text3) !important;
}
#active-gold-theme .sidebar-group-items a {
    font-size: 13px; letter-spacing: 1px; color: var(--text2);
    transition: color .3s;
}
#active-gold-theme .sidebar-group-items a:hover {
    background: var(--bg) !important;
    color: var(--gold) !important;
}
#active-gold-theme .sidebar-group-items a.active {
    background: rgba(200,169,81,0.12) !important;
    color: var(--gold) !important;
    font-weight: 400 !important;
}

/* -- Admin Stats (admin/index.php) -- */
#active-gold-theme .stat-num {
    color: var(--text) !important;
    font-weight: 300 !important;
}
#active-gold-theme .stat-tag {
    color: var(--text3) !important;
}

/* -- Admin Card -- */
#active-gold-theme .card {
    background: var(--card) !important;
    border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .card h2 {
    color: var(--text) !important;
    font-weight: 400 !important;
}
#active-gold-theme .card p[style*="color:#888"] {
    color: var(--text3) !important;
}

/* -- Admin Form Groups -- */
#active-gold-theme .form-group label {
    color: var(--text3) !important;
}
#active-gold-theme .form-group input[type="text"],
#active-gold-theme .form-group input[type="password"],
#active-gold-theme .form-group input[type="email"],
#active-gold-theme .form-group input[type="number"],
#active-gold-theme .form-group input[type="url"],
#active-gold-theme .form-group select,
#active-gold-theme .form-group textarea {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    border-radius: 0 !important;
}
#active-gold-theme .form-group input:focus,
#active-gold-theme .form-group select:focus,
#active-gold-theme .form-group textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 1px var(--gold) !important;
    outline: none !important;
}
#active-gold-theme .form-group input:hover,
#active-gold-theme .form-group select:hover,
#active-gold-theme .form-group textarea:hover {
    border-color: var(--text3) !important;
}

/* -- Admin Message Boxes -- */
#active-gold-theme .msg-success {
    background: rgba(104,211,145,0.15) !important;
    color: #68d391 !important;
    border-color: rgba(104,211,145,0.3) !important;
}
#active-gold-theme .msg-error {
    background: rgba(252,129,129,0.15) !important;
    color: #fc8181 !important;
    border-color: rgba(252,129,129,0.3) !important;
}
#active-gold-theme .msg-info {
    background: rgba(147,197,253,0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,0.25) !important;
}

/* -- Settings Tabs (admin/settings/settings.php) -- */
#active-gold-theme .settings-tabs {
    border-bottom-color: var(--gold) !important;
}
#active-gold-theme .settings-tab {
    color: var(--text2) !important;
}
#active-gold-theme .settings-tab:hover {
    color: var(--gold) !important;
    background: var(--card) !important;
}
#active-gold-theme .settings-tab.active {
    color: var(--bg) !important;
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    border-radius: 0 !important;
}

/* -- Modal -- */
#active-gold-theme .modal-box {
    background: var(--card) !important;
    border-radius: 0 !important;
}
#active-gold-theme .modal-header {
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .modal-header h2 {
    color: var(--text) !important;
    font-weight: 400 !important;
}
#active-gold-theme .modal-close {
    color: var(--text3) !important;
}
#active-gold-theme .modal-close:hover {
    background: var(--bg) !important;
    color: var(--text) !important;
}
#active-gold-theme .modal-body {
    color: var(--text2) !important;
}

/* -- Admin Table (admin.css overrides beyond .admin-table) -- */
#active-gold-theme .admin-table td[style*="color:#888"] {
    color: var(--text3) !important;
}
#active-gold-theme .admin-table tr td[style*="text-align:center;color:#888"] {
    color: var(--text3) !important;
}

/* -- User Group Badges -- */
#active-gold-theme .user-group-badge {
    border-radius: 0 !important;
}
#active-gold-theme .group-free {
    background: var(--bg) !important;
    color: var(--text3) !important;
    border-color: var(--border) !important;
}
#active-gold-theme .group-paid {
    background: rgba(104,211,145,0.15) !important;
    color: #68d391 !important;
    border-color: rgba(104,211,145,0.3) !important;
}
#active-gold-theme .group-vip {
    background: rgba(200,169,81,0.15) !important;
    color: var(--gold) !important;
    border-color: rgba(200,169,81,0.3) !important;
}
#active-gold-theme .group-vip_secret {
    background: rgba(252,129,129,0.15) !important;
    color: #fc8181 !important;
    border-color: rgba(252,129,129,0.3) !important;
}

/* -- Notification Items -- */
#active-gold-theme .notification-list {
    border-color: var(--border) !important;
}
#active-gold-theme .notification-item {
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .notification-item:hover {
    background: var(--bg) !important;
}
#active-gold-theme .notification-item.unread {
    background: rgba(200,169,81,0.08) !important;
}
#active-gold-theme .notification-message {
    color: var(--text2) !important;
}
#active-gold-theme .notification-time {
    color: var(--text3) !important;
}
#active-gold-theme .unread-dot {
    background: var(--gold) !important;
}

/* -- Template Admin Cards -- */
#active-gold-theme .tpl-admin-card {
    background: var(--card) !important;
    border-color: var(--border) !important;
}
#active-gold-theme .tpl-admin-preview {
    background: var(--bg) !important;
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .tpl-no-preview {
    color: var(--text3) !important;
}
#active-gold-theme .tpl-admin-info h3 {
    color: var(--text) !important;
    font-weight: 400 !important;
}
#active-gold-theme .tpl-category-tag {
    background: var(--bg) !important;
    color: var(--text2) !important;
}
#active-gold-theme .tpl-tag {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text3) !important;
}
#active-gold-theme .tpl-desc {
    color: var(--text3) !important;
}
#active-gold-theme .tpl-stats {
    color: var(--text3) !important;
}

/* -- Statistics Page Elements -- */
#active-gold-theme .stat-card-gradient {
    background: var(--card) !important;
    border-color: var(--border) !important;
}
#active-gold-theme .stat-item {
    background: var(--bg) !important;
}
#active-gold-theme .stat-item.highlight-row {
    background: rgba(200,169,81,0.1) !important;
}
#active-gold-theme .stat-label { color: var(--text3) !important; }
#active-gold-theme .stat-value { color: var(--text) !important; }
#active-gold-theme .stat-inline {
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .stat-inline .si-label { color: var(--text3) !important; }
#active-gold-theme .stat-inline .si-value { color: var(--text) !important; }
#active-gold-theme .stat-mini-item {
    background: var(--bg) !important;
}
#active-gold-theme .stat-mini-item .mini-label {
    color: var(--text3) !important;
}
#active-gold-theme .mini-table th {
    background: var(--bg) !important;
    color: var(--text2) !important;
}
#active-gold-theme .mini-table td {
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .cat-bar-track {
    background: var(--bg) !important;
}
#active-gold-theme .cat-bar-label {
    color: var(--text3) !important;
}
#active-gold-theme .cat-bar-val {
    color: var(--text3) !important;
}
#active-gold-theme .rev-row {
    background: var(--bg) !important;
}
#active-gold-theme .rev-row .rev-label {
    color: var(--text2) !important;
}
#active-gold-theme .rev-row .rev-bar-track {
    background: var(--border) !important;
}
#active-gold-theme .rev-row .rev-amount {
    color: var(--text3) !important;
}
#active-gold-theme .rev-row .rev-orders {
    color: var(--text3) !important;
}
#active-gold-theme .member-dist-row .dist-label {
    color: var(--text2) !important;
}
#active-gold-theme .member-dist-row .dist-bar {
    background: var(--border) !important;
}
#active-gold-theme .member-dist-row .dist-count {
    color: var(--text3) !important;
}
#active-gold-theme .member-pill.active-pill {
    background: rgba(200,169,81,0.12) !important;
}
#active-gold-theme .member-pill.expired-pill {
    background: var(--bg) !important;
}
#active-gold-theme .member-pill.active-pill .pill-num {
    color: var(--gold) !important;
}
#active-gold-theme .member-pill.expired-pill .pill-num {
    color: var(--text3) !important;
}
#active-gold-theme .member-pill .pill-label {
    color: var(--text3) !important;
}
#active-gold-theme .dist-dot-item.dot-free {
    background: var(--bg) !important;
}
#active-gold-theme .dist-dot-item.dot-paid {
    background: rgba(104,211,145,0.12) !important;
}
#active-gold-theme .dist-dot-item.dot-vip {
    background: rgba(200,169,81,0.12) !important;
}
#active-gold-theme .dist-dot-item.dot-free .dot-num {
    color: var(--text3) !important;
}
#active-gold-theme .dist-dot-item .dot-label {
    color: var(--text3) !important;
}
#active-gold-theme .tpl-ranking-header {
    background: var(--bg) !important;
    color: var(--text3) !important;
}
#active-gold-theme .tpl-ranking-row {
    border-bottom-color: var(--border) !important;
}
#active-gold-theme .tpl-ranking-row:hover {
    background: var(--bg) !important;
}
#active-gold-theme .tpl-ranking-row.top-rank {
    background: rgba(200,169,81,0.08) !important;
}

/* -- AI Orders / Config pages inline style leaks -- */
#active-gold-theme hr[style*="border-top:1px solid #eee"] {
    border-top-color: var(--border) !important;
}
#active-gold-theme div[style*="background:#f8f9fa"] {
    background: var(--bg) !important;
    border-color: var(--border) !important;
}
#active-gold-theme code[style*="background:#f5f5f5"] {
    background: var(--bg) !important;
    color: var(--text2) !important;
}
#active-gold-theme code[style*="background:#f0f4ff"] {
    background: rgba(200,169,81,0.15) !important;
    color: var(--gold) !important;
}
#active-gold-theme div[style*="background:#f8f9fa"],
#active-gold-theme div[style*="background:#fafafa"] {
    background: var(--bg) !important;
    border-color: var(--border) !important;
}
#active-gold-theme img[style*="background:#fff"] {
    background: var(--bg) !important;
    border-color: var(--border) !important;
}
#active-gold-theme p[style*="color:#888"] {
    color: var(--text3) !important;
}
#active-gold-theme span[style*="color:#059669"] {
    color: #68d391 !important;
}

/* -- Login page -- */
#active-gold-theme .admin-login {
    background: var(--bg) !important;
}
#active-gold-theme .login-box {
    background: var(--card) !important;
}
#active-gold-theme .login-box h1 {
    color: var(--text) !important;
}
#active-gold-theme .login-desc {
    color: var(--text3) !important;
}

/* -- Mobile admin nav -- */
@media (max-width: 768px) {
    #active-gold-theme .admin-nav-links {
        background: var(--card) !important;
        border-bottom-color: var(--border) !important;
    }
    #active-gold-theme .admin-nav-links a,
    #active-gold-theme .admin-nav-links .admin-user {
        border-bottom-color: var(--border) !important;
    }
    #active-gold-theme .admin-sidebar.open {
        box-shadow: 2px 0 12px rgba(0,0,0,0.4) !important;
    }
}

/* -- Misc Admin overrides -- */
#active-gold-theme .chart-bar-fill {
    background: var(--gold) !important;
}
#active-gold-theme .funnel-step {
    background: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}
#active-gold-theme .funnel-arrow {
    color: var(--text3) !important;
}

/* ===== User Layout ===== */
.user-layout { max-width: 1200px; margin: 0 auto; padding: 32px; }
.user-main { min-height: 60vh; }
.user-content { max-width: 900px; margin: 0 auto; }

/* ===== Page Header ===== */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 400; margin-bottom: 4px; letter-spacing: -0.3px; }
.page-header p { color: var(--text3); font-size: 13px; letter-spacing: 1px; }
.header-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
    border: 1px solid var(--border); padding: 24px 20px;
    text-align: center; background: var(--card); cursor: pointer;
    transition: border-color .3s;
}
.stat-card:hover { border-color: var(--gold); }
.stat-value { font-size: 22px; font-weight: 300; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; }

/* ===== Info List ===== */
.info-item {
    display: flex; padding: 12px 0;
    border-bottom: 1px solid var(--border); gap: 12px;
}
.info-item:last-child { border-bottom: none; }
.info-label {
    width: 120px; font-size: 11px; color: var(--text3);
    letter-spacing: 2px; text-transform: uppercase; flex-shrink: 0;
}
.info-value { font-size: 14px; color: var(--text); }

/* ===== Resume Grid ===== */
.resume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.resume-card {
    border: 1px solid var(--border); overflow: hidden;
    transition: border-color .3s; background: var(--card);
}
.resume-card:hover { border-color: var(--gold); }
.resume-card-header { padding: 16px 16px 8px; display: flex; justify-content: space-between; align-items: flex-start; }
.resume-card-header h3 { font-size: 15px; font-weight: 400; }
.resume-status {
    font-size: 10px; padding: 2px 10px; letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid var(--border); color: var(--text3);
}
.resume-status.paid { border-color: var(--gold); color: var(--gold); }
.resume-card-body { padding: 0 16px 12px; font-size: 13px; color: var(--text2); }
.resume-card-actions {
    padding: 12px 16px; border-top: 1px solid var(--border);
    display: flex; gap: 8px; flex-wrap: wrap;
}

/* ===== Empty State ===== */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 80px 20px; min-height: 40vh;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; color: var(--text3); }
.empty-state h3 { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.empty-state p { color: var(--text3); margin-bottom: 24px; font-size: 14px; letter-spacing: 1px; }
.empty-state .btn { min-width: 160px; }

/* ===== Builder Page ===== */
.builder-page { max-width: 100%; }
.builder-layout { display: flex; gap: 24px; min-height: 70vh; }
.builder-form { width: 45%; min-width: 480px; }
.builder-preview { flex: 1; position: sticky; top: 80px; align-self: flex-start; }
.builder-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.builder-header h2 { font-size: 18px; font-weight: 400; }
.builder-header-actions { display: flex; gap: 8px; }

/* ===== Form Sections ===== */
.form-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-section h3 { font-size: 14px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ===== Entry Item ===== */
.entry-item {
    border: 1px solid var(--border); padding: 16px;
    margin-bottom: 12px; background: var(--bg);
}
.entry-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; font-size: 13px; color: var(--text3);
    letter-spacing: 1px; text-transform: uppercase;
}

/* ===== Tags ===== */
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
    display: inline-flex; align-items: center; padding: 4px 10px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 12px; color: var(--text2); letter-spacing: 1px;
}
.tag-remove { margin-left: 6px; cursor: pointer; color: var(--text3); font-size: 14px; line-height: 1; }

/* ===== Template Select ===== */
.template-select { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-option {
    display: inline-block; padding: 8px 16px;
    border: 1px solid var(--border); cursor: pointer;
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    font-family: inherit; transition: all .3s;
    color: var(--text2); background: transparent;
}
.tpl-option.selected, .tpl-option:hover {
    border-color: var(--gold); background: var(--gold); color: var(--bg);
}
.tpl-option input { display: none; }

/* ===== AI Section ===== */
.ai-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gold); }
.ai-section h3 { font-size: 15px; font-weight: 400; margin-bottom: 4px; }

/* ===== Payment ===== */
.pay-methods { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pay-method-btn {
    padding: 10px 20px; border: 1px solid var(--border);
    background: transparent; cursor: pointer; font-size: 13px;
    letter-spacing: 1px; font-family: inherit; transition: all .3s;
    color: var(--text2);
}
.pay-method-btn:hover { border-color: var(--gold); color: var(--gold); }
.pay-method-btn.selected {
    border-color: var(--gold); color: var(--gold);
    background: rgba(200,169,81,.06);
}

/* ===== Badge ===== */
.badge { display: inline-block; padding: 2px 10px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.badge-paid, .badge-success { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.25); color: #27ae60; border-radius: 0; }
.badge-pending { background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.25); color: #f39c12; border-radius: 0; }
.badge-failed { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.25); color: #e74c3c; border-radius: 0; }
.badge-cancelled { border: 1px solid var(--border); color: var(--text3); }

/* ===== Tables ===== */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
    text-align: left; padding: 10px 12px;
    border-bottom: 1px solid var(--gold); font-weight: 400;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }

/* ===== Modal ===== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.7); z-index: var(--z-modal);
    justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.show { display: flex; }

/* Announcement modal specific overrides (style.css is not loaded in gold theme) */
#announcementModal.modal-overlay {
    z-index: var(--z-announcement);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.4);
    /* Use opacity/visibility instead of display for smooth animation */
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
#announcementModal.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.announcement-modal {
    border-radius: 0;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
#announcementModal.modal-overlay.show .announcement-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-box {
    background: var(--card); border: 1px solid var(--border);
    max-width: 500px; width: 100%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    opacity: 1; transform: translateY(0);
    position: relative;
}
.modal-overlay.show .modal-box {
    animation: modalIn .3s ease forwards;
}
.modal-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    z-index: var(--z-base);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    padding: 24px 24px 12px; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 18px; font-weight: 400; margin: 0; letter-spacing: -0.3px; }
.modal-close {
    background: none; border: 1px solid var(--border); font-size: 0;
    cursor: pointer; color: var(--text2); padding: 0;
    line-height: 1; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0; flex-shrink: 0;
    font-family: inherit; transition: all .3s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-close svg { width: 16px; height: 16px; flex-shrink: 0; }
.modal-body {
    padding: 16px 24px; font-size: 14px;
    color: var(--text2); line-height: 1.8; white-space: pre-wrap;
}
.modal-footer {
    padding: 12px 24px 24px; display: flex;
    justify-content: flex-end; gap: 12px;
}
.modal-footer .btn { font-size: 13px; padding: 10px 24px; letter-spacing: 1px; }
.announcement-dismiss-label {
    font-size: 12px; color: var(--text3); letter-spacing: 1px;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; margin-right: auto; user-select: none;
}
.announcement-dismiss-label input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--gold); }
.announcement-body img { max-width: 100%; height: auto; }

/* ===== Grammar Check Modal ===== */
.check-error-item {
    padding: 12px; background: rgba(192,57,43,.06);
    border: 1px solid rgba(192,57,43,.15); margin-bottom: 10px;
}
.check-error-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.check-error-type {
    display: inline-block; padding: 2px 8px;
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid #c0392b; color: #c0392b;
}
.check-error-original {
    font-size: 13px; color: var(--text); margin-bottom: 4px;
    padding: 6px 8px; background: var(--bg);
    border: 1px solid var(--border);
}
.check-error-suggestion {
    font-size: 13px; color: #27ae60;
    padding: 6px 8px; background: rgba(39,174,96,.06);
    border: 1px solid rgba(39,174,96,.15);
}
.check-error-reason { font-size: 12px; color: var(--text3); margin-top: 4px; }
.check-no-errors {
    text-align: center; padding: 30px; color: #27ae60; font-size: 15px;
    background: rgba(39,174,96,.06); border: 1px solid rgba(39,174,96,.15);
}
.check-score { font-size: 14px; font-weight: 600; color: #f39c12; margin-left: 10px; }
.check-summary {
    margin-top: 12px; padding: 10px 14px;
    background: rgba(200,169,81,.06);
    border: 1px solid rgba(200,169,81,.15);
    font-size: 13px; color: var(--gold);
}

/* ===== Builder Preview ===== */
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-header h3 { font-size: 15px; font-weight: 400; }
.preview-frame {
    background: var(--card); border: 1px solid var(--border);
    min-height: 400px; padding: 32px 24px; font-size: 13px; line-height: 1.7;
}

/* ===== Preview Resume ===== */
.preview-name { font-size: 24px; font-weight: 400; margin-bottom: 4px; color: var(--text); }
.preview-title { font-size: 14px; color: var(--text2); margin-bottom: 8px; }
.preview-contact {
    font-size: 12px; color: var(--text3); margin-bottom: 16px;
    border-bottom: 1px solid var(--border); padding-bottom: 12px; letter-spacing: 0.5px;
}
.preview-contact span { margin-right: 12px; }
.preview-summary { font-size: 13px; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.preview-section { margin-bottom: 16px; }
.preview-section h4 {
    font-size: 13px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gold); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 10px;
}
.preview-item { margin-bottom: 10px; }
.preview-item-header { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; }
.preview-item-period { color: var(--text3); font-weight: 400; font-size: 12px; }
.preview-item-sub { font-size: 12px; color: var(--text2); margin: 2px 0; }
.preview-item-desc { font-size: 12px; color: var(--text); margin-top: 2px; white-space: pre-wrap; }
.preview-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-skill {
    font-size: 11px; padding: 2px 8px; border: 1px solid var(--border);
    color: var(--text2); letter-spacing: 0.5px;
}

/* ===== Footer ===== */
.footer {
    text-align: center; padding: 48px 32px;
    color: var(--text3); font-size: 12px; letter-spacing: 1px;
    border-top: 1px solid var(--border); margin-top: 20px;
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; width: 36px; height: 36px;
    flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
}
.hamburger span {
    display: block; width: 20px; height: 1px;
    background: var(--text); transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Touch Optimization ===== */
.btn, .btn-sm, .btn-sm-outline, .btn-sm-danger,
.hamburger, .admin-hamburger, .dark-mode-toggle,
.pay-method-btn, .format-btn, .tpl-option, .tpl-filter-btn {
    touch-action: manipulation;
}
.nav-links a, .home-nav-links a, .admin-nav-links a, .admin-sidebar a {
    touch-action: manipulation;
}

/* ===== Dark Mode Toggle (hidden in gold theme via PHP, but style if visible) ===== */
.dark-mode-toggle {
    background: none; border: 1px solid var(--border);
    cursor: pointer; padding: 4px 8px; color: var(--text2);
    transition: all .3s; display: inline-flex; align-items: center;
}
.dark-mode-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Notifications ===== */
.notification-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; border: 1px solid var(--border);
    background: var(--card); margin-bottom: 8px; transition: border-color .3s;
}
.notification-item:hover { border-color: var(--gold); }
.notification-icon { font-size: 20px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.notification-content { flex: 1; min-width: 0; }
.notification-content .title { font-size: 14px; margin-bottom: 4px; }
.notification-content .desc { font-size: 12px; color: var(--text2); line-height: 1.6; }
.notification-content .time { font-size: 10px; color: var(--text3); letter-spacing: 1px; margin-top: 6px; }
.notification-actions { margin-left: auto; flex-shrink: 0; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 4px; margin-top: 24px; justify-content: center; }
.pagination a, .pagination span {
    display: inline-block; padding: 8px 14px;
    border: 1px solid var(--border); font-size: 13px;
    color: var(--text2); transition: all .3s; text-decoration: none;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active, .pagination span.active {
    border-color: var(--gold); color: var(--gold);
    background: rgba(200,169,81,.06);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .builder-layout { flex-direction: column; }
    .builder-form { width: 100%; min-width: unset; }
    .builder-preview { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .resume-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-inner { padding: 16px 24px; }
    .user-layout { padding: 24px; }
    .home-nav-inner { padding: 16px 24px; }
}

@media (max-width: 768px) {
    body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
    input, select, button, textarea { font-size: 16px !important; }

    .builder-layout { flex-direction: column; }
    .builder-form { width: 100%; min-width: unset; }
    .builder-preview { position: static; }
    .nav-inner { padding: 14px 20px; }
    .user-layout { padding: 20px; }
    .home-nav-inner { padding: 14px 20px; }
    .auth-card { padding: 24px 18px; }
    .auth-container { padding: 12px; }
    .auth-title { font-size: 18px; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .resume-grid { grid-template-columns: 1fr; }

    .admin-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
    .admin-table-wrapper .admin-table { min-width: 600px; }
    table.admin-table:not(.admin-table-wrapper table) {
        display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
    }

    .info-item { flex-direction: column; gap: 4px; padding: 12px 0; }
    .info-label { width: auto; font-size: 10px; }
    .info-value { font-size: 14px; }

    .builder-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .builder-header-actions { width: 100%; }
    .builder-header-actions .btn-sm { flex: 1; text-align: center; }

    .preview-frame { padding: 20px 16px; min-height: 300px; }
    .preview-name { font-size: 20px; }
    .preview-item-header { flex-direction: column; gap: 2px; }
    .preview-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; }
    .preview-contact span { margin-right: 0; }

    .pay-methods { gap: 8px; }
    .pay-method-btn { padding: 10px 16px; font-size: 13px; flex: 1; }

    .notification-item { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
    .notification-icon { margin-right: 0; margin-bottom: 8px; }
    .notification-actions { margin-left: 0; margin-top: 8px; width: 100%; }
    .notification-actions a { display: block; text-align: center; }
    .user-page-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    .resume-card-actions { justify-content: center; }
    .resume-card-actions .btn-sm { flex: 1; text-align: center; }
    .resume-card-header h3 { font-size: 14px; }

    .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
    .entry-header { flex-direction: column; align-items: flex-start; gap: 6px; }

    .card { padding: 16px; }
    .card-title { font-size: 14px; }

    .form-section { margin-bottom: 16px; padding-bottom: 16px; }
    .page-header h1 { font-size: 18px; }
    .page-header p { font-size: 12px; }
    .header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .header-actions .btn-sm { flex: 1; text-align: center; }

    .info-grid { grid-template-columns: 1fr !important; }
    .info-grid .info-item[style*="grid-column:1/-1"] { grid-column: 1 !important; }

    .template-select { gap: 6px; }
    .tpl-option { padding: 8px 14px; font-size: 12px; min-height: 44px; }
    .entry-item { padding: 12px; }
    .builder-form { padding: 0; }
    .nav-credits { display: none; }
    .nav-recharge { font-size: 12px; padding: 6px 12px; }

    .hamburger { display: flex; }
    .user-nav-links { gap: 2px; }
    .nav-links, .home-nav-links {
        display: none; position: absolute; top: calc(var(--nav-h) + 4px);
        left: 0; right: 0; background: var(--card);
        border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px 20px; gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: var(--z-dropdown);
    }
    .nav-links.open, .home-nav-links.open { display: flex; }
    .nav-links a, .nav-links .nav-credits, .home-nav-links a {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 14px 0; width: 100%; font-size: 13px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-of-type, .home-nav-links a:last-of-type { border-bottom: none; }
    .nav-links a.nav-admin-link {
        display: inline-flex; width: 100%; padding: 14px 0;
    }
    .home-nav-links a.btn-sm, .nav-links a.btn-sm {
        background: none; border: 1px solid var(--gold);
        padding: 12px 16px; width: auto; margin-top: 8px;
        text-align: center; display: block;
    }
}

@media (max-width: 480px) {
    .auth-card { padding: 20px 14px; }
    .auth-logo { font-size: 22px; }
    .card { padding: 14px; }
    .builder-header h2 { font-size: 16px; }
    .user-layout { padding: 12px; }
    .stats-grid { gap: 8px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 18px; }
    .resume-card-actions { gap: 6px; }
    .resume-card-actions .btn-sm { font-size: 11px; padding: 6px 10px; }
    .preview-name { font-size: 18px; }
    .preview-frame { padding: 16px 12px; }
    .form-group label { font-size: 10px; }
    .msg { font-size: 13px; padding: 10px 14px; }
    .pay-methods { flex-direction: column; }
    .pay-method-btn { width: 100%; }
    .entry-item { padding: 10px; }
    .tags-list .tag { font-size: 11px; padding: 3px 8px; }

    .captcha-row { gap: 6px; }
    .captcha-row img { height: 44px; width: 100px; }

    .modal-box { max-width: 100%; }
    .modal-header { padding: 20px 16px 10px; }
    .modal-header h2 { font-size: 16px; }
    .modal-body { padding: 12px 16px; font-size: 13px; }
    .modal-footer { padding: 10px 16px 20px; flex-direction: column; align-items: stretch; }
    .modal-footer .btn { width: 100%; text-align: center; }
    .announcement-dismiss-label { justify-content: center; margin-right: 0; margin-bottom: 4px; }
}

@media (max-width: 360px) {
    .auth-card { padding: 16px 12px; }
    .user-layout { padding: 8px; }
    .card { padding: 12px; }
    .builder-header h2 { font-size: 15px; }
    .modal-overlay { padding: 10px; }
    #announcementModal.modal-overlay { padding: 10px; }
    .announcement-modal .modal-header { padding: 16px 14px 10px; }
    .announcement-modal .modal-body { padding: 12px 14px; }
    .announcement-modal .modal-footer { padding: 10px 14px 16px; }
}

/* ============================================
   #active-gold-theme PAGE OVERRIDES
   ID-level specificity beats ALL page-specific
   CSS (profile.css, ai_image.css, photoid.css,
   page <style> blocks) regardless of load order.
   ============================================ */

/* ---- Core: force dark backgrounds on all containers ---- */
#active-gold-theme body,
#active-gold-theme .user-layout,
#active-gold-theme .user-main,
#active-gold-theme .dashboard,
#active-gold-theme .profile-page,
#active-gold-theme .container,
#active-gold-theme .photoid-page,
#active-gold-theme .builder-page,
#active-gold-theme .mall-page,
#active-gold-theme .page-content,
#active-gold-theme main,
#active-gold-theme section[class] {
    background: var(--bg); color: var(--text);
}
#active-gold-theme div[style*="background:#f5f5f5"],
#active-gold-theme div[style*="background: #f5f5f5"],
#active-gold-theme div[style*="background:#f8f8f8"],
#active-gold-theme div[style*="background: #f8f8f8"],
#active-gold-theme div[style*="background:#f0f0f0"],
#active-gold-theme div[style*="background: #f0f0f0"],
#active-gold-theme div[style*="background:#f9f9f9"],
#active-gold-theme div[style*="background: #f9f9f9"],
#active-gold-theme div[style*="background:#fff"],
#active-gold-theme div[style*="background: #fff"],
#active-gold-theme div[style*="background:white"],
#active-gold-theme [style*="background:#fff"][class],
#active-gold-theme [style*="background: #fff"][class],
#active-gold-theme [style*="background:white"] {
    background: var(--card);
}
#active-gold-theme [style*="border:1px solid #eee"],
#active-gold-theme [style*="border: 1px solid #eee"],
#active-gold-theme [style*="border:1px solid #e8ecf0"],
#active-gold-theme [style*="border: 1px solid #e8ecf0"] {
    border-color: var(--border);
}

/* ---- profile.css: personal center (user/account/index.php) ---- */
#active-gold-theme .profile-page .profile-header h1,
#active-gold-theme .profile-page .page-header h1 { color: var(--text); }
#active-gold-theme .profile-page .profile-header p,
#active-gold-theme .profile-page .page-header p { color: var(--text3); }
#active-gold-theme .profile-user-card {
    background: var(--card); border: 1px solid var(--border);
}
#active-gold-theme .profile-user-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
#active-gold-theme .profile-avatar {
    background: none;
    border: 2px solid var(--gold);
    box-shadow: none;
}
#active-gold-theme .profile-name { color: var(--text); }
#active-gold-theme .profile-balance-wrap { border-left-color: var(--border); }
#active-gold-theme .profile-balance-amount { color: var(--text); }
#active-gold-theme .profile-balance-label { color: var(--text3); }
#active-gold-theme .profile-balance-wrap .btn-sm {
    background: var(--gold); color: var(--bg); border-color: var(--gold);
}
#active-gold-theme .profile-stat-card {
    background: var(--card); border: 1px solid var(--border);
    transition: border-color .3s;
}
#active-gold-theme .profile-stat-card:hover {
    border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
#active-gold-theme .profile-stat-icon { color: var(--text3); }
#active-gold-theme .profile-stat-value { color: var(--text); }
#active-gold-theme .profile-stat-label { color: var(--text3); }
#active-gold-theme .profile-card {
    background: var(--card); border: 1px solid var(--border);
}
#active-gold-theme .profile-card-header {
    color: var(--text); border-bottom-color: var(--border);
}
#active-gold-theme .profile-card-header,
#active-gold-theme .content-card > *:first-child {
    font-size: 15px; font-weight: 400; letter-spacing: 1px;
    color: var(--gold); text-transform: uppercase;
    padding-bottom: 12px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
#active-gold-theme .profile-info-label { color: var(--text3); }
#active-gold-theme .profile-info-value { color: var(--text); }
#active-gold-theme .profile-info-item { border-bottom-color: var(--border); }
#active-gold-theme .redeem-input-group label { color: var(--text3); }
#active-gold-theme .redeem-input-group input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .redeem-input-group input:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,81,.1);
}
#active-gold-theme .btn-redeem {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg); border: none;
}
#active-gold-theme .invite-desc { color: var(--text2); }
#active-gold-theme .invite-field label { color: var(--text3); }
#active-gold-theme .invite-field input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .invite-field input:focus { border-color: var(--gold); }
#active-gold-theme .btn-copy {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .invite-stat {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .invite-stat-value { color: var(--text); }
#active-gold-theme .invite-stat-value.credits { color: var(--gold); }
#active-gold-theme .invite-stat-label { color: var(--text3); }
#active-gold-theme .invite-table-section { border-top-color: var(--border); }
#active-gold-theme .invite-table th {
    color: var(--text3); border-bottom-color: var(--border);
}
#active-gold-theme .invite-table td {
    color: var(--text2); border-bottom-color: var(--border);
}
#active-gold-theme .user-group-badge.group-free {
    background: var(--bg); color: var(--text3);
}
#active-gold-theme .profile-phone-bind { border-top-color: var(--border); }
#active-gold-theme .profile-phone-bind-title { color: var(--text); }
#active-gold-theme .profile-phone-row input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .profile-phone-row input:focus { border-color: var(--gold); }
#active-gold-theme .profile-phone-row .btn-action {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .profile-password-form label { color: var(--text3); }
#active-gold-theme .profile-password-form input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .profile-password-form input:focus { border-color: var(--gold); }
#active-gold-theme .btn-password {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg); border: none;
}
#active-gold-theme .profile-info-item input[type="email"] {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .profile-info-item input[type="email"]:focus { border-color: var(--gold); }
#active-gold-theme .ai-price-item {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .ai-price-val { color: var(--text); }
#active-gold-theme .ai-price-label { color: var(--text3); }
#active-gold-theme .profile-card .m-usage-row { border-top-color: var(--border); }
#active-gold-theme .invite-code-display { color: var(--text); }

/* ---- user/index.php: Dashboard / Feature Center ---- */
#active-gold-theme .feat-card {
    background: var(--card); border: 1px solid var(--border);
    box-shadow: none; transition: all .35s;
}
#active-gold-theme .feat-card:hover {
    border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
#active-gold-theme .feat-icon-wrap {
    background: var(--bg); color: var(--text2);
}
#active-gold-theme .feat-card:hover .feat-icon-wrap {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .feat-section-title {
    border-bottom-color: var(--border); color: var(--text);
    font-size: 16px; font-weight: 400; letter-spacing: 1px;
    text-transform: uppercase;
}
#active-gold-theme .feat-card h3 { color: var(--text); }
#active-gold-theme .feat-card .feat-desc { color: var(--text2); }
#active-gold-theme .feat-card-btn {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .dash-welcome h1 { color: var(--text); }
#active-gold-theme .dash-welcome h1 span { color: var(--text3); }
#active-gold-theme .dash-balance-inline { color: var(--text2); }
#active-gold-theme .dash-balance-inline strong { color: var(--gold); }

/* ---- user/orders.php ---- */
#active-gold-theme .orders-cat-tabs { border-bottom-color: var(--border); }
#active-gold-theme .orders-cat-tab { color: var(--text2); }
#active-gold-theme .orders-cat-tab:hover { color: var(--text); }
#active-gold-theme .orders-cat-tab.active {
    color: var(--gold); border-bottom-color: var(--gold);
}
#active-gold-theme .orders-cat-count {
    background: var(--bg); color: var(--text3);
}
#active-gold-theme .orders-cat-tab.active .orders-cat-count {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .order-card {
    background: var(--card); border: 1px solid var(--border);
}
#active-gold-theme .order-card:hover {
    border-color: var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
#active-gold-theme .order-thumb,
#active-gold-theme .order-icon { background: var(--bg); }
#active-gold-theme .order-thumb .no-img { color: var(--text3); }
#active-gold-theme .order-prompt,
#active-gold-theme .order-name { color: var(--text); }
#active-gold-theme .order-meta,
#active-gold-theme .order-detail { color: var(--text2); }
#active-gold-theme .order-actions a,
#active-gold-theme .order-actions button {
    background: var(--bg); border-color: var(--border); color: var(--text2);
}
#active-gold-theme .order-actions a:hover,
#active-gold-theme .order-actions button:hover {
    border-color: var(--gold); color: var(--gold);
}
#active-gold-theme .orders-pagination a,
#active-gold-theme .orders-pagination span {
    background: var(--card); border-color: var(--border); color: var(--text2);
}
#active-gold-theme .orders-pagination .current {
    background: var(--gold); color: var(--bg); border-color: var(--gold);
}

/* ---- user/membership.php ---- */
#active-gold-theme .m-banner {
    background: var(--card); border: 1px solid var(--border);
}
#active-gold-theme .m-banner-plan { color: var(--text); }
#active-gold-theme .m-bc-val { color: var(--text); }
#active-gold-theme .m-bc-label { color: var(--text3); }
#active-gold-theme .m-banner-balance { background: var(--bg); }
#active-gold-theme .m-bb-label { color: var(--text3); }
#active-gold-theme .m-bb-val { color: var(--text); }
#active-gold-theme .m-section-title { color: var(--text); }
#active-gold-theme .m-section-desc { color: var(--text2); }
#active-gold-theme .m-plan-card {
    background: var(--card); border: 1px solid var(--border);
    transition: all .4s;
}
#active-gold-theme .m-plan-card:hover {
    border-color: var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
#active-gold-theme .m-plan-name { color: var(--text); }
#active-gold-theme .m-plan-desc { color: var(--text2); }
#active-gold-theme .m-plan-price { color: var(--text); }
#active-gold-theme .m-plan-counts {
    border-top-color: var(--border); border-bottom-color: var(--border);
}
#active-gold-theme .m-count-num { color: var(--text); }
#active-gold-theme .m-count-label { color: var(--text3); }
#active-gold-theme .m-plan-features { color: var(--text2); }
#active-gold-theme .m-plan-features li::before { color: var(--gold); }
#active-gold-theme .m-plan-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg); border: none;
}
#active-gold-theme .m-addon-card {
    background: var(--card); border: 1px solid var(--border);
}
#active-gold-theme .m-addon-card:hover { border-color: var(--gold); }
#active-gold-theme .m-addon-name { color: var(--text); }
#active-gold-theme .m-addon-desc { color: var(--text2); }
#active-gold-theme .m-addon-count { color: var(--text2); }
#active-gold-theme .m-addon-bottom { border-top-color: var(--border); }
#active-gold-theme .m-addon-price { color: var(--text); }
#active-gold-theme .m-addon-btn {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .m-addon-btn-disabled {
    background: var(--bg); color: var(--text3);
}
#active-gold-theme .m-pay-dialog {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .m-pay-title { color: var(--text); }
#active-gold-theme .m-pay-item-name { color: var(--text2); }
#active-gold-theme .m-pay-item-price { color: var(--text); }
#active-gold-theme .m-pay-option {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .m-pay-option:hover {
    background: var(--bg); border-color: var(--gold);
}
#active-gold-theme .m-pay-option-icon { color: var(--gold); }
#active-gold-theme .m-pay-option-label { color: var(--text); }
#active-gold-theme .m-pay-option-desc { color: var(--text3); }
#active-gold-theme .m-plan-card--promo {
    border-color: #c0392b; background: var(--card);
}
#active-gold-theme .m-plan-ribbon {
    background: linear-gradient(135deg, #c0392b, #a93226);
}
#active-gold-theme .m-plan-price--promo { color: #ef5350; }
#active-gold-theme .m-plan-price-original { color: var(--text3); }
#active-gold-theme .m-plan-countdown {
    background: rgba(192,57,43,.08); color: #ef5350;
    border-color: rgba(192,57,43,.2);
}

/* ---- user/mall/index.php ---- */
#active-gold-theme .mall-balance {
    background: var(--bg); color: var(--text2);
}
#active-gold-theme .mall-balance strong { color: var(--gold); }
#active-gold-theme .mall-header h1 { color: var(--text); }
#active-gold-theme .mall-search input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .mall-search button {
    background: var(--gold); color: var(--bg);
}

/* ---- photoid.css (user/photo/photoid.php) ---- */
#active-gold-theme .upload-box {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .upload-box:hover,
#active-gold-theme .upload-box.dragover {
    border-color: var(--gold); background: var(--bg);
}
#active-gold-theme .upload-box svg { color: var(--text3); }
#active-gold-theme .upload-box p { color: var(--text); }
#active-gold-theme .upload-box .hint { color: var(--text3); }
#active-gold-theme .type-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .type-card:hover,
#active-gold-theme .type-card.active {
    border-color: var(--gold); background: var(--bg);
}
#active-gold-theme .type-card strong { color: var(--text); }
#active-gold-theme .type-card small { color: var(--text2); }
#active-gold-theme .color-swatch { border-color: var(--border); }
#active-gold-theme .color-swatch:hover { border-color: var(--gold); }
#active-gold-theme .photoid-page h1 { color: var(--text); }
#active-gold-theme .photoid-result-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .photoid-result-card:hover { border-color: var(--gold); }

/* ---- ai_image.css (user/ai/*.php) ---- */
#active-gold-theme .ai-prompt-area,
#active-gold-theme .ai-result-area,
#active-gold-theme .ai-style-grid,
#active-gold-theme .ai-image-container .form-group {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .ai-tabs { border-bottom-color: var(--border); }
#active-gold-theme .ai-tab { color: var(--text2); }
#active-gold-theme .ai-tab:hover { color: var(--text); }
#active-gold-theme .ai-tab.active {
    color: var(--gold); border-bottom-color: var(--gold);
}
#active-gold-theme .ai-free-info { color: var(--text2); }
#active-gold-theme .ai-quota-capsule {
    background: var(--bg); border-color: var(--border); color: var(--text2);
    line-height: 1;
}
#active-gold-theme .ai-quota-capsule.accent {
    border-color: var(--gold); color: var(--gold);
}
#active-gold-theme .ai-quota-num { color: var(--text); line-height: 1; }
#active-gold-theme .section-header h2,
#active-gold-theme .section-header h3 { color: var(--text); }
#active-gold-theme .section-header p { color: var(--text2); }
#active-gold-theme .size-option {
    background: var(--bg); border-color: var(--border); color: var(--text2);
}
#active-gold-theme .size-option:hover,
#active-gold-theme .size-option.active {
    border-color: var(--gold); color: var(--gold);
}
#active-gold-theme .style-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .style-card:hover,
#active-gold-theme .style-card.active { border-color: var(--gold); }
#active-gold-theme .style-card .style-name { color: var(--text); }
#active-gold-theme .result-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .result-card:hover { border-color: var(--gold); }

/* ---- AI tool pages (analysis, beauty, makeup, outfit, restore, scenery, ppt, hot_gen) ---- */
#active-gold-theme .analysis-upload-box,
#active-gold-theme .beauty-upload-box,
#active-gold-theme .makeup-upload-box,
#active-gold-theme .outfit-upload-box,
#active-gold-theme .restore-upload-box,
#active-gold-theme .scenery-upload-box {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .analysis-upload-box:hover,
#active-gold-theme .beauty-upload-box:hover,
#active-gold-theme .makeup-upload-box:hover,
#active-gold-theme .outfit-upload-box:hover,
#active-gold-theme .restore-upload-box:hover,
#active-gold-theme .scenery-upload-box:hover {
    border-color: var(--gold);
}
#active-gold-theme .analysis-preview-cell,
#active-gold-theme .beauty-preview-cell,
#active-gold-theme .makeup-preview-cell,
#active-gold-theme .outfit-preview-cell,
#active-gold-theme .restore-preview-cell,
#active-gold-theme .scenery-preview-cell,
#active-gold-theme .analysis-compare-img,
#active-gold-theme .beauty-compare-img,
#active-gold-theme .makeup-compare-img,
#active-gold-theme .outfit-compare-img,
#active-gold-theme .restore-compare-img,
#active-gold-theme .scenery-compare-img {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .analysis-subtab,
#active-gold-theme .beauty-subtab,
#active-gold-theme .makeup-subtab,
#active-gold-theme .outfit-subtab,
#active-gold-theme .restore-subtab,
#active-gold-theme .scenery-subtab {
    background: var(--bg); border-color: var(--border); color: var(--text2);
}
#active-gold-theme .analysis-subtab.active,
#active-gold-theme .beauty-subtab.active,
#active-gold-theme .makeup-subtab.active,
#active-gold-theme .outfit-subtab.active,
#active-gold-theme .restore-subtab.active,
#active-gold-theme .scenery-subtab.active {
    background: var(--gold); color: var(--bg); border-color: var(--gold);
}
#active-gold-theme .beauty-section-label,
#active-gold-theme .analysis-section-label,
#active-gold-theme .makeup-section-label,
#active-gold-theme .outfit-section-label,
#active-gold-theme .restore-section-label,
#active-gold-theme .scenery-section-label {
    color: var(--text);
}
#active-gold-theme .ppt-steps { border-color: var(--border); }
#active-gold-theme .ppt-step {
    background: var(--bg); color: var(--text3);
}
#active-gold-theme .ppt-step.active {
    color: var(--text); background: var(--card);
}
#active-gold-theme .ppt-step .step-icon {
    background: var(--border); color: var(--text3);
}
#active-gold-theme .ppt-step.active .step-icon,
#active-gold-theme .ppt-step.done .step-icon {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .ppt-input-area { border-color: var(--border); }
#active-gold-theme .ppt-input-area textarea {
    background: var(--bg); color: var(--text); border-color: var(--border);
}
#active-gold-theme .ppt-input-area textarea:focus { border-color: var(--gold); }
#active-gold-theme .ppt-section-label { color: var(--text); }
#active-gold-theme .ppt-tpl-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .ppt-tpl-card.selected { border-color: var(--gold); }
#active-gold-theme .ppt-tpl-preview { background: var(--bg); }
#active-gold-theme .ppt-tpl-name { color: var(--text); }
#active-gold-theme .hot-gen-header h1,
#active-gold-theme .style-gen-header h1 { color: var(--text); }
#active-gold-theme .hot-gen-grid .style-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .hot-gen-grid .style-card:hover { border-color: var(--gold); }

/* ---- user/resume/import.php ---- */
#active-gold-theme .import-tabs { border-bottom-color: var(--gold); }
#active-gold-theme .import-tab { color: var(--text2); }
#active-gold-theme .import-tab:hover {
    color: var(--text); background: var(--bg);
}
#active-gold-theme .import-tab.active {
    color: var(--bg); background: var(--gold); border-color: var(--gold);
}
#active-gold-theme .upload-zone {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .upload-zone:hover,
#active-gold-theme .upload-zone.dragover {
    border-color: var(--gold);
}
#active-gold-theme .upload-zone-title { color: var(--text); }
#active-gold-theme .upload-zone-desc { color: var(--text2); }
#active-gold-theme .upload-type-badge {
    background: var(--bg); border-color: var(--border); color: var(--text3);
}
#active-gold-theme .upload-type-badge.active {
    border-color: var(--gold); color: var(--gold);
}
#active-gold-theme .upload-btn {
    background: var(--gold); color: var(--bg);
}
#active-gold-theme .url-input-row input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .url-input-row input:focus { border-color: var(--gold); }
#active-gold-theme .loading-bar { background: var(--bg); }
#active-gold-theme .loading-spinner {
    border-color: var(--border); border-top-color: var(--gold);
}
#active-gold-theme .preview-card,
#active-gold-theme .preview-header,
#active-gold-theme .preview-body,
#active-gold-theme .preview-footer {
    border-color: var(--border);
}
#active-gold-theme .preview-header {
    background: var(--bg); border-bottom-color: var(--border);
}
#active-gold-theme .preview-header h3 { color: var(--text); }
#active-gold-theme .preview-body {
    background: var(--card); color: var(--text2);
}
#active-gold-theme .preview-field-label { color: var(--text3); }
#active-gold-theme .preview-field-value { color: var(--text); }
#active-gold-theme .loading-text { color: var(--text2); }
#active-gold-theme .loading-step { color: var(--text3); }

/* ---- user/resume/keywords.php ---- */
#active-gold-theme .keyword-tag {
    background: var(--bg); border-color: var(--border); color: var(--text2);
}
#active-gold-theme .keyword-tag:hover { border-color: var(--gold); }
#active-gold-theme .keyword-tag.selected {
    background: var(--gold); color: var(--bg); border-color: var(--gold);
}
#active-gold-theme .keyword-group-title {
    color: var(--text2); border-bottom-color: var(--border);
}
#active-gold-theme #jobTitle,
#active-gold-theme #jobDescription {
    background: var(--bg); border-color: var(--border); color: var(--text);
}

/* ---- user/ecommerce/*.php ---- */
#active-gold-theme .ecom-upload-card,
#active-gold-theme .detail-card {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .ecom-upload-zone {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .ecom-upload-zone:hover,
#active-gold-theme .ecom-upload-zone.dragover { border-color: var(--gold); }
#active-gold-theme .ecom-upload-preview { border-color: var(--border); }
#active-gold-theme .detail-upload-slot {
    background: var(--bg); border-color: var(--border); color: var(--text3);
}
#active-gold-theme .detail-upload-slot:hover { border-color: var(--gold); }
#active-gold-theme .ecom-breadcrumb a:hover { color: var(--gold); }
#active-gold-theme .ecom-text-input,
#active-gold-theme .detail-textarea {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .detail-template-item {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .detail-template-item:hover,
#active-gold-theme .detail-template-item.active {
    border-color: var(--gold);
}
#active-gold-theme .detail-template-item.active .detail-template-name { color: var(--gold); }
#active-gold-theme .detail-preview-panel {
    background: var(--bg); border-color: var(--border);
}
#active-gold-theme .btn-detail-go {
    background: var(--gold); color: var(--bg);
}

/* ---- user/chat/history.php ---- */
#active-gold-theme .chat-list-item {
    background: var(--card); border-color: var(--border);
}
#active-gold-theme .chat-list-item:hover { border-color: var(--gold); }

/* ---- user/account/feedback.php ---- */
#active-gold-theme .feedback-form textarea,
#active-gold-theme .feedback-form input {
    background: var(--bg); border-color: var(--border); color: var(--text);
}
#active-gold-theme .feedback-form textarea:focus,
#active-gold-theme .feedback-form input:focus { border-color: var(--gold); }

/* ---- Responsive: profile page ---- */
@media (max-width: 480px) {
    #active-gold-theme .profile-balance-wrap { border-left-color: var(--border); }
    #active-gold-theme .profile-info-item:nth-last-child(-n+2) { border-bottom-color: var(--border); }
    #active-gold-theme .profile-info-item:last-child { border-bottom: none; }
}

/* ============================================
   AGGRESSIVE DESIGN RESET — match preview exactly
   Preview design language:
   - 直角 (NO border-radius)
   - 轻字重 (font-weight 300-400)
   - 无阴影 (NO box-shadow, only border hover)
   - 纯金点缀 (#c8a951)
   - 深色背景 (#0d0d0d bg, #141414 card)
   ============================================ */

/* ---- Kill ALL border-radius ---- */
#active-gold-theme .profile-user-card,
#active-gold-theme .profile-card,
#active-gold-theme .profile-stat-card,
#active-gold-theme .profile-avatar,
#active-gold-theme .feat-card,
#active-gold-theme .feat-icon-wrap,
#active-gold-theme .feat-card-btn,
#active-gold-theme .dash-action-btn,
#active-gold-theme .order-card,
#active-gold-theme .order-actions a,
#active-gold-theme .order-actions button,
#active-gold-theme .orders-pagination a,
#active-gold-theme .orders-pagination span,
#active-gold-theme .m-plan-card,
#active-gold-theme .m-addon-card,
#active-gold-theme .m-pay-dialog,
#active-gold-theme .m-pay-option,
#active-gold-theme .mcard,
#active-gold-theme .addon-mini,
#active-gold-theme .membership-modal,
#active-gold-theme .celebration-modal,
#active-gold-theme .m-close,
#active-gold-theme .cel-icon,
#active-gold-theme .cel-dismiss,
#active-gold-theme .mcard-btn,
#active-gold-theme .addon-mini-btn,
#active-gold-theme .mcard-counts .mcard-count-item,
#active-gold-theme .cel-benefit-item,
#active-gold-theme .upload-box,
#active-gold-theme .type-card,
#active-gold-theme .color-swatch,
#active-gold-theme .photoid-result-card,
#active-gold-theme .ai-prompt-area,
#active-gold-theme .style-card,
#active-gold-theme .result-card,
#active-gold-theme .size-option,
#active-gold-theme .redeem-input-group input,
#active-gold-theme .btn-redeem,
#active-gold-theme .btn-copy,
#active-gold-theme .btn-password,
#active-gold-theme .invite-field input,
#active-gold-theme .invite-stat,
#active-gold-theme .profile-info-item input[type="email"],
#active-gold-theme .profile-password-form .form-group input,
#active-gold-theme .profile-phone-row input,
#active-gold-theme .profile-phone-row .btn-action,
#active-gold-theme .profile-balance-wrap .btn-sm,
#active-gold-theme .import-tab,
#active-gold-theme .upload-zone,
#active-gold-theme .upload-type-badge,
#active-gold-theme .upload-btn,
#active-gold-theme .url-input-row input,
#active-gold-theme .preview-card,
#active-gold-theme .keyword-tag,
#active-gold-theme .ecom-upload-zone,
#active-gold-theme .detail-upload-slot,
#active-gold-theme .detail-template-item,
#active-gold-theme .chat-list-item,
#active-gold-theme .feedback-form textarea,
#active-gold-theme .feedback-form input,
#active-gold-theme .ppt-tpl-card,
#active-gold-theme .user-group-badge,
#active-gold-theme .btn-outline {
    border-radius: 0 !important;
}

/* ---- Lighten font-weights (preview: 300-400, PHP: 600-800) ---- */
#active-gold-theme .profile-header h1,
#active-gold-theme .page-header h1 { font-weight: 400 !important; }
#active-gold-theme .profile-name { font-weight: 400 !important; }
#active-gold-theme .profile-stat-value { font-weight: 300 !important; }
#active-gold-theme .profile-card-header { font-weight: 400 !important; }
#active-gold-theme .dash-welcome h1 { font-weight: 400 !important; }
#active-gold-theme .feat-section-title { font-weight: 400 !important; }
#active-gold-theme .feat-card h3 { font-weight: 400 !important; }
#active-gold-theme .feat-card-btn { font-weight: 400 !important; }
#active-gold-theme .dash-action-btn { font-weight: 400 !important; }
#active-gold-theme .dash-balance-inline strong { font-weight: 400 !important; }
#active-gold-theme .invite-stat-value { font-weight: 300 !important; }
#active-gold-theme .invite-stat-value.credits { font-weight: 300 !important; }
#active-gold-theme .profile-balance-amount { font-weight: 300 !important; }
#active-gold-theme .mcard-price { font-weight: 300 !important; }
#active-gold-theme .mcard-count-num { font-weight: 400 !important; }
#active-gold-theme .mcard-name { font-weight: 400 !important; }
#active-gold-theme .m-plan-name { font-weight: 400 !important; }
#active-gold-theme .addon-mini-name { font-weight: 400 !important; }
#active-gold-theme .addon-mini-price { font-weight: 400 !important; }
#active-gold-theme .m-modal-title { font-weight: 400 !important; }
#active-gold-theme .cel-title { font-weight: 400 !important; }

/* ---- Kill box-shadows ---- */
#active-gold-theme .profile-user-card,
#active-gold-theme .profile-card,
#active-gold-theme .profile-stat-card,
#active-gold-theme .feat-card,
#active-gold-theme .order-card,
#active-gold-theme .m-plan-card,
#active-gold-theme .m-addon-card,
#active-gold-theme .mcard,
#active-gold-theme .addon-mini,
#active-gold-theme .celebration-modal,
#active-gold-theme .membership-modal {
    box-shadow: none !important;
}
#active-gold-theme .profile-user-card:hover,
#active-gold-theme .profile-card:hover,
#active-gold-theme .profile-stat-card:hover,
#active-gold-theme .feat-card:hover,
#active-gold-theme .order-card:hover,
#active-gold-theme .m-plan-card:hover,
#active-gold-theme .m-addon-card:hover,
#active-gold-theme .mcard:hover,
#active-gold-theme .addon-mini:hover {
    box-shadow: none !important;
}

/* ---- user/index.php <style> block: hardcoded dark overrides ---- */
#active-gold-theme .dash-welcome h1 span { color: var(--text3) !important; }
#active-gold-theme .dash-welcome h1 { color: var(--text) !important; }
#active-gold-theme .dash-balance-inline { color: var(--text2) !important; }
#active-gold-theme .dash-balance-inline strong { color: var(--gold) !important; }
#active-gold-theme .dash-action-btn {
    background: transparent !important; color: var(--text2) !important;
    border: 1px solid var(--border) !important;
}
#active-gold-theme .dash-action-btn:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
    background: transparent !important; opacity: 1 !important;
}
#active-gold-theme .dash-action-btn.dash-membership-btn {
    background: linear-gradient(135deg, var(--gold), #a88a3d) !important;
    color: var(--bg) !important; border-color: transparent !important;
    font-weight: 600 !important;
}
#active-gold-theme .dash-action-btn.dash-membership-btn:hover {
    opacity: 0.85 !important; color: var(--bg) !important;
}
#active-gold-theme .dash-action-btn.dash-chat-btn {
    background: transparent !important; color: var(--text2) !important;
    border-color: var(--border) !important;
}
#active-gold-theme .dash-action-btn.dash-chat-btn:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}

/* ---- user/index.php mcard (membership plan cards) ---- */
#active-gold-theme .mcard {
    background: var(--card) !important; border: 1px solid var(--border) !important;
}
#active-gold-theme .mcard:hover {
    border-color: var(--gold) !important; transform: translateY(-3px) !important;
}
#active-gold-theme .mcard-name { color: var(--text) !important; }
#active-gold-theme .mcard-desc { color: var(--text2) !important; }
#active-gold-theme .mcard-price { color: var(--gold) !important; }
#active-gold-theme .mcard-price-unit { color: var(--text3) !important; }
#active-gold-theme .mcard-count-item {
    background: var(--bg) !important; color: var(--text) !important;
}
#active-gold-theme .mcard-count-num { color: var(--text) !important; }
#active-gold-theme .mcard-count-label { color: var(--text3) !important; }
#active-gold-theme .mcard-features { color: var(--text2) !important; }
#active-gold-theme .mcard-features li::before { color: var(--gold) !important; }
#active-gold-theme .mcard-btn {
    background: linear-gradient(135deg, var(--gold), #a88a3d) !important;
    color: var(--bg) !important;
}
#active-gold-theme .mcard-popular {
    background: var(--gold) !important; color: var(--bg) !important;
}
#active-gold-theme .mcard--promo {
    border-color: #c0392b !important; background: var(--card) !important;
}
#active-gold-theme .mcard--promo:hover { border-color: #e53e3e !important; }
#active-gold-theme .mcard-promo-ribbon {
    background: linear-gradient(135deg, #ff6b6b, #e53e3e) !important;
}
#active-gold-theme .mcard-price--promo { color: #ef5350 !important; }
#active-gold-theme .mcard-price-original { color: var(--text3) !important; }
#active-gold-theme .mcard-countdown {
    background: rgba(192,57,43,.1) !important; color: #ef5350 !important;
    border-color: rgba(192,57,43,.25) !important;
}

/* ---- user/index.php addon-mini (加量包) ---- */
#active-gold-theme .addon-mini {
    background: var(--card) !important; border-color: var(--border) !important;
}
#active-gold-theme .addon-mini:hover { border-color: var(--gold) !important; }
#active-gold-theme .addon-mini-name { color: var(--text) !important; }
#active-gold-theme .addon-mini-counts { color: var(--text2) !important; }
#active-gold-theme .addon-mini-price { color: var(--gold) !important; }
#active-gold-theme .addon-mini-btn {
    background: var(--gold) !important; color: var(--bg) !important;
}

/* ---- user/index.php celebration modal ---- */
#active-gold-theme .celebration-overlay { background: rgba(0,0,0,.75) !important; }
#active-gold-theme .celebration-modal {
    background: var(--card) !important; border: 1px solid var(--border) !important;
}
#active-gold-theme .cel-title { color: var(--text) !important; }
#active-gold-theme .cel-subtitle { color: var(--text2) !important; }
#active-gold-theme .cel-subtitle strong { color: var(--gold) !important; }
#active-gold-theme .cel-benefit-item {
    background: var(--bg) !important; border: 1px solid var(--border) !important;
}
#active-gold-theme .cel-benefit-num { color: var(--gold) !important; }
#active-gold-theme .cel-benefit-label { color: var(--text3) !important; }
#active-gold-theme .cel-dismiss {
    background: linear-gradient(135deg, var(--gold), #a88a3d) !important;
    color: var(--bg) !important;
}

/* ---- user/index.php membership modal ---- */
#active-gold-theme .membership-overlay { background: rgba(0,0,0,.75) !important; }
#active-gold-theme .membership-modal {
    background: var(--card) !important; border: 1px solid var(--border) !important;
}
#active-gold-theme .m-close {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text3) !important;
}
#active-gold-theme .m-close:hover {
    background: var(--border) !important; color: var(--text) !important;
    border-color: var(--gold) !important;
}
#active-gold-theme .m-modal-title { color: var(--text) !important; }
#active-gold-theme .m-modal-subtitle { color: var(--text2) !important; }

/* ---- Inline style overrides: catch ALL remaining light colored text ---- */
#active-gold-theme [style*="color:#888"],
#active-gold-theme [style*="color: #888"],
#active-gold-theme [style*="color:#999"],
#active-gold-theme [style*="color: #999"],
#active-gold-theme [style*="color:#aaa"],
#active-gold-theme [style*="color: #aaa"],
#active-gold-theme [style*="color:#bbb"],
#active-gold-theme [style*="color: #bbb"] { color: var(--text2) !important; }
#active-gold-theme [style*="color:#333"],
#active-gold-theme [style*="color: #333"],
#active-gold-theme [style*="color:#555"],
#active-gold-theme [style*="color: #555"],
#active-gold-theme [style*="color:#666"],
#active-gold-theme [style*="color: #666"] { color: var(--text2) !important; }
#active-gold-theme [style*="color:#000"],
#active-gold-theme [style*="color: #000"] { color: var(--text) !important; }
#active-gold-theme [style*="background:#f5f5f5"],
#active-gold-theme [style*="background: #f5f5f5"],
#active-gold-theme [style*="background:#f8f8f8"],
#active-gold-theme [style*="background: #f8f8f8"],
#active-gold-theme [style*="background:#f9f9f9"],
#active-gold-theme [style*="background: #f9f9f9"],
#active-gold-theme [style*="background:#f9f9fb"],
#active-gold-theme [style*="background: #f9f9fb"],
#active-gold-theme [style*="background:#fafafa"],
#active-gold-theme [style*="background: #fafafa"] { background: var(--bg) !important; }
#active-gold-theme [style*="background:#fff"],
#active-gold-theme [style*="background: #fff"],
#active-gold-theme [style*="background:white"] { background: var(--card) !important; }
#active-gold-theme [style*="border:1px solid #ddd"],
#active-gold-theme [style*="border: 1px solid #ddd"],
#active-gold-theme [style*="border:1px solid #eee"],
#active-gold-theme [style*="border: 1px solid #eee"],
#active-gold-theme [style*="border:1px solid #e2e8f0"],
#active-gold-theme [style*="border: 1px solid #e2e8f0"],
#active-gold-theme [style*="border:1px solid #e8ecf0"],
#active-gold-theme [style*="border: 1px solid #e8ecf0"],
#active-gold-theme [style*="border:2px solid #eee"],
#active-gold-theme [style*="border: 2px solid #eee"] { border-color: var(--border) !important; }
#active-gold-theme [style*="border-bottom:1px solid #eee"],
#active-gold-theme [style*="border-bottom: 1px solid #eee"],
#active-gold-theme [style*="border-bottom:1px solid #f0f0f0"],
#active-gold-theme [style*="border-bottom: 1px solid #f0f0f0"],
#active-gold-theme [style*="border-top:1px solid #eee"],
#active-gold-theme [style*="border-top: 1px solid #eee"],
#active-gold-theme [style*="border-top:1px solid #f0f0f0"],
#active-gold-theme [style*="border-top: 1px solid #f0f0f0"],
#active-gold-theme [style*="border-bottom:1px solid #f3f3f3"],
#active-gold-theme [style*="border-bottom: 1px solid #f3f3f3"],
#active-gold-theme [style*="border-bottom:2px solid #eee"],
#active-gold-theme [style*="border-bottom: 2px solid #eee"] { border-color: var(--border) !important; }

/* ---- Kill all .dark-mode rules (not needed with #active-gold-theme) ---- */
#active-gold-theme .profile-user-card:hover,
#active-gold-theme .profile-card:hover,
#active-gold-theme .profile-stat-card:hover { transform: none !important; }
#active-gold-theme .profile-balance-wrap .btn-sm {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important; border-radius: 0 !important;
}
#active-gold-theme .profile-balance-wrap .btn-sm:hover {
    background: var(--bg) !important; color: var(--gold) !important;
}

/* ---- Additional inline light background from PHP detail ---- */
#active-gold-theme [style*="background:#fdf8ee"],
#active-gold-theme [style*="background: #fdf8ee"] { background: var(--bg) !important; }

/* ---- profile css badge colors ---- */
#active-gold-theme .user-group-badge.group-paid {
    background: var(--gold) !important; color: var(--bg) !important;
}
#active-gold-theme .user-group-badge.group-vip {
    background: var(--bg) !important; color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
}
#active-gold-theme .user-group-badge.group-vip_secret {
    background: var(--bg) !important; color: var(--gold) !important;
    border-color: var(--gold) !important;
}

/* ---- Success/error messages ---- */
#active-gold-theme .msg-success,
#active-gold-theme .msg-success-small { color: #68d391 !important; }
#active-gold-theme .msg-error { color: #fc8181 !important; }
#active-gold-theme .invite-status-success { color: #68d391 !important; }
#active-gold-theme .invite-status-pending { color: var(--gold) !important; }
#active-gold-theme .invite-credits { color: #68d391 !important; }
#active-gold-theme .profile-verified { color: #68d391 !important; }

/* ---- hot_gen.php (user/ai/hot_gen.php): style-grid, style-card, gen-upload, btn-gen ---- */
#active-gold-theme .style-grid { gap: 14px; }
#active-gold-theme .style-card {
    background: var(--card) !important; border: 1px solid var(--border) !important;
    transition: all .35s; position: relative;
}
#active-gold-theme .style-card::before {
    content: ''; position: absolute; inset: 0;
    border: 1px solid var(--gold); opacity: 0;
    transition: opacity .4s; pointer-events: none;
}
#active-gold-theme .style-card:hover::before { opacity: 1; }
#active-gold-theme .style-card:hover { transform: translateY(-3px); }
#active-gold-theme .style-card.selected {
    border-color: var(--gold) !important;
}
#active-gold-theme .style-card-icon {
    background: var(--bg) !important; color: var(--text2) !important;
    border-radius: 0 !important;
}
#active-gold-theme .style-card:hover .style-card-icon {
    background: var(--gold) !important; color: var(--bg) !important;
}
#active-gold-theme .style-card.selected .style-card-icon {
    background: var(--gold) !important; color: var(--bg) !important;
}
#active-gold-theme .style-card-name { color: var(--text) !important; font-weight: 400 !important; }
#active-gold-theme .style-card-desc { color: var(--text2) !important; }
#active-gold-theme .style-card-select-btn {
    background: transparent !important; color: var(--gold) !important;
    border: 1px solid var(--gold) !important; border-radius: 0 !important;
    font-size: 11px !important; letter-spacing: 2px !important;
    text-transform: uppercase !important; font-weight: 400 !important;
    transition: all .3s !important;
}
#active-gold-theme .style-card-select-btn:hover { background: var(--gold) !important; color: var(--bg) !important; }
#active-gold-theme .style-card-preview { background: var(--bg) !important; border-radius: 0 !important; }
#active-gold-theme .style-card-preview .no-preview { color: var(--text3) !important; }
#active-gold-theme .style-empty {
    border-color: var(--border) !important; color: var(--text2) !important;
}
#active-gold-theme .selected-style-tag {
    background: var(--bg) !important; color: var(--text) !important;
    border-radius: 0 !important;
}
#active-gold-theme .selected-style-tag .tag-icon {
    background: var(--gold) !important; color: var(--bg) !important;
    border-radius: 0 !important;
}
#active-gold-theme .selected-style-tag .change-btn { color: var(--text3) !important; }
#active-gold-theme .selected-style-tag .change-btn:hover { color: var(--gold) !important; }

/* ---- gen-upload & gen-editor (hot_gen) ---- */
#active-gold-theme .gen-upload-box {
    border: 1px dashed var(--border) !important;
    background: var(--card) !important; border-radius: 0 !important;
}
#active-gold-theme .gen-upload-box:hover,
#active-gold-theme .gen-upload-box.dragover {
    border-color: var(--gold) !important; background: var(--bg) !important;
}
#active-gold-theme .gen-upload-box svg { opacity: .4; }
#active-gold-theme .gen-upload-box p { color: var(--text) !important; }
#active-gold-theme .gen-upload-box .hint { color: var(--text3) !important; }
#active-gold-theme .gen-preview-cell,
#active-gold-theme .gen-preview-grid .preview-item {
    border-color: var(--border) !important; background: var(--bg) !important;
}
#active-gold-theme .gen-preview-grid .add-more-btn {
    border-color: var(--border) !important; color: var(--text3) !important;
    background: transparent !important;
}
#active-gold-theme .gen-preview-grid .add-more-btn:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .gen-preview-stack .stack-item {
    border-color: var(--border) !important; background: var(--bg) !important;
}
#active-gold-theme .gen-preview-stack .stack-count {
    background: rgba(0,0,0,.65); color: #fff;
}
#active-gold-theme .gen-info-cell h3 { color: var(--text) !important; }
#active-gold-theme .gen-info-cell .tips { color: var(--text2) !important; }
#active-gold-theme .gen-info-cell .tips li strong { color: var(--gold) !important; }
#active-gold-theme .gen-info-cell .tips li::marker { color: var(--gold); }

/* ---- btn-gen-go & btn-gen-reset ---- */
#active-gold-theme .btn-gen-go {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--bg) !important; border: none !important; border-radius: 0 !important;
    font-size: 13px !important; font-weight: 600 !important;
    letter-spacing: 1px !important; text-transform: uppercase !important;
}
#active-gold-theme .btn-gen-go:hover { opacity: .85 !important; background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important; }
#active-gold-theme .btn-gen-go:disabled { opacity: .4 !important; cursor: not-allowed !important; }
#active-gold-theme .btn-gen-reset {
    background: transparent !important; border: 1px solid var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
    font-size: 12px !important; letter-spacing: 1px !important;
    text-transform: uppercase !important;
}
#active-gold-theme .btn-gen-reset:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}

/* ---- gen-custom-kw-input (hot_gen keywords) ---- */
#active-gold-theme .gen-custom-kw-input {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text) !important; border-radius: 0 !important;
}
#active-gold-theme .gen-custom-kw-input:focus {
    border-color: var(--gold) !important;
}
#active-gold-theme .gen-custom-kw-input::placeholder { color: var(--text3) !important; }

/* ---- aspect-ratio & resolution radio (hot_gen) ---- */
#active-gold-theme .ai-param-group label { color: var(--text3) !important; }
#active-gold-theme .ar-card {
    background: var(--bg) !important; border-color: var(--border) !important;
    border-radius: 0 !important; color: var(--text2) !important;
}
#active-gold-theme .ar-card:has(input:checked) {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .radio-group label {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .radio-group input:checked + label {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important;
}

/* ---- preview-lightbox ---- */
#active-gold-theme .preview-lightbox { background: rgba(0,0,0,.85); }
#active-gold-theme .preview-lightbox .lb-close {
    background: rgba(255,255,255,.1); color: #fff; border-radius: 0 !important;
}
#active-gold-theme .preview-lightbox .lb-close:hover { background: rgba(255,255,255,.25); }
#active-gold-theme .preview-lightbox .lb-caption { color: #ccc; }

/* ---- quota bar (all feature pages) ---- */
#active-gold-theme .qbar { color: var(--gold) !important; }

/* ---- back-to-previous btn (hot_gen) ---- */
#active-gold-theme .back-to-previous[style*="border:1px solid #ddd"] {
    border-color: var(--border) !important; color: var(--text2) !important;
    border-radius: 0 !important;
}
#active-gold-theme .back-to-previous[style*="border:1px solid #ddd"]:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .back-to-previous svg { flex-shrink: 0; vertical-align: middle; }

/* ---- outfit resolution bar (outfit.php) ---- */
#active-gold-theme .outfit-resolution-bar {
    background: var(--card) !important;
    border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .outfit-resolution-bar span.label { color: var(--text3) !important; }
#active-gold-theme .res-btn {
    background: transparent !important; color: var(--text2) !important;
    border-radius: 0 !important; border-color: var(--border) !important;
}
#active-gold-theme .res-btn:hover {
    background: var(--bg) !important; border-color: var(--gold) !important;
}
#active-gold-theme .res-btn.active {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important;
}
#active-gold-theme .outfit-resolution-bar .multiplier { color: var(--text3) !important; }
#active-gold-theme .btn-outfit-go {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: var(--bg) !important; border-radius: 0 !important; font-weight: 400 !important;
}
#active-gold-theme .btn-outfit-go:hover { opacity: 0.9 !important; }
#active-gold-theme .btn-outfit-reset {
    background: transparent !important; border-color: var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .btn-outfit-reset:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}

/* ---- beauty / makeup / restore / scenery action buttons ---- */
#active-gold-theme .btn-beauty-go,
#active-gold-theme .btn-makeup-go,
#active-gold-theme .btn-restore-go,
#active-gold-theme .btn-scenery-go {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: var(--bg) !important; border: none !important; border-radius: 0 !important;
    font-size: 13px !important; font-weight: 600 !important;
    letter-spacing: 1px !important; text-transform: uppercase !important;
    box-shadow: none !important;
}
#active-gold-theme .btn-beauty-go:hover,
#active-gold-theme .btn-makeup-go:hover,
#active-gold-theme .btn-restore-go:hover,
#active-gold-theme .btn-scenery-go:hover {
    opacity: .85 !important; transform: none !important;
}
#active-gold-theme .btn-beauty-go:disabled,
#active-gold-theme .btn-makeup-go:disabled,
#active-gold-theme .btn-restore-go:disabled,
#active-gold-theme .btn-scenery-go:disabled {
    opacity: .4 !important; cursor: not-allowed !important;
}
#active-gold-theme .beauty-btn-row .btn-beauty-reset,
#active-gold-theme .makeup-btn-row .btn-makeup-reset,
#active-gold-theme .restore-btn-row .btn-restore-reset,
#active-gold-theme .scenery-btn-row .btn-scenery-reset {
    background: transparent !important; border: 1px solid var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
    font-size: 12px !important; letter-spacing: 1px !important;
    text-transform: uppercase !important;
}
#active-gold-theme .beauty-btn-row .btn-beauty-reset:hover,
#active-gold-theme .makeup-btn-row .btn-makeup-reset:hover,
#active-gold-theme .restore-btn-row .btn-restore-reset:hover,
#active-gold-theme .scenery-btn-row .btn-scenery-reset:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}

/* ---- ai-stage-loading (loading spinner) ---- */
#active-gold-theme .ai-stage-loading { color: var(--text2) !important; }
#active-gold-theme .ai-stage-loading .stage-text { color: var(--text) !important; }
#active-gold-theme .ai-stage-loading .stage-hint { color: var(--text3) !important; }

/* ---- section-desc (hot_gen) ---- */
#active-gold-theme .style-select-section .section-desc { color: var(--text2) !important; }

/* ---- ===== recharge modal (includes/recharge_modal.php) ===== ---- */
#active-gold-theme .recharge-overlay { background: rgba(0,0,0,.7); }
#active-gold-theme .recharge-modal {
    background: var(--card) !important; border: 1px solid var(--border) !important;
    border-radius: 0 !important; box-shadow: 0 20px 60px rgba(0,0,0,.5) !important;
}
#active-gold-theme .recharge-modal::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    z-index: var(--z-base);
}
#active-gold-theme .recharge-modal-title {
    color: var(--text) !important; font-weight: 400 !important;
    letter-spacing: 1px; text-transform: uppercase;
}
#active-gold-theme .recharge-modal-close {
    color: var(--text2) !important; background: transparent !important;
    border: 1px solid var(--border) !important; border-radius: 0 !important;
}
#active-gold-theme .recharge-modal-close:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
    background: transparent !important;
}
#active-gold-theme .recharge-amount-fixed .fixed-price {
    color: var(--gold) !important; font-weight: 300 !important;
}
#active-gold-theme .recharge-amount-fixed .fixed-label {
    color: var(--text3) !important;
}
#active-gold-theme .recharge-amount-btn {
    background: var(--bg) !important; border: 1px solid var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
    font-weight: 400 !important;
}
#active-gold-theme .recharge-amount-btn:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .recharge-amount-btn.active {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important;
}
#active-gold-theme .recharge-custom-wrap input {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text) !important; border-radius: 0 !important;
}
#active-gold-theme .recharge-custom-wrap input:focus {
    border-color: var(--gold) !important;
}
#active-gold-theme .recharge-custom-confirm {
    background: var(--gold) !important; color: var(--bg) !important;
    border: none !important; border-radius: 0 !important;
}
#active-gold-theme .recharge-pay-tabs {
    border-color: var(--border) !important; border-radius: 0 !important;
}
#active-gold-theme .recharge-pay-tab {
    background: var(--bg) !important; color: var(--text3) !important;
    border-radius: 0 !important;
}
#active-gold-theme .recharge-pay-tab.active {
    background: var(--gold) !important; color: var(--bg) !important;
}
#active-gold-theme .recharge-qr-box {
    border-color: var(--border) !important; background: var(--bg) !important;
    border-radius: 0 !important;
}
#active-gold-theme .recharge-qr-tip { color: var(--text3) !important; }
#active-gold-theme .recharge-action-btn {
    border-radius: 0 !important; font-weight: 400 !important;
    letter-spacing: 1px; text-transform: uppercase;
}
#active-gold-theme .recharge-real-pay-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--bg) !important;
}
#active-gold-theme .recharge-balance-pay-btn {
    background: var(--gold) !important; color: var(--bg) !important;
}
#active-gold-theme .recharge-pay-hint { color: var(--text3) !important; }
#active-gold-theme .recharge-no-pay-hint {
    background: rgba(192,57,43,.08) !important;
    color: #fc8181 !important;
    border-radius: 0 !important;
}
#active-gold-theme .recharge-no-pay-hint a { color: var(--gold) !important; }

/* ---- ===== ledger (user/account/ledger.php) ===== ---- */
#active-gold-theme .ledger-header h1 { color: var(--text) !important; }
#active-gold-theme .ledger-summary-item {
    background: var(--card) !important; border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ledger-summary-item:hover { box-shadow: none !important; }
#active-gold-theme .ledger-summary-item.active {
    border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold) !important;
}
#active-gold-theme .ledger-summary-value { color: var(--text) !important; font-weight: 300 !important; }
#active-gold-theme .ledger-summary-value.positive { color: #68d391 !important; }
#active-gold-theme .ledger-summary-value.negative { color: #fc8181 !important; }
#active-gold-theme .ledger-summary-label { color: var(--text3) !important; }
#active-gold-theme .ledger-filter-group label { color: var(--text3) !important; }
#active-gold-theme .ledger-filter-group input,
#active-gold-theme .ledger-filter-group select {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text) !important; border-radius: 0 !important;
}
#active-gold-theme .ledger-filter-group input:focus,
#active-gold-theme .ledger-filter-group select:focus {
    border-color: var(--gold) !important;
}
#active-gold-theme .ledger-filter-btn {
    background: var(--gold) !important; color: var(--bg) !important;
    border: none !important; border-radius: 0 !important;
    letter-spacing: 1px; text-transform: uppercase;
}
#active-gold-theme .ledger-filter-btn-reset {
    background: transparent !important; border-color: var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .ledger-filter-btn-reset:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .ledger-item {
    background: var(--card) !important; border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ledger-item:hover { box-shadow: none !important; }
#active-gold-theme .ledger-item-type { color: var(--text) !important; font-weight: 400 !important; }
#active-gold-theme .ledger-item-remark { color: var(--text2) !important; }
#active-gold-theme .ledger-item-meta { color: var(--text3) !important; }
#active-gold-theme .ledger-item-meta .order-no-link { color: var(--gold) !important; }
#active-gold-theme .ledger-item-amount .amount { font-weight: 300 !important; }
#active-gold-theme .ledger-item-amount .amount.positive { color: #68d391 !important; }
#active-gold-theme .ledger-item-amount .amount.negative { color: #fc8181 !important; }
#active-gold-theme .ledger-item-amount .balance-after { color: var(--text3) !important; }
#active-gold-theme .ledger-empty {
    background: var(--card) !important; border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ledger-empty p { color: var(--text2) !important; }
#active-gold-theme .ledger-empty-icon { color: var(--text3) !important; }
#active-gold-theme .ledger-loading { color: var(--text3) !important; }
#active-gold-theme .ledger-pagination a,
#active-gold-theme .ledger-pagination span {
    background: var(--card) !important; border-color: var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .ledger-pagination a:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
    background: var(--card) !important;
}
#active-gold-theme .ledger-pagination .current {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important;
}

/* ---- Kill remaining border color light leaks ---- */
#active-gold-theme [style*="border-bottom:1px solid #f5f5f5"],
#active-gold-theme [style*="border-bottom: 1px solid #f5f5f5"] { border-color: var(--border) !important; }

/* ---- ===== analysis.php (user/ai/analysis.php) ===== ---- */
#active-gold-theme .analysis-quota[style*="background:#ecfdf5"] {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text2) !important;
}
#active-gold-theme .analysis-quota .ai-quota-capsule { color: var(--text2) !important; }
#active-gold-theme .analysis-quota .ai-quota-capsule.accent { color: var(--gold) !important; }
#active-gold-theme .analysis-upload-box {
    border: 1px dashed var(--border) !important;
    background: var(--card) !important;
}
#active-gold-theme .analysis-upload-box:hover,
#active-gold-theme .analysis-upload-box.dragover {
    border-color: var(--gold) !important; background: var(--bg) !important;
}
#active-gold-theme .analysis-upload-box p { color: var(--text) !important; }
#active-gold-theme .analysis-upload-box .hint { color: var(--text3) !important; }
#active-gold-theme .analysis-preview-cell {
    border-color: var(--border) !important; background: var(--bg) !important;
    border-radius: 0 !important;
}
#active-gold-theme .analysis-info-cell h3 { color: var(--text) !important; }
#active-gold-theme .analysis-info-cell .tips { color: var(--text2) !important; }
#active-gold-theme .analysis-info-cell .tips li::marker { color: var(--gold); }
#active-gold-theme .btn-analysis-go {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--bg) !important; border: none !important; border-radius: 0 !important;
    font-size: 13px !important; font-weight: 600 !important;
    letter-spacing: 1px !important; text-transform: uppercase !important;
}
#active-gold-theme .btn-analysis-go:hover { opacity: .85 !important; }
#active-gold-theme .btn-analysis-go:disabled { opacity: .4 !important; cursor: not-allowed !important; }
#active-gold-theme .btn-analysis-reset {
    background: transparent !important; border: 1px solid var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
    font-size: 12px !important; letter-spacing: 1px !important;
    text-transform: uppercase !important;
}
#active-gold-theme .btn-analysis-reset:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .analysis-subtab {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .analysis-subtab:hover { border-color: var(--gold) !important; color: var(--gold) !important; }
#active-gold-theme .analysis-subtab.active {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important;
}
#active-gold-theme .analysis-result h2 { color: var(--text) !important; font-weight: 400 !important; }
#active-gold-theme .analysis-compare-img {
    border-color: var(--border) !important; background: var(--bg) !important;
    border-radius: 0 !important;
}
#active-gold-theme .analysis-compare-label { color: var(--text3) !important; }
#active-gold-theme .analysis-result-info { color: var(--text2) !important; }
#active-gold-theme .analysis-loading { color: var(--text3) !important; }
#active-gold-theme .ai-save-hint { color: var(--text3) !important; }
#active-gold-theme .btn-analysis-go[style*="border-color:#d4d8e0"] {
    border-color: var(--border) !important;
}

/* ---- ===== result.php (user/ai/result.php) ===== ---- */
#active-gold-theme .result-page-header h1 { color: var(--text) !important; font-weight: 400 !important; }
#active-gold-theme .result-page-header .back-link[style*="border:1px solid #e0e0e0"] {
    border-color: var(--border) !important; color: var(--text2) !important;
}
#active-gold-theme .result-page-header .back-link[style*="border:1px solid #e0e0e0"]:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}

/* ---- Panel (gold_ecommerce style) ---- */
#active-gold-theme .result-panel {
    background: var(--card) !important;
    border-color: var(--border) !important;
}
#active-gold-theme .result-panel::before {
    background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
}
#active-gold-theme .result-panel .panel-title {
    color: var(--gold) !important;
    border-bottom-color: var(--border) !important;
}

/* ---- Result Image ---- */
#active-gold-theme .result-main-image {
    border-color: var(--border) !important;
    background: var(--bg) !important;
}
#active-gold-theme .result-toggle-original[style*="border:1px solid #e8e8e8"] {
    border-color: var(--border) !important; color: var(--text3) !important;
}
#active-gold-theme .result-toggle-original[style*="border:1px solid #e8e8e8"]:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .result-original-wrap .result-compare-label { color: var(--text3) !important; }
#active-gold-theme .result-original-wrap .result-compare-img {
    border-color: var(--border) !important; background: var(--bg) !important;
}
#active-gold-theme .result-grid-item {
    border-color: var(--border) !important; background: var(--bg) !important;
}
#active-gold-theme .result-grid-item .grid-actions a { color: var(--text2) !important; }
#active-gold-theme .result-grid-item .grid-actions a:hover { color: var(--gold) !important; }

/* ---- Meta (gold_ecommerce style) ---- */
#active-gold-theme .result-meta .meta-item .label { color: var(--text3) !important; }
#active-gold-theme .result-meta .meta-item .value { color: var(--text2) !important; }

/* ---- Action Buttons (gold_ecommerce style) ---- */
#active-gold-theme .btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: var(--bg) !important; border: none !important;
    font-weight: 600 !important; letter-spacing: 2px !important;
    border-radius: 0 !important;
    font-family: inherit !important;
}
#active-gold-theme .btn-gold:hover { opacity: .85 !important; }
#active-gold-theme .btn-outline {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: transparent !important;
    letter-spacing: 2px !important;
    border-radius: 0 !important;
}
#active-gold-theme .btn-outline:hover {
    background: var(--gold) !important;
    color: var(--bg) !important;
}
#active-gold-theme .result-save-hint { color: var(--text3) !important; }

/* ---- Order Card ---- */
#active-gold-theme .result-order-card {
    background: var(--card) !important; border-color: var(--border) !important;
}
#active-gold-theme .result-order-header[style*="background:#fafbfc"] {
    background: var(--bg) !important;
    border-color: var(--border) !important;
}

/* ---- AI 生图页面下载按钮直角 ---- */
#active-gold-theme #downloadBtnGen,
#active-gold-theme .result-actions .btn-outline,
#active-gold-theme .result-panel .btn-gold {
    border-radius: 0 !important;
}
#active-gold-theme .result-order-header span { color: var(--text3) !important; }
#active-gold-theme .result-order-row + .result-order-row { border-color: var(--border) !important; }
#active-gold-theme .result-order-label { color: var(--text3) !important; }
#active-gold-theme .result-order-value { color: var(--text) !important; }
#active-gold-theme .result-order-main[style*="background:linear-gradient"] {
    background: var(--bg) !important;
}
#active-gold-theme .result-order-main .number-label { color: var(--text3) !important; }
#active-gold-theme .result-order-main .number-value { color: var(--gold) !important; }
#active-gold-theme .result-order-main .number-hint { color: var(--text3) !important; }
#active-gold-theme .result-order-main .number-hint .copy-btn[style*="border:1px solid #d1d5db"] {
    border-color: var(--border) !important; color: var(--text3) !important;
}
#active-gold-theme .result-order-main .number-hint .copy-btn[style*="border:1px solid #d1d5db"]:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .result-order-main .copy-order-btn {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .result-order-main .copy-order-btn:hover {
    background: var(--gold) !important; color: #0d0d0d !important;
}

/* ---- Three-stage indicator ---- */
#active-gold-theme .stage-item .stage-title { color: var(--text) !important; }
#active-gold-theme .stage-item .stage-hint { color: var(--text3) !important; }
#active-gold-theme .stage-icon-wrap {
    border-color: var(--border) !important;
    color: var(--text2) !important;
}
#active-gold-theme .stage-item.active .stage-icon-wrap {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
#active-gold-theme .stage-item.done .stage-icon-wrap {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--bg) !important;
}
#active-gold-theme .stage-item.done .stage-title { color: var(--gold) !important; }
#active-gold-theme .stage-connector { background: var(--border) !important; }
#active-gold-theme .stage-item.active + .stage-connector { background: var(--gold) !important; }
#active-gold-theme .stage-item.done + .stage-connector { background: var(--gold) !important; }
#active-gold-theme .stage-item.done .stage-check::after { color: var(--gold) !important; }
#active-gold-theme .stage-elapsed { color: var(--text3) !important; }
#active-gold-theme .pending-progress-wrap { background: var(--border) !important; }
#active-gold-theme .pending-progress-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold)) !important;
}
#active-gold-theme .pending-check-btn {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: transparent !important;
    letter-spacing: 1px !important;
}
#active-gold-theme .pending-check-btn:hover {
    background: var(--gold) !important;
    color: var(--bg) !important;
}
#active-gold-theme .pending-error { color: #fc8181 !important; }

/* ---- Catch remaining elements not covered above ---- */
#active-gold-theme .btn-sm { border-radius: 0 !important; }
#active-gold-theme .recharge-toast {
    background: var(--card) !important; color: var(--text) !important;
    border-radius: 0 !important; box-shadow: none !important;
}

/* ---- ai_page_header.php shared elements ---- */
#active-gold-theme .ai-free-info {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text2) !important;
    border-radius: 0 !important;
}
#active-gold-theme .retention-wrap .ai-retention-notice,
#active-gold-theme .ai-retention-notice {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text2) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ai-retention-icon svg { stroke: var(--gold); }
#active-gold-theme .ai-history-section {
    border-top-color: var(--border) !important;
}
#active-gold-theme .ai-history-title {
    color: var(--text) !important; font-weight: 400 !important;
}
#active-gold-theme .ai-history-grid { gap: 14px; }
#active-gold-theme .ai-history-item {
    background: var(--card) !important;
    border-color: var(--border) !important;
    border-radius: 0 !important;
    transition: all .35s;
}
#active-gold-theme .ai-history-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: none !important;
    border-color: var(--gold) !important;
}
#active-gold-theme .ai-history-img {
    background: var(--bg) !important;
}
#active-gold-theme .ai-history-item .no-img {
    background: var(--bg) !important;
    color: var(--text3) !important;
}
#active-gold-theme .ai-history-prompt {
    color: var(--text2) !important;
}
#active-gold-theme .ai-history-status.success { color: #68d391 !important; }
#active-gold-theme .ai-history-status.failed { color: #fc8181 !important; }
#active-gold-theme .ai-history-status.pending { color: var(--gold) !important; }
#active-gold-theme .ai-history-more a {
    color: var(--text3) !important;
}
#active-gold-theme .ai-history-more a:hover {
    color: var(--gold) !important;
}
#active-gold-theme .ai-quota-sep {
    background: var(--border) !important;
}

/* ---- ppt.php (AI PPT) ---- */
#active-gold-theme .ppt-container .ppt-steps {
    border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ppt-step {
    background: var(--bg) !important; color: var(--text3) !important;
}
#active-gold-theme .ppt-step.active { background: var(--card) !important; color: var(--text) !important; }
#active-gold-theme .ppt-step.done { background: var(--card) !important; color: var(--gold) !important; }
#active-gold-theme .ppt-step .step-icon {
    background: var(--border) !important; color: var(--text3) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ppt-step.active .step-icon { background: var(--gold) !important; color: var(--bg) !important; }
#active-gold-theme .ppt-step.done .step-icon { background: var(--gold) !important; color: var(--bg) !important; }
#active-gold-theme .ppt-step:not(:last-child)::after { background: var(--border) !important; }
#active-gold-theme .ppt-input-area textarea {
    background: var(--card) !important; border-color: var(--border) !important;
    color: var(--text) !important; border-radius: 0 !important;
}
#active-gold-theme .ppt-input-area textarea:focus { border-color: var(--gold) !important; }
#active-gold-theme .ppt-section-label { color: var(--text) !important; font-weight: 400 !important; }
#active-gold-theme .ppt-template-grid .ppt-tpl-card {
    background: var(--card) !important; border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ppt-tpl-card:hover {
    border-color: var(--gold) !important; transform: translateY(-3px) !important;
}
#active-gold-theme .ppt-tpl-card.selected { border-color: var(--gold) !important; }
#active-gold-theme .ppt-tpl-card.selected::after {
    background: var(--gold) !important; color: var(--bg) !important;
    border-radius: 0 !important;
}
#active-gold-theme .ppt-tpl-preview { background: var(--bg) !important; }
#active-gold-theme .ppt-tpl-preview .no-img { color: var(--text3) !important; }
#active-gold-theme .ppt-tpl-name { color: var(--text) !important; }
#active-gold-theme .ppt-history { border-top-color: var(--border) !important; }
#active-gold-theme .ppt-history-title { color: var(--text) !important; font-weight: 400 !important; }
#active-gold-theme .ppt-history-table th {
    border-bottom-color: var(--border) !important; color: var(--text3) !important;
}
#active-gold-theme .ppt-history-table td {
    border-bottom-color: var(--border) !important; color: var(--text2) !important;
}
#active-gold-theme .ppt-history-table tr:hover td { background: var(--card) !important; }
#active-gold-theme .ppt-history-status {
    border-radius: 0 !important;
    font-weight: 400 !important;
}
#active-gold-theme .ppt-history-status.success {
    background: rgba(104,211,145,0.15) !important; color: #68d391 !important;
}
#active-gold-theme .ppt-history-status.failed {
    background: rgba(252,129,129,0.15) !important; color: #fc8181 !important;
}
#active-gold-theme .ppt-history-status.pending {
    background: rgba(200,169,81,0.15) !important; color: var(--gold) !important;
}
#active-gold-theme .ppt-history-link { color: var(--gold) !important; }
#active-gold-theme .ppt-history-link:hover { color: var(--gold-light, #e8d5a3) !important; }

/* ---- feedback.php (user/account/feedback.php) ---- */
#active-gold-theme .feedback-section-title {
    color: var(--text) !important; font-weight: 400 !important;
}
#active-gold-theme .fb-form-card {
    background: var(--card) !important; border-color: var(--border) !important;
    box-shadow: none !important; border-radius: 0 !important;
}
#active-gold-theme .fb-form-label { color: var(--text3) !important; }
#active-gold-theme .fb-form-input,
#active-gold-theme .fb-form-textarea {
    background: var(--bg) !important; border-color: var(--border) !important;
    color: var(--text) !important; border-radius: 0 !important;
}
#active-gold-theme .fb-form-input:focus,
#active-gold-theme .fb-form-textarea:focus {
    border-color: var(--gold) !important; box-shadow: none !important;
}
#active-gold-theme .fb-upload-zone {
    background: var(--bg) !important; border-color: var(--border) !important;
    border-radius: 0 !important;
}
#active-gold-theme .fb-upload-zone:hover {
    border-color: var(--gold) !important; background: var(--card) !important;
}
#active-gold-theme .fb-upload-icon { color: var(--text3) !important; }
#active-gold-theme .fb-upload-text { color: var(--text2) !important; }
#active-gold-theme .fb-upload-hint { color: var(--text3) !important; }
#active-gold-theme .fb-upload-remove {
    background: #dc2626 !important; border-radius: 0 !important;
}
#active-gold-theme .fb-submit-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: var(--bg) !important; border: none !important; border-radius: 0 !important;
    font-weight: 400 !important; letter-spacing: 2px !important;
    text-transform: uppercase !important;
}
#active-gold-theme .fb-submit-btn:hover { opacity: 0.9 !important; background: var(--gold) !important; }
#active-gold-theme .fb-submit-btn:disabled {
    opacity: 0.4 !important; cursor: not-allowed !important;
}
#active-gold-theme .fb-form-msg { border-radius: 0 !important; }
#active-gold-theme .fb-form-msg.success {
    background: rgba(104,211,145,0.15) !important; color: #68d391 !important;
}
#active-gold-theme .fb-form-msg.error {
    background: rgba(252,129,129,0.15) !important; color: #fc8181 !important;
}
#active-gold-theme .fb-item {
    background: var(--card) !important; border-color: var(--border) !important;
    box-shadow: none !important; border-radius: 0 !important;
}
#active-gold-theme .fb-item:hover { box-shadow: none !important; }
#active-gold-theme .fb-item-title { color: var(--text) !important; }
#active-gold-theme .fb-item-desc { color: var(--text2) !important; }
#active-gold-theme .fb-item-meta { color: var(--text3) !important; }
#active-gold-theme .fb-item-screenshot img {
    border-color: var(--border) !important; border-radius: 0 !important;
}
#active-gold-theme .fb-status {
    border-radius: 0 !important; font-weight: 400 !important;
}
#active-gold-theme .fb-status-pending {
    background: rgba(200,169,81,0.15) !important; color: var(--gold) !important;
}
#active-gold-theme .fb-status-processing {
    background: rgba(147,197,253,0.15) !important; color: #93c5fd !important;
}
#active-gold-theme .fb-status-resolved {
    background: rgba(104,211,145,0.15) !important; color: #68d391 !important;
}
#active-gold-theme .fb-status-completed {
    background: rgba(165,180,252,0.15) !important; color: #a5b4fc !important;
}
#active-gold-theme .fb-admin-reply {
    background: rgba(104,211,145,0.1) !important;
    border-left-color: #68d391 !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .fb-admin-reply-label { color: var(--text) !important; }
#active-gold-theme .fb-reward-info {
    background: rgba(200,169,81,0.12) !important;
    color: var(--gold) !important; border-radius: 0 !important;
}
#active-gold-theme .fb-empty { color: var(--text3) !important; }
#active-gold-theme .fb-page-btn {
    background: var(--card) !important; border-color: var(--border) !important;
    color: var(--text2) !important; border-radius: 0 !important;
}
#active-gold-theme .fb-page-btn:hover {
    border-color: var(--gold) !important; color: var(--gold) !important;
}
#active-gold-theme .fb-page-btn.active {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important;
}
