/* Hypnos2 Premium UI additions - namespaced to avoid disturbing the legacy theme. */
:root {
    --hypnos-gold: #e9bd68;
    --hypnos-gold-soft: #b98242;
    --hypnos-copper: #8b4d35;
    --hypnos-bg: #170d0b;
    --hypnos-panel: rgba(35, 22, 18, .96);
    --hypnos-panel-soft: rgba(51, 31, 25, .92);
    --hypnos-line: rgba(224, 163, 95, .35);
    --hypnos-muted: #b9aaa1;
    --hypnos-success: #60bd6e;
    --hypnos-danger: #db6a5e;
    --hypnos-discord: #5865f2;
}

body.hypnos-premium-ready .content-area,
body.hypnos-premium-ready .sidebar > * {
    transition: transform .25s ease, box-shadow .25s ease, opacity .35s ease;
}

.hypnos-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hypnos-particle {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(240, 190, 105, .65);
    box-shadow: 0 0 12px rgba(240, 190, 105, .8);
    animation: hypnosFloat linear infinite;
}

@keyframes hypnosFloat {
    0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
    15% { opacity: .75; }
    75% { opacity: .35; }
    100% { transform: translate3d(35px, -110vh, 0) scale(1.45); opacity: 0; }
}

.hypnos-reveal {
    opacity: 0;
    transform: translateY(14px);
}

.hypnos-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.hypnos-premium-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hypnos-line);
    background: linear-gradient(145deg, rgba(49, 29, 24, .98), rgba(24, 14, 12, .98));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .27), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.hypnos-premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 65%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 221, 155, .09), transparent);
    transition: left .65s ease;
    pointer-events: none;
}

.hypnos-premium-card:hover::before { left: 150%; }

.hypnos-glow-button,
.hypnos-glow-button.btn {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(235, 188, 101, .65) !important;
    color: #fff7df !important;
    background: linear-gradient(180deg, #6d392a, #3b211c) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hypnos-glow-button:hover,
.hypnos-glow-button.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139, 77, 53, .45), 0 0 16px rgba(233, 189, 104, .18);
    filter: brightness(1.08);
}

/* Sidebar server status */
.hypnos-server-widget {
    margin: 18px 0;
    padding: 0;
    border-radius: 4px;
}

.hypnos-widget-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #f5d89c;
    border-bottom: 1px solid var(--hypnos-line);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .7px;
}

.hypnos-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    background: rgba(219, 106, 94, .18);
    color: #ef9a91;
}

.hypnos-status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
}

.hypnos-status-pill.is-online {
    background: rgba(96, 189, 110, .16);
    color: #7ed98b;
}

.hypnos-server-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(230, 172, 103, .12);
}

.hypnos-server-stat {
    padding: 12px 9px;
    text-align: center;
    background: rgba(25, 15, 13, .94);
}

.hypnos-server-stat strong {
    display: block;
    color: #f5c873;
    font-size: 19px;
    line-height: 1.2;
}

.hypnos-server-stat span {
    display: block;
    margin-top: 3px;
    color: var(--hypnos-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.hypnos-server-footer {
    padding: 9px 12px;
    color: #8f7f76;
    font-size: 10px;
    border-top: 1px solid rgba(224, 163, 95, .14);
}

.hypnos-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px 0;
}

.hypnos-channel {
    padding: 4px 8px;
    border-radius: 3px;
    color: #e5b5ad;
    background: rgba(219,106,94,.13);
    font-size: 10px;
}
.hypnos-channel.is-online { color: #8dde99; background: rgba(96,189,110,.13); }

/* Discord */
.hypnos-discord-card {
    margin: 18px 0;
    padding: 16px;
    border-color: rgba(103, 116, 245, .48);
    background:
        radial-gradient(circle at 90% 12%, rgba(88, 101, 242, .28), transparent 42%),
        linear-gradient(145deg, rgba(42, 35, 65, .98), rgba(22, 17, 30, .98));
}

.hypnos-discord-card__top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.hypnos-discord-card__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    color: #fff;
    background: var(--hypnos-discord);
    box-shadow: 0 8px 18px rgba(88,101,242,.3);
    font-size: 22px;
}

.hypnos-discord-card h4 { margin: 0; color: #fff; font-size: 15px; }
.hypnos-discord-card p { margin: 4px 0 0; color: #bbb6cb; font-size: 11px; }
.hypnos-discord-counts { display: flex; gap: 15px; margin: 14px 0; }
.hypnos-discord-counts strong { color: #fff; font-size: 16px; }
.hypnos-discord-counts span { display: block; color: #aaa4bb; font-size: 9px; text-transform: uppercase; }
.hypnos-discord-card .btn { width: 100%; background: #5865f2 !important; border-color: #7580ff !important; }

/* Account dashboard */
.hypnos-dashboard-hero {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 16px;
    margin-bottom: 18px;
}

.hypnos-dashboard-welcome { padding: 22px; }
.hypnos-dashboard-welcome small { color: #a99487; text-transform: uppercase; letter-spacing: 1px; }
.hypnos-dashboard-welcome h2 { margin: 7px 0 8px; color: #f7d58b; }
.hypnos-dashboard-welcome p { color: #c4b5ab; margin-bottom: 16px; }
.hypnos-dashboard-status { padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hypnos-dashboard-status i { font-size: 30px; color: var(--hypnos-success); margin-bottom: 8px; }
.hypnos-dashboard-status strong { color: #fff; }
.hypnos-dashboard-status span { color: #9f9188; font-size: 11px; margin-top: 4px; }

.hypnos-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.hypnos-dashboard-metric { padding: 15px; text-align: center; }
.hypnos-dashboard-metric i { color: #d49a59; font-size: 20px; }
.hypnos-dashboard-metric strong { display: block; margin: 7px 0 2px; color: #f4d28a; font-size: 20px; }
.hypnos-dashboard-metric span { color: #9f9188; font-size: 10px; text-transform: uppercase; }

.hypnos-character-preview { margin-bottom: 18px; padding: 16px; }
.hypnos-character-preview h3 { margin: 0 0 14px; color: #f3cd7a; font-size: 16px; }
.hypnos-character-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.hypnos-character-mini { display: flex; gap: 9px; align-items: center; padding: 9px; background: rgba(255,255,255,.025); border: 1px solid rgba(224,163,95,.13); }
.hypnos-character-mini img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 1px solid #95613e; }
.hypnos-character-mini strong { display: block; color: #f2d7a2; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hypnos-character-mini span { color: #9d8d84; font-size: 10px; }
.hypnos-dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* Ranking */
.hypnos-ranking-shell { padding: 0; }
.hypnos-ranking-intro { padding: 20px; margin-bottom: 14px; }
.hypnos-ranking-intro h2 { margin: 0 0 5px; color: #f4ce79; }
.hypnos-ranking-intro p { margin: 0; color: #a99a91; }
.hypnos-ranking-tabs { display: flex; gap: 7px; margin: 12px 0 16px; }
.hypnos-ranking-tabs a { flex: 1; padding: 11px 8px; text-align: center; color: #cbbdb3; background: rgba(41,25,21,.86); border: 1px solid rgba(224,163,95,.18); text-decoration: none; }
.hypnos-ranking-tabs a.is-active,
.hypnos-ranking-tabs a:hover { color: #fff0c3; border-color: rgba(233,189,104,.55); background: linear-gradient(180deg,#69402c,#38221b); }

.hypnos-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; align-items: end; margin: 18px 0; }
.hypnos-podium-card { padding: 15px 10px; text-align: center; min-height: 155px; }
.hypnos-podium-card.is-first { min-height: 178px; transform: translateY(-8px); border-color: rgba(255,211,102,.65); }
.hypnos-podium-rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 8px; color: #20120d; background: #c4c4c4; font-weight: 800; }
.hypnos-podium-card.is-first .hypnos-podium-rank { background: #ffd45f; }
.hypnos-podium-card.is-third .hypnos-podium-rank { background: #c77b45; }
.hypnos-podium-card img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(233,189,104,.45); }
.hypnos-podium-card h4 { margin: 8px 0 2px; color: #f5d38e; }
.hypnos-podium-card p { margin: 0; color: #9f9188; font-size: 11px; }

.hypnos-ranking-search { display: flex; gap: 8px; margin-bottom: 14px; }
.hypnos-ranking-search .form-control { flex: 1; }
.hypnos-ranking-table { border: 1px solid rgba(224,163,95,.18); }
.hypnos-ranking-table thead th { background: #2a1b17 !important; color: #f0ce8c !important; border-color: #58392d !important; }
.hypnos-ranking-table tbody tr { transition: background .18s ease, transform .18s ease; }
.hypnos-ranking-table tbody tr:hover { background: rgba(233,189,104,.06) !important; }
.hypnos-ranking-position { font-weight: 800; color: #d6a85e; }
.hypnos-ranking-avatar { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; border: 1px solid #805238; }
.hypnos-ranking-name { color: #f4d498; font-weight: 700; }
.hypnos-ranking-sub { color: #9c8c82; font-size: 10px; }
.hypnos-ranking-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 15px; }
.hypnos-ranking-pagination a { min-width: 32px; padding: 7px 9px; text-align: center; color: #d6c4b5; background: #2b1b17; border: 1px solid rgba(224,163,95,.2); }
.hypnos-ranking-pagination a.is-active,
.hypnos-ranking-pagination a:hover { color: #fff; background: #70422e; border-color: #d39b58; }

/* Download */
.hypnos-download-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; padding: 24px; margin-bottom: 16px; }
.hypnos-download-hero h2 { margin: 0 0 8px; color: #f5cf79; font-size: 25px; }
.hypnos-download-hero p { color: #bcada3; }
.hypnos-download-cta { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hypnos-download-cta .btn { padding: 13px; font-size: 15px; }
.hypnos-download-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 16px; }
.hypnos-download-meta > div { padding: 13px; text-align: center; }
.hypnos-download-meta strong { display: block; color: #f4ce7b; font-size: 14px; word-break: break-word; }
.hypnos-download-meta span { color: #96887f; font-size: 9px; text-transform: uppercase; }
.hypnos-download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hypnos-download-box { padding: 18px; }
.hypnos-download-box h3 { margin: 0 0 13px; color: #f3cd7a; font-size: 16px; }
.hypnos-download-box ul,
.hypnos-download-box ol { padding-left: 20px; color: #c5b6ad; line-height: 1.8; }
.hypnos-hash { display: flex; gap: 7px; align-items: center; margin-top: 12px; padding: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(224,163,95,.15); }
.hypnos-hash code { color: #d8bf8d; word-break: break-all; font-size: 10px; flex: 1; }

/* Patch notes */
.hypnos-patchnotes-head { padding: 23px; margin-bottom: 16px; }
.hypnos-patchnotes-head h2 { margin: 0 0 7px; color: #f5cf79; }
.hypnos-patchnotes-head p { margin: 0; color: #aa9b92; }
.hypnos-patchnote { display: grid; grid-template-columns: 125px 1fr; margin-bottom: 13px; }
.hypnos-patchnote__side { padding: 18px 12px; text-align: center; border-right: 1px solid rgba(224,163,95,.2); }
.hypnos-patchnote__version { display: block; color: #f4cd78; font-weight: 800; }
.hypnos-patchnote__date { display: block; margin-top: 5px; color: #8f8178; font-size: 10px; }
.hypnos-patchnote__body { padding: 18px; }
.hypnos-patchnote__body h3 { margin: 0 0 7px; color: #f0d4a0; font-size: 18px; }
.hypnos-patchnote__body p { color: #afa098; }
.hypnos-patchnote__body ul { margin: 12px 0 0; padding-left: 18px; color: #c9bbb2; }
.hypnos-patchnote__body li { margin: 5px 0; }
.hypnos-patchnote__type { display: inline-block; padding: 3px 7px; margin-bottom: 8px; border-radius: 2px; color: #f7e2b4; background: rgba(170,104,55,.25); font-size: 9px; text-transform: uppercase; }
.hypnos-patchnote__type.security { background: rgba(91,143,205,.24); color: #b9d7ff; }

/* Security admin */
.hypnos-security-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 15px; }
.hypnos-security-metric { padding: 15px; text-align: center; }
.hypnos-security-metric i { font-size: 20px; color: #d69e5e; }
.hypnos-security-metric strong { display: block; margin-top: 7px; color: #f4cf82; font-size: 21px; }
.hypnos-security-metric span { color: #96887f; font-size: 10px; text-transform: uppercase; }
.hypnos-health-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.hypnos-health-item { display: flex; justify-content: space-between; padding: 10px; background: rgba(0,0,0,.16); }
.hypnos-health-item .ok { color: #72cf80; }
.hypnos-health-item .bad { color: #e47c70; }

@media (max-width: 900px) {
    .hypnos-dashboard-hero,
    .hypnos-download-hero,
    .hypnos-download-grid { grid-template-columns: 1fr; }
    .hypnos-dashboard-grid,
    .hypnos-download-meta,
    .hypnos-security-grid { grid-template-columns: repeat(2,1fr); }
    .hypnos-character-list { grid-template-columns: repeat(2,1fr); }
}

/* Promóciós kódok és felhasználói jegykezelés */
.hypnos-account-tools { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0; }
.hypnos-account-promo-box,
.hypnos-account-ticket-box { padding:18px; }
.hypnos-account-tool-title { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.hypnos-account-tool-title > i { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:#f0cb7c; background:rgba(213,153,76,.13); font-size:18px; }
.hypnos-account-tool-title small { color:#9d8f86; text-transform:uppercase; letter-spacing:.8px; font-size:9px; }
.hypnos-account-tool-title h3 { margin:2px 0 0; color:#f3d08b; font-size:16px; }
.hypnos-account-tools p { color:#a99a91; font-size:11px; line-height:1.6; }
.hypnos-promo-form { display:flex; gap:9px; align-items:center; }
.hypnos-promo-form .form-control { flex:1; min-width:0; height:42px; text-transform:uppercase; }
.hypnos-promo-form .btn { height:42px; white-space:nowrap; }
.hypnos-promo-form.compact { margin:8px 0 5px; }
.hypnos-promo-mini-history { padding:16px 18px; margin-bottom:16px; }
.hypnos-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.hypnos-section-heading h3 { margin:0; color:#f0cc84; font-size:15px; }
.hypnos-section-heading a { color:#d7aa65; font-size:10px; }
.hypnos-promo-mini-row { display:grid; grid-template-columns:150px 1fr 155px; gap:12px; align-items:center; padding:9px 0; border-top:1px solid rgba(225,177,103,.11); }
.hypnos-promo-mini-row strong { color:#f2d59a; }
.hypnos-promo-mini-row span { color:#c1b2a8; }
.hypnos-promo-mini-row small { color:#8d8078; text-align:right; }
.hypnos-promo-redeem-card { display:grid; grid-template-columns:80px 1fr; gap:16px; padding:22px; margin-bottom:16px; }
.hypnos-promo-icon { display:grid; place-items:center; width:70px; height:70px; border-radius:50%; color:#f4cf80; background:radial-gradient(circle,rgba(218,165,78,.22),rgba(218,165,78,.04)); border:1px solid rgba(226,177,95,.22); font-size:28px; }
.hypnos-promo-copy small { color:#9b8d84; text-transform:uppercase; letter-spacing:1px; }
.hypnos-promo-copy h3 { margin:4px 0 7px; color:#f3d18d; }
.hypnos-promo-copy p { color:#afa098; }
.hypnos-promo-history { padding:18px; }
.hypnos-promo-history h3 { color:#f1cf89; margin-top:0; }
.hypnos-promo-empty { color:#8f827a; text-align:center; padding:20px; }

.hypnos-ticket-layout { display:grid; grid-template-columns:310px minmax(0,1fr); gap:14px; align-items:start; }
.hypnos-ticket-sidebar { padding:16px; }
.hypnos-ticket-list { display:flex; flex-direction:column; gap:7px; }
.hypnos-ticket-list-item { display:flex; justify-content:space-between; gap:10px; padding:11px; border:1px solid rgba(226,177,95,.12); background:rgba(26,16,14,.42); color:#d3c4ba; }
.hypnos-ticket-list-item:hover,
.hypnos-ticket-list-item.is-active { border-color:rgba(226,177,95,.42); background:rgba(100,61,39,.27); text-decoration:none; }
.hypnos-ticket-list-item strong { display:block; color:#ead2a2; font-size:11px; }
.hypnos-ticket-list-item span { display:block; margin-top:4px; color:#92857d; font-size:9px; }
.hypnos-ticket-status { display:inline-flex; align-items:center; height:22px; padding:3px 7px; border-radius:999px; font-size:8px; white-space:nowrap; text-transform:uppercase; }
.hypnos-ticket-status.open { color:#f1cd7d; background:rgba(210,151,55,.15); }
.hypnos-ticket-status.answered { color:#8fdbae; background:rgba(62,166,103,.15); }
.hypnos-ticket-status.closed { color:#d39494; background:rgba(175,65,65,.15); }
.hypnos-ticket-empty { color:#8d8078; padding:25px 8px; text-align:center; }
.hypnos-ticket-main > .hypnos-premium-card { padding:19px; }
.hypnos-ticket-form-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:11px; }
.hypnos-ticket-form-grid .wide { grid-column:1/-1; }
.hypnos-ticket-form-grid label { display:block; margin-bottom:5px; color:#a7988e; font-size:10px; text-transform:uppercase; }
.hypnos-ticket-form-grid textarea { height:auto; }
.hypnos-ticket-new .btn { margin-top:12px; }
.hypnos-ticket-thread-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding-bottom:13px; border-bottom:1px solid rgba(226,177,95,.13); }
.hypnos-ticket-thread-head small,
.hypnos-ticket-thread-head span { color:#91847c; font-size:9px; }
.hypnos-ticket-thread-head h3 { margin:4px 0; color:#f1cf89; }
.hypnos-ticket-messages { display:flex; flex-direction:column; gap:10px; padding:16px 0; }
.hypnos-ticket-message { max-width:82%; padding:12px 14px; border-radius:10px; background:rgba(38,24,20,.55); border:1px solid rgba(255,255,255,.06); }
.hypnos-ticket-message.user { align-self:flex-start; }
.hypnos-ticket-message.admin { align-self:flex-end; background:rgba(116,78,37,.22); border-color:rgba(226,177,95,.2); }
.hypnos-ticket-message header { display:flex; justify-content:space-between; gap:15px; margin-bottom:7px; }
.hypnos-ticket-message header strong { color:#edcf94; font-size:10px; }
.hypnos-ticket-message header small { color:#81756f; font-size:8px; }
.hypnos-ticket-message p { margin:0; color:#cabbb2; line-height:1.6; white-space:normal; }
.hypnos-ticket-reply textarea { height:auto; margin-bottom:9px; }
.hypnos-ticket-close-form { margin-top:8px; }
.hypnos-ticket-closed-note { padding:12px; color:#b99999; background:rgba(155,65,65,.1); text-align:center; }

@media (max-width:900px) {
    .hypnos-account-tools,
    .hypnos-ticket-layout { grid-template-columns:1fr; }
    .hypnos-ticket-form-grid { grid-template-columns:1fr; }
    .hypnos-ticket-form-grid .wide { grid-column:auto; }
    .hypnos-promo-form { flex-direction:column; align-items:stretch; }
    .hypnos-promo-mini-row { grid-template-columns:1fr; }
    .hypnos-promo-mini-row small { text-align:left; }
}
