/*
DesignSystemCore v1.3.0 — Unified Module Styling Runtime
Diese Datei arbeitet bewusst als Style-Brücke. Sie überschreibt keine Logik,
sondern harmonisiert vorhandene Klassen aus Theme, AdminCore, DashboardNext,
ProfileNext und UserPanelNext.
*/

body.st-origin,
body.abyss-theme,
body.inferno-theme,
body{
    color:var(--dsc-text);
}

/* Globale Flächen */
body.st-origin .panel,
body.st-origin .origin-panel,
body.st-origin .admin-card,
body.st-origin .admin-user-card,
body.st-origin .dashboard-widget,
body.st-origin .dashboard-stat-card,
body.st-origin .dashboard-character-mini,
body.st-origin .profilenext-card,
body.st-origin .profilenext-member-card,
body.st-origin .profilenext-widget-card,
body.st-origin .profilenext-filter-panel,
body.st-origin .profilenext-bio-panel,
body.st-origin .profilenext-edit-panel,
body.st-origin .userpanel-next-widget,
body.st-origin .character-card-widget,
body.st-origin .userpanel-next-stats div,
body.st-origin .userpanel-next-character,
body.st-origin .character-card-row,
body.st-origin .userpanel-next-profile-card,
body.st-origin .userpanel-next-xpbox,
body.st-origin .userpanel-next-links a,
body.st-origin .origin-system-panel{
    border:1px solid var(--dsc-line) !important;
    border-radius:var(--dsc-radius) !important;
    background:
        radial-gradient(circle at 85% 0%, rgba(255,153,48,.09), transparent 32%),
        linear-gradient(180deg, rgba(28,20,13,.96), rgba(10,9,8,.98)) !important;
    color:var(--dsc-text) !important;
    box-shadow:var(--dsc-shadow-soft), inset 0 1px 0 rgba(255,221,147,.07) !important;
}

/* Hero- und Kopfbereiche */
body.st-origin .origin-hero,
body.st-origin .dashboard-hero,
body.st-origin .admin-hero-panel,
body.st-origin .profilenext-v6-hero,
body.st-origin .profilenext-directory-hero,
body.st-origin .userpanel-next-hero,
body.st-origin .dsc-admin-hero{
    border:1px solid var(--dsc-line-strong) !important;
    border-radius:var(--dsc-radius-xl) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255,122,34,.22), transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(255,189,102,.16), transparent 34%),
        linear-gradient(135deg, rgba(35,23,13,.96), rgba(8,7,6,.98)) !important;
    box-shadow:var(--dsc-shadow), inset 0 1px 0 rgba(255,226,159,.12) !important;
}

body.st-origin h1,
body.st-origin h2,
body.st-origin h3,
body.st-origin .origin-panel-title,
body.st-origin .dashboard-widget-head h3,
body.st-origin .dashboard-hero h2,
body.st-origin .admin-card h3,
body.st-origin .profilenext-v6-hero-main h2,
body.st-origin .profilenext-directory-hero h2,
body.st-origin .userpanel-next-nameblock h3,
body.st-origin .userpanel-next-header h3,
body.st-origin .dsc-admin-card h3{
    color:var(--dsc-accent-2) !important;
    text-shadow:0 0 18px rgba(255,153,48,.14) !important;
}

body.st-origin p,
body.st-origin small,
body.st-origin .muted,
body.st-origin .text-muted,
body.st-origin .dashboard-widget-body p,
body.st-origin .userpanel-next-nameblock p,
body.st-origin .userpanel-next-header p,
body.st-origin .profilenext-muted,
body.st-origin .origin-mini-stat span{
    color:var(--dsc-muted) !important;
}

/* Buttons, Links, Modulnavigation */
body.st-origin a.origin-toplink,
body.st-origin .origin-nav-list a,
body.st-origin .origin-module-nav a,
body.st-origin .admin-actions a,
body.st-origin .admin-btn,
body.st-origin .admin-user-card button,
body.st-origin .profilenext-nav-links a,
body.st-origin .profilenext-card-link,
body.st-origin .profilenext-reset,
body.st-origin .profilenext-widget-card a,
body.st-origin .userpanel-next-links a,
body.st-origin .dashboard-customize-menu summary,
body.st-origin .dashboard-drag-handle,
body.st-origin .dashboard-toggle-submit,
body.st-origin button,
body.st-origin input[type="submit"]{
    border:1px solid var(--dsc-line) !important;
    border-radius:var(--dsc-radius-sm) !important;
    background:linear-gradient(180deg, rgba(217,154,67,.15), rgba(15,11,8,.96)) !important;
    color:var(--dsc-text-soft) !important;
    box-shadow:inset 0 1px 0 rgba(255,226,159,.07) !important;
    text-decoration:none !important;
}

body.st-origin a.origin-toplink:hover,
body.st-origin .origin-nav-list a:hover,
body.st-origin .origin-nav-list a.is-active,
body.st-origin .origin-module-nav a:hover,
body.st-origin .origin-module-nav a.active,
body.st-origin .origin-module-nav a.is-active,
body.st-origin .admin-actions a:hover,
body.st-origin .admin-btn:hover,
body.st-origin .admin-user-card button:hover,
body.st-origin .profilenext-nav-links a:hover,
body.st-origin .profilenext-nav-links a.is-active,
body.st-origin .profilenext-card-link:hover,
body.st-origin .userpanel-next-links a:hover,
body.st-origin .dashboard-customize-menu summary:hover,
body.st-origin .dashboard-drag-handle:hover,
body.st-origin button:hover,
body.st-origin input[type="submit"]:hover{
    border-color:var(--dsc-line-strong) !important;
    color:#fff0cf !important;
    background:linear-gradient(180deg, rgba(255,169,68,.26), rgba(44,24,12,.96)) !important;
    box-shadow:var(--dsc-glow), inset 0 1px 0 rgba(255,226,159,.16) !important;
    transform:translateY(-1px);
}

/* Formulare */
body.st-origin input,
body.st-origin textarea,
body.st-origin select,
body.st-origin .admin-user-card select,
body.st-origin .admin-user-card input[type="number"],
body.st-origin .profilenext-form input,
body.st-origin .profilenext-form textarea,
body.st-origin .profilenext-form select,
body.st-origin .profilenext-filter-form input,
body.st-origin .profilenext-filter-form select{
    background:linear-gradient(180deg, rgba(12,10,8,.96), rgba(7,7,7,.98)) !important;
    border:1px solid var(--dsc-line) !important;
    border-radius:var(--dsc-radius-sm) !important;
    color:var(--dsc-text) !important;
    box-shadow:inset 0 1px 0 rgba(255,226,159,.04) !important;
}

body.st-origin input:focus,
body.st-origin textarea:focus,
body.st-origin select:focus,
body.st-origin .profilenext-form input:focus,
body.st-origin .profilenext-form textarea:focus,
body.st-origin .profilenext-form select:focus,
body.st-origin .profilenext-filter-form input:focus,
body.st-origin .profilenext-filter-form select:focus{
    outline:0 !important;
    border-color:var(--dsc-line-strong) !important;
    box-shadow:var(--dsc-focus), inset 0 1px 0 rgba(255,226,159,.08) !important;
}

body.st-origin label,
body.st-origin .profilenext-form label,
body.st-origin .profilenext-filter-form label{
    color:var(--dsc-text-soft) !important;
}

/* Tabellen */
body.st-origin table{
    width:100%;
    border-collapse:separate !important;
    border-spacing:0 !important;
    overflow:hidden;
    border:1px solid var(--dsc-line) !important;
    border-radius:var(--dsc-radius) !important;
    background:rgba(10,9,8,.88) !important;
}

body.st-origin th,
body.st-origin td{
    border-bottom:1px solid rgba(214,152,69,.12) !important;
    padding:11px 12px !important;
    color:var(--dsc-text-soft) !important;
}

body.st-origin th{
    color:var(--dsc-accent-2) !important;
    background:rgba(217,154,67,.10) !important;
}

/* Stats, Badges und Chips */
body.st-origin .origin-badge,
body.st-origin .dashboard-version-pill,
body.st-origin .dashboard-drag-hint,
body.st-origin .dashboard-stat-card strong,
body.st-origin .dashboard-character-mini span,
body.st-origin .dashboard-character-mini strong,
body.st-origin .admin-stat,
body.st-origin .admin-user-status,
body.st-origin .admin-user-id-badge,
body.st-origin .admin-role-chip,
body.st-origin .admin-permission-chip,
body.st-origin .profilenext-statusline span,
body.st-origin .profilenext-directory-stats span,
body.st-origin .profilenext-stats span,
body.st-origin .profilenext-level-number,
body.st-origin .userpanel-next-badges span,
body.st-origin .userpanel-next-stats strong,
body.st-origin .character-card-row strong,
body.st-origin .dsc-token-row span{
    border:1px solid var(--dsc-line) !important;
    border-radius:999px !important;
    background:rgba(217,154,67,.10) !important;
    color:var(--dsc-accent-2) !important;
}

body.st-origin .dashboard-stat-card strong,
body.st-origin .admin-stat,
body.st-origin .profilenext-level-number,
body.st-origin .userpanel-next-stats strong,
body.st-origin .dashboard-character-mini strong{
    border:0 !important;
    background:transparent !important;
    border-radius:0 !important;
    font-weight:900 !important;
}

/* XP / Progress Bars */
body.st-origin .userpanel-next-xpbar,
body.st-origin .profilenext-xpbar{
    background:#060504 !important;
    border:1px solid var(--dsc-line-soft) !important;
    border-radius:999px !important;
}

body.st-origin .userpanel-next-xpbar-fill,
body.st-origin .profilenext-xpbar-fill{
    background:linear-gradient(90deg, var(--dsc-accent-3), var(--dsc-accent-2)) !important;
    box-shadow:0 0 18px rgba(255,154,54,.36) !important;
}

/* Dashboard */
body.st-origin .dashboard-widget-board{
    gap:18px !important;
}

body.st-origin .dashboard-widget-head{
    padding-bottom:11px !important;
    border-bottom:1px solid rgba(214,152,69,.14) !important;
}

body.st-origin .dashboard-list-row,
body.st-origin .dashboard-link-row,
body.st-origin .dashboard-mini-stats span,
body.st-origin .dashboard-widget-toggle-card{
    border:1px solid var(--dsc-line-soft) !important;
    border-radius:var(--dsc-radius-sm) !important;
    background:rgba(8,7,6,.62) !important;
}

/* UserPanel */
body.st-origin .userpanel-next-identity{
    align-items:center !important;
}

body.st-origin .userpanel-next-avatar,
body.st-origin .userpanel-next-widget img,
body.st-origin .character-card-widget img,
body.st-origin .profilenext-v6-avatar,
body.st-origin .profilenext-v6-avatar-placeholder,
body.st-origin .profilenext-member-avatar,
body.st-origin .profilenext-member-avatar-placeholder,
body.st-origin .profilenext-widget-avatar,
body.st-origin .profilenext-widget-avatar-placeholder{
    border:2px solid var(--dsc-line-strong) !important;
    border-radius:18px !important;
    background:linear-gradient(135deg, #21150c, #070605) !important;
    box-shadow:0 14px 32px rgba(0,0,0,.36), 0 0 20px rgba(217,154,67,.12) !important;
}

body.st-origin .userpanel-next-statusline{
    border:1px solid var(--dsc-line-soft) !important;
    border-radius:var(--dsc-radius-sm) !important;
    background:rgba(217,154,67,.08) !important;
}

/* ProfileNext */
body.st-origin .profilenext-nav{
    border:1px solid var(--dsc-line) !important;
    border-radius:var(--dsc-radius) !important;
    background:linear-gradient(135deg, rgba(34,22,13,.96), rgba(8,7,6,.98)) !important;
}

body.st-origin .profilenext-equipment-grid span,
body.st-origin .profilenext-widget-equipment span{
    border:1px solid var(--dsc-line) !important;
    border-radius:var(--dsc-radius-sm) !important;
    background:radial-gradient(circle at 50% 20%, rgba(255,154,54,.16), transparent 58%), rgba(8,7,6,.9) !important;
}

body.st-origin .profilenext-online{
    color:var(--dsc-success) !important;
}

body.st-origin .profilenext-offline{
    color:var(--dsc-muted) !important;
}

/* AdminCore */
body.st-origin .admin-grid{
    gap:18px !important;
}

body.st-origin .admin-user-section{
    border-top:1px solid rgba(214,152,69,.14) !important;
}

body.st-origin .admin-user-permission-details,
body.st-origin .admin-permission-role-item,
body.st-origin .admin-users-runtime-note{
    border:1px solid var(--dsc-line-soft) !important;
    border-radius:var(--dsc-radius-sm) !important;
    background:rgba(8,7,6,.58) !important;
}

/* Flash / Hinweise */
body.st-origin .success,
body.st-origin .alert-success,
body.st-origin .notice-success,
body.st-origin .dashboard-flash-success,
body.st-origin .profilenext-success{
    border-color:rgba(115,206,130,.48) !important;
    background:linear-gradient(180deg, rgba(26,87,38,.28), rgba(8,7,6,.92)) !important;
    color:#dfffe6 !important;
}

body.st-origin .error,
body.st-origin .alert-error,
body.st-origin .notice-error,
body.st-origin .dashboard-flash-error,
body.st-origin .profilenext-error,
body.st-origin .profilenext-warning{
    border-color:rgba(212,85,56,.48) !important;
    background:linear-gradient(180deg, rgba(105,30,20,.28), rgba(8,7,6,.92)) !important;
    color:#ffe0d7 !important;
}

body.st-origin .warning,
body.st-origin .alert-warning,
body.st-origin .notice-warning{
    border-color:rgba(255,189,102,.48) !important;
    background:linear-gradient(180deg, rgba(119,69,18,.26), rgba(8,7,6,.92)) !important;
    color:#ffedcd !important;
}

/* DesignSystemCore Admin Page */
body.st-origin .dsc-admin-hero{
    padding:22px !important;
    margin-bottom:18px !important;
}

body.st-origin .dsc-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid var(--dsc-line) !important;
    border-radius:999px;
    padding:6px 10px;
    color:var(--dsc-accent-2) !important;
    background:rgba(217,154,67,.10) !important;
    font-weight:800;
    letter-spacing:.05em;
    text-transform:uppercase;
    font-size:.78rem;
}

body.st-origin .dsc-admin-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;
    margin:18px 0;
}

body.st-origin .dsc-admin-card{
    min-height:145px;
}

body.st-origin .dsc-token-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

body.st-origin .dsc-token-row span{
    display:inline-flex;
    padding:7px 11px;
    font-weight:800;
}

/* Responsive Feinschliff */
@media(max-width:900px){
    body.st-origin .admin-grid,
    body.st-origin .dashboard-hero{
        grid-template-columns:1fr !important;
    }
}

@media(max-width:720px){
    body.st-origin .panel,
    body.st-origin .origin-panel,
    body.st-origin .dashboard-widget,
    body.st-origin .profilenext-card,
    body.st-origin .userpanel-next-widget,
    body.st-origin .admin-card{
        border-radius:14px !important;
    }
}
