@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

:root{
    --bg: #050505;
    --bg-soft: #0d0d0f;
    --panel: rgba(10, 10, 14, 0.90);
    --panel-border: rgba(255, 60, 92, 0.18);
    --text: #f5f7fa;
    --muted: #a9a9b3;
    --red: #ff334f;
    --red-strong: #ff1738;
    --red-soft: rgba(255, 51, 79, 0.10);
    --line: rgba(255,255,255,0.08);
    --glow: 0 0 20px rgba(255, 51, 79, 0.30), 0 0 40px rgba(255, 51, 79, 0.12);
    --glow-strong: 0 0 24px rgba(255, 51, 79, 0.55), 0 0 65px rgba(255, 51, 79, 0.22);
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.22);
    --shadow-panel: 0 18px 50px rgba(0,0,0,0.28);
}

*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    color: var(--text);
    font-family: 'Rajdhani', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,40,70,0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(255,40,70,0.06), transparent 20%),
        linear-gradient(180deg, #020202 0%, #050505 45%, #080808 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a{
    color: inherit;
    text-decoration: none;
}

.bg-grid{
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.55), transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow{
    position: fixed;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1{
    width: 340px;
    height: 340px;
    background: var(--red);
    top: 60px;
    left: -80px;
}

.bg-glow-2{
    width: 300px;
    height: 300px;
    background: #ffffff;
    right: -80px;
    top: 160px;
    opacity: 0.06;
}

.hero,
.content,
.footer,
.auth-wrap,
.admin-shell,
.admin-layout{
    position: relative;
    z-index: 1;
}

.logo-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-wrap{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(255, 51, 79, 0.20);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    box-shadow: var(--glow);
    animation: pulseGlow 3.2s ease-in-out infinite;
}

.logo{
    width: 180px;
    max-width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow:
        0 0 18px rgba(255, 35, 65, 0.25),
        0 0 44px rgba(255, 35, 65, 0.12);
}

.small-logo{
    width: 90px;
}

.topbar-logo{
    padding: 8px;
}

h1{
    margin: 16px 0 10px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.95;
    color: var(--red);
    text-shadow:
        0 0 18px rgba(255, 51, 79, 0.24),
        0 0 34px rgba(255, 51, 79, 0.12);
}

.hero{
    padding: 26px 20px 18px;
}

.hero-inner{
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.hero-text{
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.35;
    color: #ededf2;
}

.hero-info{
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 260px));
    justify-content: center;
    gap: 14px;
}

.info-card{
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
}

.info-label{
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.info-value{
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.hero-home{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.home-button-grid{
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 420px));
    gap: 18px;
    justify-content: center;
}

.home-button-grid-4{
    grid-template-columns: repeat(4, minmax(220px, 320px));
}

@media (max-width: 1200px){
    .home-button-grid-4{
        grid-template-columns: repeat(2, minmax(260px, 360px));
    }
}

@media (max-width: 760px){
    .home-button-grid-4{
        grid-template-columns: 1fr;
    }
}

.home-panel-button{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20,20,24,0.96), rgba(10,10,12,0.96));
    border: 1px solid rgba(255, 51, 79, 0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    color: white;
    text-decoration: none;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-panel-button:hover{
    transform: translateY(-2px);
    border-color: rgba(255, 51, 79, 0.34);
    box-shadow:
        0 0 24px rgba(255, 51, 79, 0.12),
        0 8px 24px rgba(0,0,0,0.22);
}

.home-panel-title{
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.home-panel-subtitle{
    font-size: 20px;
    line-height: 1.3;
    color: #b8bcc6;
}

.home-login{
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 20;
}

.home-login .button{
    padding: 10px 20px;
    font-size: 16px;
}

.page-topbar{
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 5;
}

.page-topbar-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-button,
.button{
    display: inline-block;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff445f 0%, #d61534 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--glow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.hero-button:hover,
.button:hover{
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
    filter: brightness(1.04);
}

.button-secondary{
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

.button-secondary:hover{
    border-color: rgba(255, 51, 79, 0.28);
}

.content,
.auth-wrap{
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 20px 50px;
}

.panel,
.auth-panel{
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    background: var(--panel);
    box-shadow:
        var(--shadow-panel),
        0 0 0 1px rgba(255,255,255,0.015) inset;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.panel-head,
.auth-panel-head{
    padding: 26px 26px 10px;
}

.panel-head h2,
.auth-panel-head h2{
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    color: white;
}

.panel-head p,
.auth-panel-head p{
    margin: 8px 0 0;
    font-size: 21px;
    color: var(--muted);
}

.controls,
.form-grid{
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
    padding: 18px 26px 24px;
}

.form-grid.admin{
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
}

.input-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label{
    font-size: 15px;
    font-weight: 700;
    color: #d7d7df;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input,
select,
textarea{
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,10,12,0.94);
    color: white;
    font-family: inherit;
    font-size: 21px;
    padding: 0 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input,
select{
    min-height: 56px;
}

textarea{
    min-height: 180px;
    padding: 14px 16px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder{
    color: #7f7f89;
}

input:focus,
select:focus,
textarea:focus{
    border-color: rgba(255, 51, 79, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 51, 79, 0.12), var(--glow);
    transform: translateY(-1px);
}

.table-wrap{
    width: 100%;
    overflow-x: auto;
    padding: 0 0 12px;
}

table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

thead th{
    background: linear-gradient(180deg, #ff435d 0%, #e82241 100%);
    color: white;
    padding: 18px 16px;
    text-align: left;
    font-size: 22px;
    white-space: nowrap;
}

tbody td{
    padding: 18px 16px;
    font-size: 22px;
    border-bottom: 1px solid var(--line);
    color: #f6f6f8;
    vertical-align: middle;
}

tbody tr{
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

tbody tr:hover{
    background: linear-gradient(90deg, rgba(255, 51, 79, 0.13), rgba(255,255,255,0.02));
    box-shadow: inset 4px 0 0 rgba(255, 51, 79, 0.9), 0 0 24px rgba(255, 51, 79, 0.12);
}

#adminTable input,
#adminTable select{
    min-height: 44px;
    font-size: 18px;
}

.empty-state,
.message{
    margin: 0 26px 26px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    text-align: center;
    font-size: 22px;
    color: var(--muted);
}

.message.success{
    border-color: rgba(0, 255, 128, 0.25);
    color: #d8ffe9;
}

.message.error{
    border-color: rgba(255, 51, 79, 0.35);
    color: #ffd2d9;
}

.hidden{
    display: none;
}

.row-actions{
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.small-btn{
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    color: white;
    background: rgba(255,255,255,0.06);
    transition: background 0.18s ease, transform 0.18s ease;
}

.small-btn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.10);
}

.small-btn.delete{
    background: rgba(255, 51, 79, 0.18);
}

.small-btn.delete:hover{
    background: rgba(255, 51, 79, 0.28);
}

.small-btn[disabled]{
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
}

.footer{
    padding: 12px 20px 26px;
    text-align: center;
    color: #83838f;
    font-size: 18px;
}

.footer-link{
    color: #ff8b9c;
}

.info-strip{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 26px 18px;
    color: #d7d7df;
}

.grouped-list{
    display: grid;
    gap: 18px;
    padding: 0 26px 26px;
}

.rule-group-card{
    border: 1px solid rgba(255, 51, 79, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20,20,24,0.96), rgba(10,10,12,0.96));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rule-group-card:hover{
    border-color: rgba(255, 51, 79, 0.30);
    box-shadow: 0 0 24px rgba(255, 51, 79, 0.10), var(--shadow-soft);
    transform: translateY(-1px);
}

.rule-group-head{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.sanction-icon{
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 51, 79, 0.10);
    border: 1px solid rgba(255, 51, 79, 0.18);
    box-shadow: 0 0 18px rgba(255, 51, 79, 0.10);
    flex-shrink: 0;
}

.rule-group-title{
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rule-group-subtitle{
    font-size: 17px;
    color: #a9a9b3;
    margin-top: 4px;
}

.rule-group-body{
    display: grid;
}

.rule-row{
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.rule-row:first-child{
    border-top: none;
}

.rule-row-stage,
.rule-row-min,
.rule-row-max{
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stage-badge{
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 51, 79, 0.12);
    border: 1px solid rgba(255, 51, 79, 0.18);
    color: #ffb5c0;
    font-size: 17px;
    font-weight: 700;
    width: fit-content;
}

.row-label{
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #a9a9b3;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.row-value{
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.rules-sections{
    display: grid;
    gap: 18px;
    padding: 0 26px 26px;
}

.rule-section-card{
    border: 1px solid rgba(255, 51, 79, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20,20,24,0.96), rgba(10,10,12,0.96));
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    overflow: hidden;
}

.rule-section-head{
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.rule-section-head h3{
    margin: 0;
    font-size: 30px;
    color: #fff;
}

.rule-items{
    margin: 0;
    padding: 18px 38px 22px;
    display: grid;
    gap: 12px;
}

.rule-items li{
    color: #d7d7df;
    font-size: 22px;
    line-height: 1.35;
}

.rules-editor-list{
    display: grid;
    gap: 18px;
    padding: 0 26px 26px;
}

.rule-editor-card{
    border: 1px solid rgba(255, 51, 79, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20,20,24,0.96), rgba(10,10,12,0.96));
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    padding: 20px;
    display: grid;
    gap: 14px;
}

.rule-editor-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rule-editor-head h3{
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.rules-textarea{
    min-height: 180px;
    font-size: 19px;
}

.category-order-list{
    display: grid;
    gap: 12px;
    padding: 0 26px 26px;
}

.category-order-card{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.category-order-name{
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.audit-list{
    padding: 0 26px 26px;
    display: grid;
    gap: 12px;
}

.audit-entry{
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    padding: 16px;
}

.audit-entry-top{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.audit-user{
    font-size: 18px;
    font-weight: 700;
    color: #ff92a2;
}

.audit-time{
    font-size: 16px;
    color: #a9a9b3;
}

.audit-action{
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.audit-details{
    font-size: 18px;
    color: #d7d7df;
    line-height: 1.35;
}

.login-back{
    position: fixed;
    top: 28px;
    left: 34px;
    z-index: 30;
}

.login-back-button{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.login-back-button:hover{
    transform: translateY(-1px);
    background: rgba(255, 51, 79, 0.10);
    border-color: rgba(255, 51, 79, 0.30);
    box-shadow: 0 0 18px rgba(255, 51, 79, 0.10);
}

/* Premium Login */

.premium-auth-wrap{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 40px;
}

.premium-auth-panel{
    width: 100%;
    max-width: 620px;
    border-radius: 30px;
    border: 1px solid rgba(255, 51, 79, 0.18);
    background: linear-gradient(180deg, rgba(8,8,12,0.96), rgba(4,4,8,0.96));
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 18px 60px rgba(0,0,0,0.34),
        0 0 30px rgba(255, 51, 79, 0.08);
    overflow: hidden;
    position: relative;
}

.premium-auth-panel::before{
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(255, 51, 79, 0.10), transparent 35%);
    pointer-events: none;
}

.premium-auth-inner{
    position: relative;
    z-index: 1;
    padding: 28px 28px 30px;
}

.premium-auth-logo-wrap{
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.premium-auth-logo-box{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 51, 79, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    box-shadow:
        0 0 20px rgba(255, 51, 79, 0.20),
        0 0 60px rgba(255, 51, 79, 0.08);
}

.premium-auth-logo{
    width: 110px;
    display: block;
    border-radius: 16px;
}

.premium-auth-head{
    padding: 0;
    text-align: center;
}

.premium-auth-badge{
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 51, 79, 0.20);
    background: rgba(255, 51, 79, 0.08);
    color: #ffb8c3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.premium-auth-head h2{
    margin: 0;
    font-size: clamp(42px, 6vw, 58px);
    color: #fff;
    line-height: 1;
}

.premium-auth-head p{
    max-width: 440px;
    margin: 14px auto 0;
    font-size: 21px;
    line-height: 1.35;
    color: #a9a9b3;
}

.premium-auth-form{
    margin-top: 26px;
    padding: 0;
    display: grid;
    gap: 18px;
}

.premium-auth-form .input-group label{
    font-size: 15px;
    font-weight: 700;
    color: #e2e2ea;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-auth-form input{
    min-height: 62px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.42);
    color: #fff;
    font-size: 21px;
    padding: 0 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.premium-auth-form input:focus{
    border-color: rgba(255, 51, 79, 0.55);
    box-shadow:
        0 0 0 4px rgba(255, 51, 79, 0.12),
        0 0 20px rgba(255, 51, 79, 0.10);
}

.premium-login-button{
    margin-top: 8px;
    min-height: 62px;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, #ff576f 0%, #d81f3c 100%);
    box-shadow:
        0 10px 24px rgba(255, 51, 79, 0.20),
        0 0 30px rgba(255, 51, 79, 0.14);
}

.premium-login-button:hover{
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px rgba(255, 51, 79, 0.26),
        0 0 36px rgba(255, 51, 79, 0.20);
}

/* Premium Admin with Sidebar */

.admin-layout{
    display: flex;
    min-height: 100vh;
}

.admin-sidebar{
    width: 260px;
    background: rgba(8,8,12,0.98);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 2;
}

.admin-sidebar-logo{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.admin-sidebar-logo img{
    width: 42px;
    border-radius: 10px;
}

.admin-sidebar-nav{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar-link{
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #ddd;
    display: block;
    font-size: 16px;
    font-weight: 600;
    transition: all .15s ease;
    border: 1px solid transparent;
}

.admin-sidebar-link:hover{
    background: rgba(255,255,255,0.05);
    border-color: rgba(255, 51, 79, 0.16);
    color: white;
}

.admin-sidebar-bottom{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.logout-btn{
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.admin-main{
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.premium-admin-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px 26px;
    border-radius: 30px;
    border: 1px solid rgba(255, 51, 79, 0.18);
    background: linear-gradient(180deg, rgba(8,8,12,0.96), rgba(6,6,10,0.96));
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 18px 60px rgba(0,0,0,0.30),
        0 0 26px rgba(255, 51, 79, 0.07);
}

.premium-admin-header-left{
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.premium-admin-logo-box{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 51, 79, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    box-shadow:
        0 0 20px rgba(255, 51, 79, 0.20),
        0 0 60px rgba(255, 51, 79, 0.08);
}

.premium-admin-logo{
    width: 92px;
    display: block;
    border-radius: 16px;
}

.premium-admin-badge{
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 51, 79, 0.20);
    background: rgba(255, 51, 79, 0.08);
    color: #ffb8c3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.premium-admin-title{
    margin: 0;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 1;
    color: #fff;
}

.premium-admin-subtitle{
    margin: 12px 0 0;
    font-size: 21px;
    line-height: 1.35;
    color: #a9a9b3;
    max-width: 760px;
}

.premium-admin-panel{
    border-radius: 30px;
    border: 1px solid rgba(255, 51, 79, 0.18);
    background: linear-gradient(180deg, rgba(8,8,12,0.96), rgba(4,4,8,0.96));
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 18px 60px rgba(0,0,0,0.30),
        0 0 24px rgba(255, 51, 79, 0.06);
}

.premium-section-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 10px;
}

.premium-section-head h2{
    margin: 0;
    font-size: clamp(32px, 4vw, 46px);
    color: #fff;
}

.premium-section-head p{
    margin: 10px 0 0;
    font-size: 21px;
    color: #a9a9b3;
}

.premium-section-label{
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 51, 79, 0.08);
    border: 1px solid rgba(255, 51, 79, 0.16);
    color: #ffb8c3;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.premium-section-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.premium-subsection-head{
    padding: 0 26px 14px;
}

.premium-subsection-head h3{
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.premium-subsection-head p{
    margin: 8px 0 0;
    font-size: 18px;
    color: #a9a9b3;
}

.premium-dashboard-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.premium-dashboard-card{
    padding: 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 51, 79, 0.16);
    background: linear-gradient(180deg, rgba(10,10,14,0.96), rgba(6,6,10,0.96));
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 10px 30px rgba(0,0,0,0.22),
        0 0 18px rgba(255, 51, 79, 0.04);
}

.premium-dashboard-label{
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a9a9b3;
    margin-bottom: 10px;
}

.premium-dashboard-value{
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.premium-dashboard-value-small{
    font-size: 18px;
    line-height: 1.3;
    color: #ffd7dd;
}

.dashboard-rank-wrap{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-rank-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
}

.collapsible-panel{
    overflow: hidden;
}

.collapsible-toggle{
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background .18s ease;
}

.collapsible-toggle:hover{
    background: rgba(255,255,255,0.02);
}

.collapsible-toggle > span:first-child{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collapsible-title{
    display: block;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.collapsible-subtitle{
    display: block;
    font-size: 19px;
    line-height: 1.35;
    color: #a9a9b3;
}

.collapsible-icon{
    font-size: 28px;
    color: #ffb8c3;
    transition: transform .18s ease;
    flex-shrink: 0;
}

.collapsible-panel.is-open .collapsible-icon{
    transform: rotate(0deg);
}

.collapsible-panel:not(.is-open) .collapsible-icon{
    transform: rotate(-90deg);
}

.collapsible-content{
    display: none;
}

.collapsible-panel.is-open .collapsible-content{
    display: block;
}

.history-day-card{
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
}

.history-day-toggle{
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    transition: background .18s ease;
}

.history-day-toggle:hover{
    background: rgba(255,255,255,0.02);
}

.history-day-left{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-day-title{
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.history-day-count{
    font-size: 15px;
    color: #a9a9b3;
}

.history-day-icon{
    font-size: 24px;
    color: #ffb8c3;
    transition: transform .18s ease;
    flex-shrink: 0;
}

.history-day-content{
    display: none;
    padding: 0 16px 16px;
}

.history-day-card.is-open .history-day-content{
    display: block;
}

.history-day-card.is-open .history-day-icon{
    transform: rotate(0deg);
}

.history-day-card:not(.is-open) .history-day-icon{
    transform: rotate(-90deg);
}

/* User Cards */

.users-card-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}

.user-card{
    border: 1px solid rgba(255, 51, 79, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20,20,24,0.96), rgba(10,10,12,0.96));
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    padding: 18px;
    display: grid;
    gap: 14px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    height: auto;
    align-self: start;
}

.user-card:hover{
    transform: translateY(-1px);
    border-color: rgba(255, 51, 79, 0.30);
    box-shadow: 0 0 24px rgba(255, 51, 79, 0.10), 0 8px 24px rgba(0,0,0,0.22);
}

.user-card-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.user-card-name{
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.user-card-role-label{
    margin-top: 6px;
    font-size: 12px;
    color: #8f93a1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.user-card-rank-top{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-rank-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    white-space: nowrap;
}

.user-rank-badge-empty{
    background: rgba(255,255,255,0.08);
    color: #ddd;
}

.user-card-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
}

.user-card-password-group{
    grid-column: span 2;
}

.user-card .input-group{
    gap: 6px;
}

.user-card .input-group label{
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #b8bcc6;
}

.user-card input,
.user-card select{
    min-height: 46px;
    font-size: 18px;
}

.user-card input[type="password"]::placeholder{
    color: #6f7482;
}

.user-card-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.user-card-actions .small-btn{
    min-width: 110px;
}

@keyframes pulseGlow{
    0%,100%{
        box-shadow: 0 0 18px rgba(255, 51, 79, 0.24), 0 0 34px rgba(255, 51, 79, 0.10);
    }
    50%{
        box-shadow: 0 0 28px rgba(255, 51, 79, 0.48), 0 0 62px rgba(255, 51, 79, 0.18);
    }
}

@media (min-width: 1600px){
    .users-card-list{
        grid-template-columns: repeat(3, minmax(320px, 1fr));
    }
}

@media (max-width: 1100px){
    .premium-dashboard-grid{
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .users-card-list{
        grid-template-columns: 1fr;
    }

    .user-card-grid{
        grid-template-columns: 1fr;
    }

    .user-card-password-group{
        grid-column: span 1;
    }

    .user-card-actions{
        justify-content: stretch;
    }

    .user-card-actions .small-btn{
        width: 100%;
    }
}

@media (max-width: 980px){
    .controls,
    .form-grid,
    .form-grid.admin{
        grid-template-columns: 1fr;
    }

    .hero-info{
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .rule-row{
        grid-template-columns: 1fr;
    }

    .premium-admin-header{
        flex-direction: column;
        align-items: stretch;
    }

    .premium-section-head{
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px){
    .home-login{
        top: 20px;
        right: 20px;
    }

    .page-topbar{
        flex-direction: column;
        align-items: stretch;
    }

    .page-topbar-actions{
        justify-content: stretch;
    }

    .page-topbar-actions .button{
        width: 100%;
    }

    .home-button-grid{
        grid-template-columns: 1fr;
    }

    .home-panel-title{
        font-size: 28px;
    }

    .home-panel-subtitle{
        font-size: 18px;
    }

    .premium-auth-wrap{
        padding: 88px 14px 24px;
    }

    .premium-auth-inner{
        padding: 22px 18px 22px;
    }

    .premium-auth-logo{
        width: 92px;
    }

    .premium-auth-head h2{
        font-size: 38px;
    }

    .premium-auth-head p{
        font-size: 18px;
    }

    .premium-auth-form input{
        min-height: 58px;
        font-size: 18px;
    }

    .premium-login-button{
        min-height: 58px;
        font-size: 20px;
    }

    .login-back{
        top: 18px;
        left: 16px;
    }

    .login-back-button{
        padding: 10px 14px;
        font-size: 14px;
    }

    .admin-layout{
        flex-direction: column;
    }

    .admin-sidebar{
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .admin-main{
        padding: 14px 12px 30px;
    }

    .premium-admin-header{
        padding: 18px 16px;
        border-radius: 20px;
    }

    .premium-admin-header-left{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .premium-admin-logo{
        width: 82px;
    }

    .premium-admin-title{
        font-size: 38px;
    }

    .premium-admin-subtitle{
        font-size: 18px;
    }

    .premium-dashboard-grid{
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .premium-dashboard-card{
        padding: 18px 16px;
        border-radius: 18px;
    }

    .premium-dashboard-value{
        font-size: 32px;
    }

    .premium-dashboard-value-small{
        font-size: 16px;
    }

    .collapsible-toggle{
        padding: 18px 16px;
    }

    .collapsible-title{
        font-size: 26px;
    }

    .collapsible-subtitle{
        font-size: 16px;
    }

    .collapsible-icon{
        font-size: 24px;
    }

    .premium-subsection-head{
        padding: 0 16px 12px;
    }
}

@media (max-width: 640px){
    .hero{
        padding: 24px 14px 12px;
    }

    .content,
    .auth-wrap{
        padding: 10px 12px 32px;
    }

    .logo{
        width: 150px;
    }

    h1{
        font-size: clamp(34px, 10vw, 56px);
    }

    .hero-text{
        font-size: 19px;
    }

    .hero-button,
    .button{
        width: 100%;
    }

    .panel,
    .auth-panel{
        border-radius: 18px;
    }

    .panel-head,
    .auth-panel-head{
        padding: 20px 16px 8px;
    }

    .controls,
    .form-grid,
    .auth-form{
        padding: 14px 16px 18px;
        gap: 12px;
    }

    table{
        min-width: 640px;
    }

    thead th,
    tbody td{
        padding: 15px 12px;
        font-size: 18px;
    }

    .grouped-list,
    .audit-list,
    .rules-sections,
    .rules-editor-list,
    .category-order-list{
        padding: 0 16px 16px;
    }

    .rule-group-head{
        padding: 16px;
    }

    .rule-group-title{
        font-size: 24px;
    }

    .rule-group-subtitle{
        font-size: 15px;
    }

    .rule-row{
        padding: 14px 16px;
    }

    .row-value{
        font-size: 20px;
    }

    .rule-section-head{
        padding: 16px;
    }

    .rule-section-head h3{
        font-size: 24px;
    }

    .rule-items{
        padding: 16px 20px 20px 34px;
    }

    .rule-items li{
        font-size: 18px;
    }

    .rule-editor-card{
        padding: 16px;
    }

    .rule-editor-head h3{
        font-size: 22px;
    }

    .rules-textarea{
        font-size: 17px;
    }

    .category-order-card{
        padding: 14px 16px;
    }

    .category-order-name{
        font-size: 20px;
    }

    .audit-action{
        font-size: 20px;
    }

    .audit-details{
        font-size: 17px;
    }

    .history-day-toggle{
        padding: 16px;
    }

    .history-day-title{
        font-size: 20px;
    }

    .history-day-count{
        font-size: 14px;
    }

    .history-day-content{
        padding: 0 12px 12px;
    }

    .footer{
        font-size: 16px;
    }
}

.force-open{
    display:block !important;
}

.admin-sidebar-link.is-active{
    background: rgba(255, 51, 79, 0.12);
    border: 1px solid rgba(255, 51, 79, 0.26);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 51, 79, 0.08);
}

.admin-sidebar-link.hidden,
.admin-view-section.hidden{
    display: none !important;
}

.hero-inner-home{
    max-width: 1280px;
}

.home-section-headline{
    margin-top: 34px;
    margin-bottom: 16px;
    text-align: center;
}

.home-section-headline span{
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 51, 79, 0.22);
    background: rgba(255, 51, 79, 0.08);
    color: #ffb8c3;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-button-grid-public{
    grid-template-columns: repeat(3, minmax(240px, 340px));
}

.home-button-grid-internal{
    grid-template-columns: repeat(2, minmax(260px, 360px));
}

.home-login-button-large{
    min-width: 132px;
    min-height: 58px;
    font-size: 20px !important;
    font-weight: 800;
    border-radius: 16px;
    padding: 14px 24px !important;
}

.is-active-public-nav{
    background: rgba(255, 51, 79, 0.12);
    border-color: rgba(255, 51, 79, 0.30);
    box-shadow: 0 0 18px rgba(255, 51, 79, 0.10);
}

@media (max-width: 980px){
    .home-button-grid-public,
    .home-button-grid-internal{
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

.user-filters{
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
    padding: 0 0 20px;
}

@media (max-width: 980px){
    .user-filters{
        grid-template-columns: 1fr;
    }
}

.premium-admin-subtitle-wrap{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.header-rank-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    white-space: nowrap;
}

.user-card-role-label{
    margin-top: 6px;
    font-size: 12px;
    color: #8f93a1;
    text-transform: none;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.premium-admin-subtitle-wrap{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.premium-admin-subtitle-static{
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
    color: #fff;
    font-weight: 700;
}

.header-rank-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Dashboard Premium Layout */

.dashboard-premium-layout{
    display: grid;
    grid-template-columns: minmax(420px, 1.35fr) minmax(280px, 0.9fr);
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-profile-card{
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dashboard-profile-card::before{
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(255, 51, 79, 0.00) 0px,
            rgba(255, 51, 79, 0.00) 18px,
            rgba(255, 51, 79, 0.045) 19px,
            rgba(255, 51, 79, 0.07) 20px,
            rgba(255, 51, 79, 0.00) 22px
        );
    opacity: 0.26;
    animation: dashboardScanlines 10s linear infinite;
}

.dashboard-profile-card::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 51, 79, 0.10), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(255, 51, 79, 0.08), transparent 24%),
        linear-gradient(90deg, transparent 0%, rgba(255, 51, 79, 0.08) 50%, transparent 100%);
    opacity: 0.22;
    background-size: 100% 100%, 100% 100%, 220% 100%;
    animation: dashboardScanGlow 8s ease-in-out infinite;
}

.dashboard-profile-card > *{
    position: relative;
    z-index: 1;
}

@keyframes dashboardScanlines{
    0%{
        transform: translateY(-16px);
    }
    100%{
        transform: translateY(16px);
    }
}

@keyframes dashboardScanGlow{
    0%{
        background-position: 0 0, 0 0, 0% 50%;
        opacity: 0.14;
    }
    50%{
        background-position: 0 0, 0 0, 100% 50%;
        opacity: 0.24;
    }
    100%{
        background-position: 0 0, 0 0, 0% 50%;
        opacity: 0.14;
    }
}

.dashboard-profile-glow{
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -70px;
    border-radius: 999px;
    background: rgba(255, 51, 79, 0.10);
    filter: blur(45px);
    pointer-events: none;
}

.dashboard-profile-label{
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 51, 79, 0.18);
    background: rgba(255, 51, 79, 0.08);
    color: #ffb8c3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dashboard-profile-name{
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 0.95;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.04);
}

.dashboard-profile-username{
    margin-top: 12px;
    font-size: 20px;
    color: #9297a5;
    letter-spacing: 0.03em;
}

.dashboard-rank-showcase{
    position: relative;
    z-index: 1;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-rank-title{
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b3b7c2;
}

.dashboard-rank-badge-large{
    min-height: 56px;
    padding: 14px 22px;
    font-size: 22px;
    font-weight: 800;
    width: fit-content;
    border-radius: 999px;
}

.dashboard-profile-meta{
    position: relative;
    z-index: 1;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
}

.dashboard-profile-meta-item{
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
}

.dashboard-profile-meta-label{
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ea3af;
    margin-bottom: 8px;
}

.dashboard-profile-meta-value{
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.dashboard-side-grid{
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.dashboard-info-card{
    min-height: 151px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-info-card .premium-dashboard-value{
    font-size: clamp(30px, 3.4vw, 52px);
    line-height: 1;
}

@media (max-width: 1180px){
    .dashboard-premium-layout{
        grid-template-columns: 1fr;
    }

    .dashboard-side-grid{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 760px){
    .dashboard-profile-card{
        min-height: auto;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .dashboard-profile-name{
        font-size: 38px;
    }

    .dashboard-profile-username{
        font-size: 17px;
    }

    .dashboard-profile-meta{
        grid-template-columns: 1fr;
    }

    .dashboard-side-grid{
        grid-template-columns: 1fr;
    }

    .dashboard-rank-badge-large{
        font-size: 18px;
        min-height: 48px;
        padding: 12px 18px;
    }
}

/* Dezente Linien-/Glow-Animation hinter der Profilkarte */

.dashboard-profile-card{
    isolation: isolate;
}

.dashboard-profile-card::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 28%,
            rgba(255, 51, 79, 0.05) 38%,
            rgba(255, 51, 79, 0.12) 50%,
            rgba(255, 51, 79, 0.05) 62%,
            transparent 72%,
            transparent 100%
        );
    background-size: 220% 220%;
    animation: dashboardGlowSweep 9s ease-in-out infinite;
}

.dashboard-profile-card::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(135deg, rgba(255,255,255,0.7), transparent 78%);
    animation: dashboardGridFloat 14s linear infinite;
}

.dashboard-profile-card > *{
    position: relative;
    z-index: 1;
}

@keyframes dashboardGlowSweep{
    0%{
        background-position: 0% 50%;
        opacity: 0.10;
    }
    25%{
        opacity: 0.20;
    }
    50%{
        background-position: 100% 50%;
        opacity: 0.26;
    }
    75%{
        opacity: 0.18;
    }
    100%{
        background-position: 0% 50%;
        opacity: 0.10;
    }
}

@keyframes dashboardGridFloat{
    0%{
        transform: translate3d(0, 0, 0);
    }
    50%{
        transform: translate3d(-10px, 8px, 0);
    }
    100%{
        transform: translate3d(0, 0, 0);
    }
}