/* RAJ WEB STORE — Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: #141414;
    --bg-hover: #1a1a1a;
    --accent-red: #FF0000;
    --accent-red-d: #cc0000;
    --accent-yellow: #FFD700;
    --accent-green: #00FF88;
    --accent-error: #FF4444;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;
    --border: #222222;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --header-h: 70px;
    --radius: 8px;
    --radius-lg: 14px;
    --transition: 0.3s ease;
    --shadow-red: 0 0 20px rgba(255, 0, 0, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-yellow);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo-wrap {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-text-sm {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
}

.logo-accent {
    color: var(--accent-red);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.telegram-link {
    color: #2AABEE !important;
}

.telegram-link:hover {
    background: rgba(42, 171, 238, 0.1) !important;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.user-btn:hover {
    border-color: var(--accent-red);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 180px;
    padding: 8px;
    box-shadow: var(--shadow-card);
    animation: dropIn 0.2s ease;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.logout-link:hover {
    color: var(--accent-error) !important;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-yellow);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-yellow {
    background: var(--accent-yellow);
    color: #000;
}

.btn-yellow:hover {
    background: #ffc400;
    transform: translateY(-2px);
}

.btn-download {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.btn-download:hover {
    background: var(--accent-yellow);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.btn-danger {
    background: var(--accent-error);
    color: #fff;
}

.btn-danger:hover {
    background: #cc0000;
}

/* FLASH */
.flash-banner {
    padding: 14px 0;
    font-size: 14px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.flash-banner .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.flash-error {
    background: rgba(255, 68, 68, 0.1);
    border-bottom: 1px solid var(--accent-error);
    color: var(--accent-error);
}

.flash-info {
    background: rgba(42, 171, 238, 0.1);
    border-bottom: 1px solid #2aabee;
    color: #2aabee;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* HERO */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #120000 50%, #0a0a0a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 700px 500px at 70% 50%, rgba(255, 0, 0, 0.08) 0%, transparent 70%), radial-gradient(ellipse 400px 300px at 20% 80%, rgba(255, 0, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: var(--accent-red);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-family: var(--font-head);
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.hero-stat {
    text-align: center;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* CARDS */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.code-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(255, 0, 0, 0.1);
}

.code-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.code-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.code-card:hover .code-card-thumb img {
    transform: scale(1.05);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
    background: linear-gradient(135deg, #141414, #1e1e1e);
}

.code-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.code-card-cat {
    display: inline-block;
    font-size: 11px;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-red);
    background: rgba(255, 0, 0, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.code-card-title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.code-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.code-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* STORE */
.store-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.store-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.sidebar-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
    margin-bottom: 4px;
}

.cat-list a:hover,
.cat-list a.active {
    background: rgba(255, 0, 0, 0.1);
    color: var(--accent-red);
}

.cat-count {
    font-size: 11px;
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--text-muted);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-red);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* CODE DETAIL */
.code-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.code-detail-thumb {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

.code-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.code-detail-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.code-detail-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.features-list {
    margin-bottom: 32px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--accent-green);
    margin-top: 3px;
    flex-shrink: 0;
}

.code-install {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.code-install h3 {
    font-family: var(--font-head);
    font-size: 16px;
    margin-bottom: 12px;
}

.install-steps p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.code-action-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.code-action-card h3 {
    font-family: var(--font-head);
    font-size: 18px;
    margin-bottom: 8px;
}

.code-action-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.code-action-card .btn {
    margin-bottom: 12px;
}

/* FORMS */
.form-wrap {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.form-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: var(--accent-error);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-link {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.input-group {
    position: relative;
}

.input-group .form-input {
    padding-left: 44px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.input-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
}

.input-toggle:hover {
    color: var(--text-primary);
}

/* MODALS */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 36px;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: var(--accent-error);
}

.modal-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-sub {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.key-input {
    font-family: var(--font-code) !important;
    font-size: 18px !important;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-family: var(--font-code);
    font-size: 22px;
    font-weight: 700;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

.otp-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* FOOTER */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding: 60px 24px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 13px;
    margin: 8px 0 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all var(--transition);
}

.social-icon.telegram:hover {
    border-color: #2AABEE;
    color: #2AABEE;
    background: rgba(42, 171, 238, 0.1);
}

.footer-heading {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--accent-red);
}

.footer-key-info {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--bg-secondary), #0f0000);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero-sub {
    color: var(--text-secondary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent-red);
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-red);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent-yellow);
    color: #000;
    transform: translateY(-3px);
}

/* ADMIN */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    background: #0A0A0A;
    border-right: 1px solid #222;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition);
}

.admin-brand {
    padding: 24px 20px;
    border-bottom: 1px solid #222;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
}

.admin-nav {
    padding: 12px 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.admin-nav-item:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.06);
    border-left-color: #FFD700;
}

.admin-nav-item.active {
    color: var(--accent-red);
    background: rgba(255, 0, 0, 0.08);
    border-left-color: var(--accent-red);
}

.admin-nav-item i {
    width: 18px;
    text-align: center;
}

.admin-nav-group {
    padding: 8px 20px;
    font-size: 11px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 12px;
}

.admin-main {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--bg-primary);
    width: 100%;
}

.admin-topbar {
    height: 60px;
    background: #111111;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-topbar-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.admin-content {
    padding: 30px;
    max-width: 1400px;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #111111;
    border: 1px solid #222;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.06);
}

.stat-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.red {
    background: rgba(255, 0, 0, 0.1);
    color: var(--accent-red);
}

.stat-icon.yellow {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-yellow);
}

.stat-icon.green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
}

.stat-icon.blue {
    background: rgba(42, 171, 238, 0.1);
    color: #2aabee;
}

.stat-info-num {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.stat-info-label {
    font-size: 13px;
    color: #AAAAAA;
}

.admin-table-wrap {
    background: #111111;
    border: 1px solid #222;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.06);
}

.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #222;
}

.admin-table-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #0A0A0A;
    padding: 12px 20px;
    text-align: left;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #AAAAAA;
    border-bottom: 1px solid #222;
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #222;
    font-size: 14px;
    color: #AAAAAA;
    vertical-align: middle;
}

.data-table td.td-title {
    color: #FFFFFF;
    font-weight: 500;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 0, 0, 0.04);
    color: #FFFFFF;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.badge-red {
    background: rgba(255, 68, 68, 0.15);
    color: var(--accent-error);
}

.badge-yellow {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-yellow);
}

.badge-gray {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.admin-form-card {
    background: #111111;
    border: 1px solid #222;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.06);
}

.admin-form-card h3 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #222;
    color: #FFFFFF;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Upload zone — full width, yellow dashed border */
.upload-zone {
    width: 100%;
    border: 2px dashed #FFD700;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: #111111;
}

.upload-zone:hover {
    border-color: var(--accent-red);
    background: rgba(255, 0, 0, 0.04);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
}

.upload-zone i {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 12px;
}

.upload-zone p {
    color: #AAAAAA;
    font-size: 14px;
}

.upload-zone span {
    color: #FFD700;
    font-weight: 600;
}

.upload-zone input[type="file"] {
    display: none;
}

.key-display {
    font-family: var(--font-code);
    font-size: 16px;
    color: var(--accent-yellow);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 10px 16px;
    border-radius: var(--radius);
    letter-spacing: 2px;
    display: inline-block;
    cursor: pointer;
}

.key-display:hover {
    background: rgba(255, 215, 0, 0.14);
}

/* INSTALL */
.install-wrap {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.install-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 620px;
    width: 100%;
    overflow: hidden;
}

.install-header {
    background: linear-gradient(135deg, var(--accent-red), #8b0000);
    padding: 32px;
    text-align: center;
}

.install-header h1 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
}

.install-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 4px;
}

.install-steps-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.install-step-bar {
    flex: 1;
    min-width: 80px;
    padding: 16px 10px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 11px;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    position: relative;
}

.install-step-bar:last-child {
    border-right: none;
}

.install-step-bar.active {
    color: var(--accent-red);
    background: rgba(255, 0, 0, 0.05);
}

.install-step-bar.done {
    color: var(--accent-green);
}

.install-step-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.install-body {
    padding: 36px;
}

.install-body h2 {
    font-family: var(--font-head);
    font-size: 18px;
    margin-bottom: 6px;
}

.install-body>p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.req-item:last-child {
    border-bottom: none;
}

.req-ok {
    color: var(--accent-green);
}

.req-fail {
    color: var(--accent-error);
}

/* EMPTY / PAGINATION */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-family: var(--font-head);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-head);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.pagination .current {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* SPINNER */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes dropIn {
    from {
        transform: translateY(-8px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes modalSlide {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.2)
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* RESPONSIVE */
@media(max-width:1024px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        position: static;
    }

    .code-detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media(max-width:768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }

    .main-nav.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .header-auth .btn-outline {
        display: none;
    }

    .hero-title {
        font-size: 34px;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-wrap {
        padding: 24px;
    }
}

@media(max-width:480px) {
    .codes-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Admin Hamburger (mobile) ──────────────────────────────── */
.admin-hamburger {
    display: none;
    background: transparent;
    border: 1px solid #333;
    color: #AAAAAA;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-hamburger:hover {
    border-color: #FFD700;
    color: #FFD700;
}

@media (max-width: 768px) {
    .admin-hamburger {
        display: flex;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        display: block !important;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* ── Admin Form Inputs ─────────────────────────────────────── */
.admin-content .form-input,
.admin-content .form-select,
.admin-content .form-textarea {
    background: #0A0A0A;
    border: 1px solid #333;
    color: #FFFFFF;
}

.admin-content .form-input:focus,
.admin-content .form-select:focus,
.admin-content .form-textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.admin-content .form-input::placeholder,
.admin-content .form-textarea::placeholder {
    color: #555;
}

.admin-content .form-label {
    color: #AAAAAA;
}

/* ── line-clamp compat ─────────────────────────────────────── */