/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0c0e14;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #e4e6eb;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ========== ANIMATED BACKGROUND WITH GLOW ORBS ========== */
/* Animated Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 92, 252, 0.4) 0%, rgba(123, 92, 252, 0.1) 40%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float1 20s ease-in-out infinite;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(130, 177, 255, 0.3) 0%, rgba(130, 177, 255, 0.08) 40%, transparent 70%);
    top: 50%;
    right: -50px;
    animation: float2 25s ease-in-out infinite;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(179, 136, 255, 0.25) 0%, rgba(179, 136, 255, 0.05) 40%, transparent 70%);
    bottom: -50px;
    left: 20%;
    animation: float3 22s ease-in-out infinite;
}

.glow-orb-4 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(123, 92, 252, 0.2) 0%, rgba(123, 92, 252, 0.05) 40%, transparent 70%);
    top: 30%;
    left: 10%;
    animation: float4 28s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, -150px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50px, 100px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(150px, 50px) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(0.95);
        opacity: 0.5;
    }
    25% {
        transform: translate(-120px, 100px) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translate(80px, -120px) scale(0.85);
        opacity: 0.4;
    }
    75% {
        transform: translate(-60px, -80px) scale(1);
        opacity: 0.6;
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(-100px, -100px) scale(1.15);
        opacity: 0.6;
    }
    50% {
        transform: translate(120px, 80px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(40px, -120px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) scale(1.05);
        opacity: 0.35;
    }
    25% {
        transform: translate(80px, 120px) scale(0.9);
        opacity: 0.55;
    }
    50% {
        transform: translate(-100px, -80px) scale(1.1);
        opacity: 0.25;
    }
    75% {
        transform: translate(60px, 100px) scale(0.95);
        opacity: 0.45;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: transparent;
    }
}

/* Matrix Rain Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* Animated Grid Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(123, 92, 252, 0.05) 25%, rgba(123, 92, 252, 0.05) 26%, transparent 27%, transparent 74%, rgba(123, 92, 252, 0.05) 75%, rgba(123, 92, 252, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(123, 92, 252, 0.05) 25%, rgba(123, 92, 252, 0.05) 26%, transparent 27%, transparent 74%, rgba(123, 92, 252, 0.05) 75%, rgba(123, 92, 252, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(20, 24, 31, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(42, 47, 58, 0.6);
    border-radius: 28px;
    padding: 0.8rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(123, 92, 252, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 20;
    animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(123, 92, 252, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(123, 92, 252, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #b388ff, #82b1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(179, 136, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(179, 136, 255, 0.6));
    }
}

.logo i {
    -webkit-text-fill-color: #b388ff;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    font-weight: 500;
    font-size: 0.95rem;
    list-style: none;
}

.nav-links a {
    color: #a8b0c0;
    text-decoration: none;
    transition: 0.3s;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b388ff, #82b1ff);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #e4e6eb;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a.admin-link {
    color: #b388ff;
}

.nav-links a.admin-link:hover {
    color: #c6a8ff;
}

/* ========== CARDS ========== */
.card {
    background: rgba(20, 24, 31, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(42, 47, 58, 0.6);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(123, 92, 252, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    transition: 0.3s ease;
}

.card:hover {
    border-color: rgba(123, 92, 252, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(123, 92, 252, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.card-header h2 i {
    color: #b388ff;
    margin-right: 12px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ========== FORMS ========== */
.paste-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8892a8;
    font-weight: 600;
}

.form-control {
    background: rgba(30, 35, 44, 0.7);
    border: 1px solid rgba(47, 53, 66, 0.8);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    color: #eef2f8;
    font-size: 0.95rem;
    transition: 0.3s;
    width: 100%;
    font-family: inherit;
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: #b388ff;
    box-shadow: 
        0 0 0 3px rgba(179, 136, 255, 0.2),
        0 0 15px rgba(179, 136, 255, 0.3);
    background: rgba(30, 35, 44, 0.9);
}

.form-control::placeholder {
    color: #55607a;
}

textarea.form-control {
    min-height: 250px;
    resize: vertical;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    line-height: 1.6;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%238892a8" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.8rem;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #7c5cfc, #b388ff);
    border: none;
    border-radius: 60px;
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0b0e14;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 
        0 8px 20px rgba(123, 92, 252, 0.25),
        0 0 20px rgba(123, 92, 252, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #8e72ff, #c6a8ff);
    box-shadow: 
        0 12px 28px rgba(123, 92, 252, 0.4),
        0 0 30px rgba(123, 92, 252, 0.3);
}

.btn-secondary {
    background: rgba(42, 51, 69, 0.7);
    border: 1px solid rgba(63, 70, 86, 0.8);
    border-radius: 60px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #d0dcee;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(54, 64, 79, 0.9);
    border-color: rgba(90, 106, 130, 0.8);
    box-shadow: 0 0 15px rgba(123, 92, 252, 0.2);
}

.btn-danger {
    background: #dc3545;
    border: none;
    border-radius: 60px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.badge-public {
    background: rgba(31, 58, 43, 0.8);
    color: #6fcf97;
    border: 1px solid rgba(111, 207, 151, 0.3);
}

.badge-private {
    background: rgba(58, 42, 49, 0.8);
    color: #f28b82;
    border: 1px solid rgba(242, 139, 130, 0.3);
}

.badge-unlisted {
    background: rgba(42, 51, 69, 0.8);
    color: #b0bbd0;
    border: 1px solid rgba(176, 187, 208, 0.3);
}

.badge-active {
    background: rgba(31, 58, 43, 0.8);
    color: #6fcf97;
    border: 1px solid rgba(111, 207, 151, 0.3);
}

.badge-paused {
    background: rgba(58, 42, 49, 0.8);
    color: #f28b82;
    border: 1px solid rgba(242, 139, 130, 0.3);
}

/* ========== ADS ========== */
.ad-banner {
    background: rgba(30, 35, 44, 0.7);
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(42, 47, 58, 0.6);
    margin: 1rem 0;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(123, 92, 252, 0.1);
}

.ad-banner-top {
    margin-bottom: 1.5rem;
}

.ad-banner-bottom {
    margin-top: 1.5rem;
}

/* ========== PASTE VIEW ========== */
.paste-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #8892a8;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(42, 47, 58, 0.6);
}

.paste-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.paste-meta i {
    color: #b388ff;
}

.paste-content {
    background: rgba(17, 22, 30, 0.8);
    border-radius: 20px;
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid rgba(42, 47, 58, 0.4);
    backdrop-filter: blur(5px);
}

.paste-content pre {
    margin: 0;
}

.paste-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.paste-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* ========== ADMIN ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(20, 24, 31, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(123, 92, 252, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 92, 252, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(123, 92, 252, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(123, 92, 252, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #b388ff, #82b1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    display: block;
    filter: drop-shadow(0 0 10px rgba(179, 136, 255, 0.3));
    animation: floatingNumber 4s ease-in-out infinite;
}

@keyframes floatingNumber {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(179, 136, 255, 0.3));
    }
    50% {
        transform: translateY(-12px) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(179, 136, 255, 0.6));
    }
}

.stat-card .label {
    font-size: 0.85rem;
    color: #a8b0c0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-card .label i {
    color: #b388ff;
    font-size: 0.9rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(42, 47, 58, 0.4);
}

.admin-table th {
    color: #8892a8;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table td {
    color: #d0dcee;
}

.admin-table tr:hover td {
    background: rgba(26, 33, 43, 0.5);
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.admin-table .actions a {
    color: #8892a8;
    text-decoration: none;
    transition: 0.2s;
    padding: 0.2rem 0.4rem;
}

.admin-table .actions a:hover {
    color: #b388ff;
}

.admin-table .actions .delete:hover {
    color: #dc3545;
}

/* ========== ALERTS ========== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
}

.alert-success {
    background: rgba(31, 58, 43, 0.8);
    border-color: rgba(111, 207, 151, 0.5);
    color: #6fcf97;
}

.alert-danger {
    background: rgba(58, 42, 49, 0.8);
    border-color: rgba(242, 139, 130, 0.5);
    color: #f28b82;
}

.alert-warning {
    background: rgba(58, 53, 42, 0.8);
    border-color: rgba(242, 200, 130, 0.5);
    color: #f2c882;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0.8rem 1rem;
    }
    
    .navbar {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        padding: 0;
    }
    
    .nav-links li a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .card {
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
    }
    
    .card-header h2 {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .number {
        font-size: 1.5rem;
    }
    
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .footer div {
        width: 100%;
    }
    
    .footer a {
        margin: 0 0.8rem;
        display: inline-block;
    }
    .nav-links li a.contact-btn {
    justify-content: center;
    width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .paste-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .paste-actions {
        flex-direction: column;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
    
    .nav-links li {
        flex: 1 1 40%;
    }
}

/* ========== UTILITY ========== */
.text-muted {
    color: #8892a8;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Footer */
.footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(42, 47, 58, 0.4);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7a94;
    position: relative;
    z-index: 10;
}

.footer a {
    color: #8899b8;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: 0.2s;
}

.footer a:hover {
    color: #b388ff;
}
