
:root {
    --bg: #050505;
    --card: #0a0a0a;
    --border: #1a1a1a;
    --text: #e0e0e0;
    --muted: #666666;
    --red: #e639c9;
    --red-hover: #ff4d5a;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --nav-height: 56px;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main {
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: var(--muted);
    font-size: 0.95rem;
}
.navbar {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    width: 26px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.nav-burger::before,
.nav-burger::after,
.nav-burger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-burger::before { top: 0; }
.nav-burger span { top: 9px; }
.nav-burger::after { top: 18px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

.btn.cancel {
    background: var(--border);
    color: var(--muted);
}

.btn.cancel:hover {
    background: #252525;
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 4px;
    background: var(--border);
    color: var(--text);
}

.btn-sm:hover {
    background: #252525;
}

.btn-sm.danger {
    background: rgba(230, 57, 70, 0.15);
    color: var(--red);
}

.btn-sm.danger:hover {
    background: rgba(230, 57, 70, 0.25);
}

.badge {
    display: inline-block;
    background: rgba(230, 57, 201, 0.12);
    color: var(--red);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(230, 57, 201, 0.25);
}

.tag {
    background: rgba(230, 57, 201, 0.1);
    color: var(--red);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(230, 57, 201, 0.2);
}

.tag-inline {
    color: var(--red);
    font-weight: 500;
    font-size: 0.8rem;
}

.badge.new-breach {
    background: rgba(46, 204, 113, 0.15);
    color: #ffffff;
    border: 1px solid rgba(46, 204, 113, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: blinkGlow 1.8s ease-in-out infinite;
}

@keyframes blinkGlow {
    0%, 100% {
        opacity: 1;
        background: rgba(46, 204, 113, 0.15);
        box-shadow: 0 0 0 rgba(46, 204, 113, 0);
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        background: rgba(46, 204, 113, 0.3);
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .badge.new-breach {
        animation: none;
        opacity: 1;
        background: rgba(46, 204, 113, 0.3);
    }
}

.db-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.db-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
}

.db-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(230, 57, 201, 0.15);
}

.article-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #111;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.article-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.4s ease;
}

.db-card:hover .article-card-image {
    transform: scale(1.05);
}

.db-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.db-card h2 a {
    color: #fff;
}

.db-card h2 a:hover {
    color: var(--red);
}

.db-card .db-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.db-card .db-excerpt {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db-card .read-btn {
    display: block;
    text-align: center;
    padding: 0.65rem;
    background: var(--border);
    color: var(--text);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.db-card .read-btn:hover {
    background: var(--red);
    color: #fff;
}

.db-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0;
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.table th,
.table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: rgba(230, 57, 201, 0.08);
    color: var(--red);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mono {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 750px;
}

.form input,
.form textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form textarea {
    min-height: 140px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.alert.success {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border-left-color: #2ecc71;
}

.alert.error {
    background: rgba(230, 57, 201, 0.12);
    color: var(--red);
    border-left-color: var(--red);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    background: var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    min-width: 36px;
    text-align: center;
}

.page-btn:hover:not(.active) {
    border-color: var(--red);
    color: var(--red);
    background: #151515;
}

.page-btn.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.page-dots {
    color: var(--muted);
    padding: 0 0.25rem;
    user-select: none;
    display: flex;
    align-items: flex-end;
}

.article-page .container {
    max-width: 750px;
}

.article-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    margin: 0.75rem 0;
    line-height: 1.25;
}

.article-meta {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.info-box {
    background: var(--card);
    border: 1px solid rgba(230, 57, 201, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.info-header {
    background: rgba(230, 57, 201, 0.08);
    padding: 0.65rem 1rem;
    font-weight: 700;
    color: var(--red);
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(230, 57, 201, 0.15);
}

.info-content {
    padding: 1rem;
    margin: 0;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body {
    color: #bbb;
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 1.5rem 0;
}

.contact-box {
    background: rgba(230, 57, 201, 0.06);
    border: 1px solid rgba(230, 57, 201, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.contact-box h3 {
    color: var(--red);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: #fff;
    border-color: var(--red);
    background: rgba(230, 57, 201, 0.08);
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: #fff;
    font-weight: 600;
    min-width: 80px;
}

.contact-item span {
    color: var(--muted);
    text-align: right;
    word-break: break-word;
}

.note {
    background: rgba(230, 57, 201, 0.08);
    border-left: 3px solid var(--red);
    padding: 0.85rem 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #bbb;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-note {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    padding: 1rem;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-box h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.auth-box input {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--red);
}

.admin-body {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    flex-shrink: 0;
}

.admin-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.admin-brand {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.admin-links {
    display: flex;
    gap: 1.25rem;
}

.admin-links a {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0;
    position: relative;
}

.admin-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.2s ease;
}

.admin-links a:hover,
.admin-links a.active {
    color: #fff;
}

.admin-links a:hover::after,
.admin-links a.active::after {
    width: 100%;
}

.admin-main {
    flex: 1;
    padding: 2rem 1rem;
}

.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.admin-container h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.stat:hover {
    border-color: rgba(230, 57, 201, 0.3);
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}
@media (max-width: 1200px) {
    .db-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .db-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-height: 52px; }

    .nav-burger { display: block; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--border);
        overflow-y: auto;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav-link::after { display: none; }

    #nav-toggle:checked ~ .nav-menu { transform: translateX(0); }
    #nav-toggle:checked ~ .nav-burger::before { transform: rotate(45deg); top: 9px; }
    #nav-toggle:checked ~ .nav-burger span { opacity: 0; transform: translateX(10px); }
    #nav-toggle:checked ~ .nav-burger::after { transform: rotate(-45deg); top: 9px; }

    .main { padding: 1.5rem 0; }
    .page-header h1 { font-size: 1.5rem; }
    
    .admin-links { display: none; }
    .admin-nav-inner { justify-content: center; }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-header .btn { width: 100%; }
    
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .contact-item span { text-align: left; }
    
    .table { min-width: 100%; }
}

.proof-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.proof-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.proof-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.proof-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.proof-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.proof-carousel-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.proof-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.proof-carousel-btn:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.proof-carousel-prev { left: 1rem;   }
.proof-carousel-next { right: 1rem; }

.proof-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.proof-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.proof-carousel-dot:hover { background: rgba(255, 255, 255, 0.6); }
.proof-carousel-dot.active {
    background: var(--red);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 600px) {
    .proof-carousel-btn { width: 36px; height: 36px; font-size: 1.2rem; }
    .proof-carousel-prev { left: 0.5rem; }
    .proof-carousel-next { right: 0.5rem; }
}

@media (max-width: 600px) {
    .db-grid { grid-template-columns: 1fr; }
    .db-card { padding: 1rem; }
    .db-card .badge { top: 0.75rem; right: 0.75rem; font-size: 0.6rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.85rem; }
    .page-header h1 { font-size: 1.35rem; }
    .article-title { font-size: 1.5rem; }
    .db-card h2 { font-size: 1.05rem; }
    .btn, .btn-sm, .page-btn { font-size: 0.85rem; padding: 0.6rem 1rem; }
    .auth-box { padding: 1.5rem; }
    .footer { padding: 1.5rem 1rem; }
}