@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #070A12;
    --bg-secondary: #101827;
    --border-accent: #0757D8;
    --primary-accent: #FF5A1F;
    --hover-state: #1478FF;
    --glow-text: #FFD36A;
    --body-text: #FFFFFF;
    
    --grad-primary: linear-gradient(135deg, #FF5A1F 0%, #1478FF 100%);
    --grad-dark: linear-gradient(145deg, #101827 0%, #070A12 100%);
    --grad-glow: linear-gradient(90deg, #FFD36A 0%, #1478FF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 10% 20%, rgba(20, 120, 255, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 90, 31, 0.1) 0%, transparent 40%);
    color: var(--body-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(20, 120, 255, 0.07), transparent 36%),
        radial-gradient(circle at 80% 10%, rgba(255, 90, 31, 0.09), transparent 28%);
}

@keyframes slideDownFade {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes popInGlow {
    0% { transform: scale(0.95); opacity: 0; box-shadow: 0 0 0 rgba(255, 90, 31, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 90, 31, 0.15); }
}

.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 35px;
    height: 85px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(20, 120, 255, 0.18);
    border-bottom: 1px solid rgba(20, 120, 255, 0.36);
    background: transparent;
}

.top-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 90, 31, 0.18), transparent 34%),
        radial-gradient(circle at 84% 16%, rgba(20, 120, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(7, 10, 18, 0.96), rgba(5, 7, 13, 0.98));
    z-index: -2;
}

.top-navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 87, 216, 0.28) 0%, rgba(7, 10, 18, 0.88) 100%);
    z-index: -1;
}

.nav-brand {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 25px;
    background: var(--grad-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(20, 120, 255, 0.36));
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(7, 10, 18, 0.48);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(20,120,255,0.24);
}


.patreon-link {
    padding: 12px;
}

.patreon-link:hover {
    background: rgba(255, 66, 77, 0.1) !important;
    box-shadow: inset 0 2px 0 #FF424D !important;
}

.patreon-link:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 66, 77, 0.6));
}

.dropdown-content {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--grad-dark);
    border: 1px solid rgba(20, 120, 255, 0.22);
    border-top: 2px solid var(--primary-accent);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(20, 120, 255, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-secondary);
    border-left: 2px solid var(--primary-accent);
    border-top: 2px solid var(--primary-accent);
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--grad-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-content a:hover {
    color: var(--body-text);
    background: linear-gradient(90deg, rgba(20, 120, 255, 0.14) 0%, rgba(255, 90, 31, 0.08) 100%);
    padding-left: 28px;
}

.dropdown-content a:hover::before {
    transform: scaleY(1);
}

.dropdown-content a svg {
    fill: rgba(255, 255, 255, 0.5);
}

.dropdown-content a:hover svg {
    fill: var(--glow-text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.currency-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 13, 13, 0.6);
    padding: 6px 18px 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.28);
    transition: all 0.3s ease;
}

.currency-box:hover {
    background: rgba(26, 26, 26, 0.8);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
}

.currency-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.currency-text {
    display: flex;
    flex-direction: column;
}

.currency-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.currency-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--body-text);
    letter-spacing: 0.5px;
}

.amber-coin {
    border-color: rgba(255, 211, 106, 0.34);
    background: linear-gradient(145deg, rgba(255, 90, 31, 0.15), rgba(7, 10, 18, 0.72));
}
.amber-coin .currency-label { color: #FFD36A; }

.apex-coin {
    border-color: rgba(20, 120, 255, 0.42);
    background: linear-gradient(145deg, rgba(20, 120, 255, 0.16), rgba(7, 10, 18, 0.72));
}
.apex-coin .currency-label { color: #00D2FF; }

.necro-gema {
    border-color: rgba(176, 38, 255, 0.42);
    background: linear-gradient(145deg, rgba(176, 38, 255, 0.16), rgba(7, 10, 18, 0.72));
}
.necro-gema .currency-label { color: #b026ff; }

.user-dropdown-wrapper {
    position: relative;
    height: 85px;
    display: flex;
    align-items: center;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    background: rgba(255, 90, 31, 0.08);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--primary-accent);
    box-shadow: 0 0 15px rgba(255, 90, 31, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    color: var(--body-text);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.user-role {
    background: var(--grad-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.user-profile-btn .chevron {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-dropdown-wrapper:hover .chevron {
    transform: rotate(180deg);
    color: var(--primary-accent);
}

.user-dropdown-menu {
    position: absolute;
    top: 80px;
    right: 0;
    background: var(--grad-dark);
    border: 1px solid rgba(140, 28, 19, 0.3);
    border-top: 2px solid var(--primary-accent);
    border-radius: 12px;
    min-width: 240px;
    padding: 12px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 90, 31, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-category {
    padding: 10px 24px;
    font-size: 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.user-dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--grad-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.user-dropdown-menu a:hover {
    color: var(--body-text);
    background: linear-gradient(90deg, rgba(255, 90, 31, 0.1) 0%, transparent 100%);
    padding-left: 28px;
}

.user-dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.user-dropdown-menu a svg {
    fill: rgba(255, 255, 255, 0.5);
    transition: fill 0.2s ease;
}

.user-dropdown-menu a:hover svg {
    fill: var(--primary-accent);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.logout-link:hover {
    background: linear-gradient(90deg, rgba(255, 66, 77, 0.1) 0%, transparent 100%) !important;
}

.logout-link:hover::before {
    background: #FF424D !important;
}

.logout-link:hover svg {
    fill: #FF424D !important;
}



.welcome-card {
    background: var(--grad-dark);
    border: 1px solid rgba(140, 28, 19, 0.4);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.welcome-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-primary);
}

.welcome-card h1 {
    color: var(--body-text);
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.welcome-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(140, 28, 19, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-accent);
}

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.auth-box {
    background: var(--grad-dark);
    border: 1px solid rgba(140, 28, 19, 0.4);
    border-top: 3px solid var(--primary-accent);
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    animation: popInGlow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(255, 90, 31, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 90, 31, 0.3);
    padding: 8px;
    background: var(--bg-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 90, 31, 0.2);
    position: relative;
    z-index: 1;
}

.auth-box h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    background: var(--grad-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.btn-steam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--grad-primary);
    color: var(--body-text);
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(255, 90, 31, 0.4);
    overflow: hidden;
}

.btn-steam::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-steam:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(20, 120, 255, 0.6);
    border-color: var(--glow-text);
}

.btn-steam:hover::after {
    left: 100%;
}

.dropdown-content a.soon-link,
.user-dropdown-menu a.soon-link {
    position: relative;
    cursor: not-allowed;
    overflow: hidden;
}

.dropdown-content a.soon-link::after,
.user-dropdown-menu a.soon-link::after {
    content: 'SOON';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary-accent);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.dropdown-content a.soon-link:hover::after,
.user-dropdown-menu a.soon-link:hover::after {
    opacity: 1;
}

.dropdown-content a.soon-link:hover,
.user-dropdown-menu a.soon-link:hover {
    padding-left: 24px;
    background: transparent;
}

.site-footer {
    background: var(--grad-dark);
    border-top: 1px solid rgba(140, 28, 19, 0.4);
    padding: 25px 40px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
}

.creator-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-name {
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ffd36a, #ff5a1f, #1478ff, #00d2ff, #ffd36a);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(255, 209, 102, 0.24);
    animation: creatorNameSlide 3.8s linear infinite;
}

@keyframes creatorNameSlide {
    0% { background-position: 320% 50%; }
    100% { background-position: 0% 50%; }
}

.toast-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999999;
    pointer-events: none;
}

.toast {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    min-width: 320px;
    max-width: 420px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-error {
    border-left: 4px solid #FF424D;
}

.toast-success {
    border-left: 4px solid #00FF66;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-error .toast-icon { color: #FF424D; }
.toast-success .toast-icon { color: #00FF66; }

.toast-message {
    color: var(--body-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 4s linear forwards;
}

.toast-error .toast-progress { background: #FF424D; }
.toast-success .toast-progress { background: #00FF66; }

@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

.btn-disabled-visual {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed !important;
}
.dino-showcase {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dino-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8));
}

.dino-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.dino-name-wrapper h3 {
    font-size: 26px;
    font-weight: 900;
    color: var(--body-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prime-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prime-status.active {
    background: rgba(255, 209, 102, 0.1);
    color: var(--glow-text);
    border: 1px solid rgba(255, 209, 102, 0.3);
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.2);
}

.prime-status.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.stat-box {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(140, 28, 19, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.stat-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-accent);
}
/* codex-responsive-site */
html {
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.main-content,
.auth-container,
.auth-box,
.site-footer,
.footer-content,
[class*="-shell"],
[class*="-wrap"],
[class*="-panel"],
[class*="-card"],
[class*="-grid"],
[class*="-layout"],
[class*="-hero"],
[class*="-toolbar"],
[class*="-modal"] {
    min-width: 0;
}

.table-responsive,
.users-table-container,
.admin-table-wrap,
.kill-table-wrap,
.log-table-wrap,
.perm-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1180px) {
    .store-hero,
    .lootbox-hero,
    .crate-view-panel,
    .population-hero,
    .population-layout,
    .ex-top,
    .ex-layout,
    .ex-toolbar,
    .ex-sell,
    .ex-detail-shell,
    .tr-top,
    .tr-layout,
    .tr-offers,
    .map-shell,
    .map-layout,
    .live-hero,
    .live-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .main-content {
        overflow-x: hidden !important;
    }

    .auth-container,
    .voice-page,
    .spawn-app-container,
    .lootbox-wrap,
    .ex-shell,
    .tr-shell,
    .population-shell,
    .leaderboard-shell,
    .punishments-shell,
    .map-shell,
    .live-shell {
        width: min(100% - 22px, 760px) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .auth-highlights,
    .hero-metrics,
    .feature-grid,
    .selection-grid,
    .info-grid,
    .lootbox-stat-row,
    .reward-grid,
    .ex-stats,
    .ex-featured,
    .tr-stats,
    .tr-detail-grid,
    .stats-grid,
    .slot-grid,
    .popover-grid,
    .popover-grid.three-col,
    .note-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .inventory-header,
    .store-header,
    .tier-header,
    .card-bottom,
    .action-bar,
    .footer-content,
    .welcome-card,
    .spawn-header-card,
    .filter-bar,
    .price-actions,
    .view-actions,
    .opening-head,
    .tr-head,
    .tr-actions,
    .ex-actions,
    .ex-balance-row,
    .tr-balance-row {
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .filter-bar,
    .mode-tabs,
    .ex-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .stats-popover {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 18px !important;
        width: auto !important;
        max-height: min(420px, calc(100vh - 48px)) !important;
        transform-origin: bottom center !important;
    }

    .stats-popover::after {
        display: none !important;
    }

    .toast-container {
        right: 14px !important;
        bottom: 14px !important;
        width: calc(100vw - 28px) !important;
    }

    .toast {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .auth-box,
    .welcome-card,
    .mutations-block,
    .skin-card,
    .inv-card,
    .tr-panel,
    .tr-card,
    .ex-panel,
    .ex-card,
    .lootbox-title-card,
    .lootbox-card,
    .modal-card,
    .pattern-modal-content {
        padding: 18px !important;
    }

    .auth-brand-row,
    .spawn-header-card,
    .dino-showcase,
    .inventory-storage-top,
    .card-bottom,
    .action-bar,
    .footer-content {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
    }

    .auth-highlights,
    .hero-metrics,
    .feature-grid,
    .selection-grid,
    .info-grid,
    .lootbox-stat-row,
    .reward-grid,
    .ex-stats,
    .ex-featured,
    .tr-stats,
    .tr-detail-grid,
    .stats-grid,
    .slot-grid,
    .popover-grid,
    .popover-grid.three-col,
    .note-actions,
    .inventory-grid,
    .skins-grid,
    .dino-grid,
    .lootbox-grid,
    .ex-grid,
    .live-grid {
        grid-template-columns: 1fr !important;
    }

    .inv-card {
        height: auto !important;
        min-height: 340px;
    }

    .skin-card:hover,
    .inv-card:hover,
    .dino-card:hover,
    .lootbox-card:hover {
        transform: none !important;
    }

    .btn-purchase,
    .btn-steam,
    .purchase-btn,
    .open-crate-btn,
    .view-open-btn,
    .tr-btn,
    .ex-btn,
    .btn-spawn,
    .note-save,
    .note-clear {
        width: 100%;
        justify-content: center;
    }

    .site-footer {
        padding: 22px 16px !important;
    }

    .footer-content {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .auth-box h2,
    .store-title h1,
    .inventory-title h1,
    .tr-title,
    .ex-title,
    .tier-heading,
    .page-header h1 {
        font-size: 24px !important;
        line-height: 1.12 !important;
    }

    .currency-value,
    .card-title,
    .skin-title,
    .dino-name,
    .user-name {
        overflow-wrap: anywhere;
    }
}

/* =========================================
   UNIFIED PAGE HERO SECTION
   ========================================= */
.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 90, 31, 0.3);
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 150px;
    height: 3px;
    background: var(--grad-primary, linear-gradient(135deg, #FF5A1F 0%, #1478FF 100%));
    box-shadow: 0 0 15px rgba(255, 90, 31, 0.4);
    border-radius: 3px;
}

.page-title-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.page-title-area h1 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFF;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.page-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-title-area h1 {
        font-size: 26px;
    }
    .page-hero::after {
        width: 100px;
    }
}

/* =========================================
   STORE TITLE PANEL (Dinosaurus Style Hero)
   ========================================= */
.store-title-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(14, 14, 14, 0.55), rgba(8, 8, 8, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 26px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.store-title-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 60%);
}

.store-title-panel h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0,0,0,0.55);
    color: #FFD36A;
}

.store-title-panel p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    max-width: 780px;
}

.store-title-content {
    display: flex;
    flex-direction: column;
}

.store-title-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
