/* ExiledShop — Main Stylesheet */

:root {
    --bg:          #0d0f14;
    --bg-card:     #13161e;
    --bg-card2:    #1a1e29;
    --border:      #252a38;
    --text:        #e2e8f0;
    --text-muted:  #8892a4;
    --accent:      #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --success:     #10b981;
    --danger:      #ef4444;
    --warning:     #f59e0b;
    --discord:     #5865f2;
    --paypal:      #0070ba;
    --radius:      10px;
    --radius-lg:   16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
    background: rgba(13,15,20,0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 2px; text-decoration: none; }
.brand-exiled { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; }
.brand-shop   { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-admin { color: var(--warning) !important; }
.nav-user { display: flex; align-items: center; gap: 0.75rem; }
.nav-username { color: var(--text-muted); font-size: 0.85rem; }
.nav-logout { color: var(--danger) !important; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    border: none; cursor: pointer;
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: all .2s;
    font-family: 'Inter', sans-serif;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-secondary{ background: var(--bg-card2); color: var(--text); border: 1px solid var(--border); }
.btn-discord  { background: var(--discord); color: #fff; }
.btn-donate   { background: var(--paypal); color: #fff; width: 100%; justify-content: center; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-payout   { background: var(--success); color: #fff; }
.btn-lg       { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-quick    { background: var(--bg-card2); color: var(--text); border: 1px solid var(--border); padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-quick:hover { border-color: var(--accent); }
.btn-tier     { background: var(--accent); color: #fff; width: 100%; justify-content: center; padding: 0.5rem; font-size: 0.85rem; margin-top: auto; }
.btn-tier-done{ background: var(--bg-card2); color: var(--success); border: 1px solid var(--success); cursor: default; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Flash messages ── */
.flash-container { max-width: 1200px; margin: 1rem auto; padding: 0 1.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; font-size: 0.9rem; }
.flash-success { background: rgba(16,185,129,0.15); border: 1px solid var(--success); color: var(--success); }
.flash-error   { background: rgba(239,68,68,0.15);  border: 1px solid var(--danger);  color: var(--danger);  }
.flash-warning { background: rgba(245,158,11,0.15); border: 1px solid var(--warning); color: var(--warning); }
.flash-info    { background: rgba(124,58,237,0.15); border: 1px solid var(--accent);  color: var(--accent);  }

/* ── Main / Footer ── */
.main-content { flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 2rem 1.5rem; }
.footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; }

/* ── Hero / Landing ── */
.hero-section { text-align: center; padding: 4rem 0 3rem; position: relative; }
.hero-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-title { font-family: 'Rajdhani', sans-serif; font-size: 4rem; font-weight: 700; line-height: 1; margin-bottom: 1rem; }
.hero-exiled { color: #fff; }
.hero-shop   { color: var(--accent); }
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.rank-showcase { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.rank-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; text-align: center; min-width: 100px; transition: transform .2s; }
.rank-card:hover { transform: translateY(-4px); }
.rank-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.rank-name { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 1rem; }
.rank-price { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* ── Donation page ── */
.donate-page { display: flex; flex-direction: column; gap: 2rem; }

.dd-banner { background: linear-gradient(135deg, #7c2d12, #dc2626); border-radius: var(--radius-lg); padding: 1rem 1.5rem; text-align: center; }
.dd-banner-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.dd-fire { font-size: 1.5rem; }
.dd-text { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 2px; }
.dd-ends { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

.status-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.status-greeting { font-size: 1.1rem; margin-bottom: 0.5rem; }
.status-rank { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.status-total-label { color: var(--text-muted); font-size: 0.85rem; text-align: right; }
.status-total { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; text-align: right; }
.status-max { color: var(--text-muted); font-size: 1.2rem; }
.status-bar-wrap { margin-top: 0.5rem; min-width: 200px; }
.status-bar { height: 8px; background: var(--bg-card2); border-radius: 4px; overflow: hidden; }
.status-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a855f7); border-radius: 4px; transition: width 1s ease; }
.status-bar-max { background: linear-gradient(90deg, var(--success), #34d399); }
.status-bar-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

.hr-banner { background: rgba(245,158,11,0.1); border: 1px solid var(--warning); border-radius: var(--radius); padding: 0.75rem 1.25rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }

.section-title { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.25rem; }
.section-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.tiers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.tier-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; transition: border-color .2s, transform .2s; border-top: 3px solid var(--rank-color, var(--border)); }
.tier-card:hover { transform: translateY(-3px); border-color: var(--rank-color, var(--accent)); }
.tier-achieved { background: rgba(16,185,129,0.06); border-color: var(--success) !important; }
.tier-header { display: flex; justify-content: space-between; align-items: center; }
.tier-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem; }
.tier-check { color: var(--success); font-size: 1.1rem; }
.tier-price { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.tier-price-original { color: var(--text-muted); font-size: 0.9rem; }
.tier-price-dd { font-size: 1.4rem; font-weight: 700; color: #ef4444; }
.dd-tag { background: #ef4444; color: #fff; font-size: 0.65rem; padding: 0.1rem 0.35rem; border-radius: 4px; font-weight: 700; vertical-align: middle; margin-left: 4px; }
.tier-remaining { color: var(--text-muted); font-size: 0.8rem; }

.donate-form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.donate-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-weight: 500; font-size: 0.9rem; }
.form-optional { color: var(--text-muted); font-weight: 400; }
.form-input { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.65rem 0.9rem; color: var(--text); font-size: 0.95rem; font-family: 'Inter', sans-serif; width: 100%; outline: none; transition: border-color .2s; }
.form-input:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; }
.amount-input-wrap { display: flex; align-items: center; gap: 0; }
.amount-prefix { background: var(--bg-card2); border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); padding: 0.65rem 0.75rem; color: var(--text-muted); }
.amount-input { border-radius: 0 var(--radius) var(--radius) 0 !important; }
.quick-amounts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dd-note { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius); padding: 0.6rem 0.9rem; font-size: 0.85rem; color: #fca5a5; }
.form-note { color: var(--text-muted); font-size: 0.8rem; }

/* ── Rank badges ── */
.rank-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; font-family: 'Rajdhani', sans-serif; }
.rank-none       { background: rgba(136,146,164,0.15); color: var(--text-muted); }
.rank-hero       { background: rgba(205,127,50,0.2);  color: #cd7f32; }
.rank-warrior    { background: rgba(192,192,192,0.2); color: #c0c0c0; }
.rank-legend     { background: rgba(255,215,0,0.2);   color: #ffd700; }
.rank-berserker  { background: rgba(255,69,0,0.2);    color: #ff4500; }
.rank-legacy     { background: rgba(148,0,211,0.2);   color: #b44fff; }
.rank-ascended   { background: rgba(0,191,255,0.2);   color: #00bfff; }
.rank-high-roller{ background: rgba(245,158,11,0.2);  color: var(--warning); }
[class*="rank-paragon-"] { background: rgba(236,72,153,0.18); color: #ec4899; }
.rank-owner          { background: rgba(239,68,68,0.18);  color: #ef4444; }
.rank-chief-of-staff { background: rgba(220,38,38,0.18);  color: #f87171; }
.rank-supervisor     { background: rgba(168,85,247,0.18); color: #c084fc; }
.rank-lead-admin     { background: rgba(139,92,246,0.18); color: #a78bfa; }
.rank-senior-admin   { background: rgba(99,102,241,0.18); color: #818cf8; }
.rank-admin          { background: rgba(59,130,246,0.18); color: #60a5fa; }
.rank-exiled-dj      { background: rgba(20,184,166,0.18); color: #2dd4bf; }

/* ── Success page ── */
.success-page { display: flex; justify-content: center; padding: 2rem 0; }
.success-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 500px; width: 100%; text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-title { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.success-details { background: var(--bg-card2); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.success-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.success-dd  span { color: #ef4444; }
.success-ascended { background: rgba(0,191,255,0.1); border: 1px solid rgba(0,191,255,0.3); border-radius: var(--radius); padding: 0.75rem; font-size: 0.9rem; margin-bottom: 1rem; }
.success-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.success-actions { display: flex; justify-content: center; }

/* ── Admin ── */
.admin-page { display: flex; flex-direction: column; gap: 1.5rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 700; }
.admin-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { background: var(--bg-card2); padding: 0.65rem 0.75rem; text-align: left; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--bg-card2); }
.table-empty { text-align: center; color: var(--text-muted); padding: 2rem !important; }
.message-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: monospace; font-size: 0.75rem; color: var(--text-muted); }
.status-pill { padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.status-completed{ background: rgba(16,185,129,0.15); color: var(--success); }
.status-pending  { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-failed   { background: rgba(239,68,68,0.15);  color: var(--danger);  }
.search-form { display: flex; gap: 0.75rem; }
.search-input { max-width: 300px; }
.pagination { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.page-info { color: var(--text-muted); font-size: 0.85rem; }
.empty-state { color: var(--text-muted); padding: 2rem; text-align: center; }
.user-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; max-width: 500px; }
.user-card-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9rem; }

/* Double Dono admin */
.dd-active-card { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 500px; }
.dd-inactive-card { color: var(--text-muted); padding: 1rem 0; }
.dd-status-badge { display: inline-block; background: #ef4444; color: #fff; padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem; }
.dd-card-row { display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.dd-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 500px; }
.dd-form-card h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.dd-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form-note { color: var(--text-muted); font-size: 0.85rem; }

/* Payout */
.payout-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 600px; }
.payout-info { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.payout-example { background: var(--bg-card2); border-radius: var(--radius); padding: 0.75rem; margin-top: 0.75rem; }
.payout-form { display: flex; flex-direction: column; gap: 1.25rem; }
.percent-input-wrap { display: flex; align-items: center; gap: 0; max-width: 150px; }
.percent-input { border-radius: var(--radius) 0 0 var(--radius) !important; }
.percent-suffix { background: var(--bg-card2); border: 1px solid var(--border); border-left: none; border-radius: 0 var(--radius) var(--radius) 0; padding: 0.65rem 0.75rem; color: var(--text-muted); }
.payout-preview { background: var(--bg-card2); border-radius: var(--radius); padding: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
