:root {
    --gradient-start: #050816;
    --gradient-end: #0f041d;
    --surface: rgba(6, 10, 26, 0.9);
    --surface-strong: rgba(13, 20, 40, 0.95);
    --primary-color: #0ea5e9;
    --primary-dark: #22d3ee;
    --accent-color: #f472b6;
    --success-color: #10f0b8;
    --text-dark: #e2e8ff;
    --text-muted: rgba(148, 163, 184, 0.85);
    --border-color: rgba(56, 189, 248, 0.35);
    color-scheme: dark;
    --bs-body-bg: #050816;
    --bs-body-color: var(--text-dark);
    --bs-heading-color: var(--text-dark);
    --bs-link-color: var(--primary-dark);
    --bs-link-hover-color: var(--accent-color);
    --bs-border-color: var(--border-color);
    --bs-secondary-color: var(--text-muted);
    --bs-secondary-rgb: 148, 163, 184;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--gradient-start);
}

/* Custom Scrollbar */

@keyframes floaty {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-body {
    background:
        radial-gradient(circle at 25% 20%, rgba(72, 18, 128, 0.45), transparent 45%),
        radial-gradient(circle at 75% 0%, rgba(8, 207, 255, 0.35), transparent 50%),
        linear-gradient(140deg, var(--gradient-start), #05060f 40%, var(--gradient-end));
    background-size: 200% 200%;
    animation: gradientMove 18s ease infinite;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
}

.app-body,
.app-body p,
.app-body h1,
.app-body h2,
.app-body h3,
.app-body h4,
.app-body h5,
.app-body h6,
.app-body label,
.app-body .form-label,
.app-body .form-check-label,
.app-body .card,
.app-body .card-title,
.app-body .card-text,
.app-body .dropdown-menu,
.app-body .dropdown-item,
.app-body .list-group-item,
.app-body .table,
.app-body .table th,
.app-body .table td,
.app-body .modal-content,
.app-body .alert,
.app-body .nav-link,
.app-body .btn-link {
    color: var(--text-dark);
}

.app-body small,
.app-body .form-text,
.app-body .text-muted,
.app-body .text-secondary {
    color: var(--text-muted) !important;
}

.app-body a:not(.btn):not(.nav-link):not(.dropdown-item),
.app-body .card-title a {
    color: var(--primary-dark);
}

.app-body a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
.app-body .card-title a:hover {
    color: var(--accent-color);
}

.app-nav {
    background: rgba(5, 8, 23, 0.88);
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
    box-shadow: 0 10px 30px rgba(3, 4, 16, 0.9);
    backdrop-filter: blur(18px);
}

.app-nav .navbar-brand {
    color: var(--text-dark);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
}

.app-nav .nav-link {
    color: var(--text-muted);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.app-nav .nav-link.active,
.app-nav .nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.brand-logo {
    width: 32px;
    height: 32px;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 255, 0.06);
    border-radius: 1.25rem;
    box-shadow:
        0 20px 40px rgba(5, 5, 15, 0.85),
        0 0 25px rgba(34, 211, 238, 0.08);
    animation: fadeUp 0.4s ease;
}

.glass-card {
    background: rgba(13, 20, 40, 0.7);
    border: 1px solid rgba(226, 232, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.15);
}

.intro-panel {
    background: linear-gradient(135deg, rgba(59, 7, 100, 0.95), rgba(17, 24, 39, 0.95));
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow:
        0 35px 60px rgba(8, 0, 20, 0.9),
        0 0 40px rgba(236, 72, 153, 0.35);
    animation: floaty 6s ease-in-out infinite;
}

.metric {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 1rem 0.5rem;
    box-shadow: inset 0 1px 0 rgba(226, 232, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
}

.metric-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.btn-primary {
    background: linear-gradient(125deg, var(--primary-color), #38bdf8);
    border: none;
    color: #03111d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow:
        0 12px 30px rgba(14, 165, 233, 0.4),
        0 0 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(125deg, var(--primary-dark), var(--accent-color));
    color: #030712;
    box-shadow:
        0 15px 35px rgba(244, 114, 182, 0.45),
        0 0 25px rgba(34, 211, 238, 0.35);
}

.btn-outline-light {
    border-color: rgba(14, 165, 233, 0.6);
    color: #e0f2ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    border-color: var(--primary-dark);
    background: rgba(14, 165, 233, 0.15);
    color: #f8fbff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-secondary {
    color: rgba(148, 163, 184, 0.9) !important;
}

.form-control,
.form-select {
    background: rgba(4, 7, 18, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--text-dark);
    box-shadow: inset 0 0 10px rgba(15, 23, 42, 0.8);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(168, 85, 247, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gradient-start);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    border: 2px solid var(--gradient-start);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Particle Effect */
.particle-wrap {
    position: relative;
    display: inline-block;
}

.particle-wrap .text-stack {
    position: relative;
    z-index: 5;
}

.particle-wrap canvas {
    position: absolute;
    inset: -20px;
    z-index: 6;
    pointer-events: none;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
}

/* ===== NEON CORE (ışık kaynağı) ===== */
.neon-core {
    position: relative;
    z-index: 5;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow:
        0 0 2px rgba(255, 255, 255, .35),
        /* hotspot */
        0 0 6px currentColor;
    /* tube glow */
}

/* ===== MID GLOW (tüp hissi) ===== */
.neon-glow-mid {
    position: absolute;
    inset: 0;
    z-index: 3;
    filter: blur(8px);
    opacity: .85;
    mix-blend-mode: screen;
}

/* ===== FAR SPILL (ortam ışığı) ===== */
.neon-glow-far {
    position: absolute;
    inset: -4px;
    z-index: 1;
    filter: blur(20px);
    opacity: .50;
    mix-blend-mode: screen;
}

/* Falloff mask – ışık kenarlarda sönsün */
.neon-glow-mid,
.neon-glow-far {
    mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, .85) 40%,
            rgba(0, 0, 0, .45) 65%,
            rgba(0, 0, 0, 0) 82%);
}

.neon-core span,
.neon-glow-mid span,
.neon-glow-far span {
    display: inline-block;
}

.paste-area {
    min-height: 600px;
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace;
    line-height: 1.6;
    font-size: 0.95rem;
    resize: vertical;
}

.app-body {
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

.rich-editor {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(3, 5, 14, 0.9);
    box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.2);
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(93, 103, 153, 0.15);
    margin-bottom: 0.75rem;
}

.editor-toolbar-group {
    display: flex;
    flex: 1 1 280px;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.editor-toolbar-settings {
    justify-content: flex-start;
}

.editor-toolbar-actions {
    justify-content: flex-end;
    text-align: right;
}

.editor-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.editor-value {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.editor-actions button {
    min-width: 40px;
    font-weight: 600;
}

.rich-editor textarea {
    background: rgba(6, 10, 24, 0.85);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--text-dark);
}

.rich-preview {
    border: 1px solid rgba(226, 232, 255, 0.08);
    border-radius: 1.25rem;
    background: rgba(5, 8, 20, 0.95);
    box-shadow:
        0 25px 40px rgba(0, 0, 0, 0.75),
        0 0 25px rgba(34, 211, 238, 0.12);
}

.rich-preview-content {
    line-height: 1.7;
    color: var(--rich-text-color, var(--text-dark));
    font-size: 1rem;
}

.rich-preview-content p {
    margin-bottom: 0.85rem;
}

.rich-preview-content p:last-child {
    margin-bottom: 0;
}

.rich-preview-content a {
    color: inherit;
    text-decoration: underline;
}

.rich-preview-content u {
    text-decoration: underline;
}

.editor-control input[type="color"] {
    width: 44px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 0.5rem;
    background: rgba(5, 8, 20, 0.8);
}

.editor-control input[type="range"] {
    min-width: 130px;
}

.paste-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge-award {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--text-dark);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}

.emoji-icon {
    font-size: 1.4rem;
    user-select: none;
}

.code-wrapper {
    background: rgba(3, 7, 18, 0.95);
    border-radius: 1.25rem;
    padding: 1rem;
    position: relative;
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.code-wrapper pre {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.highlight {
    background: rgba(14, 165, 233, 0.15);
    color: var(--text-dark);
    border-radius: 0.4rem;
    padding: 0.25rem 0.5rem;
}

.latest-pastes {
    background: rgba(8, 8, 20, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(3, 6, 18, 0.6);
}

.latest-paste-grid {
    margin-top: 1.5rem;
}

.latest-paste-card {
    background: rgba(4, 6, 18, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.latest-paste-title a {
    color: var(--text-dark);
}

.latest-paste-title a:hover {
    color: var(--accent-color);
}

.latest-paste-snippet {
    font-size: 0.95rem;
    line-height: 1.6;
}

.latest-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--surface-strong);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.latest-pill-accent {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.35);
    color: var(--text-dark);
}

.latest-pill-soft {
    background: rgba(13, 20, 40, 0.8);
    color: var(--text-muted);
}

.latest-stats {
    gap: 0.5rem;
}

.badge-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.45);
}

.badge-action::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.neon-entry-card {
    background: rgba(5, 7, 20, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(3, 4, 16, 0.65);
}

.neon-entry-card label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.neon-entry-card .status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.neon-entry-card .status-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-light {
    color: var(--primary-dark);
}

.link-light:hover {
    color: var(--accent-color);
}

.global-banner {
    background: rgba(5, 8, 20, 0.9);
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
    padding: 0.5rem 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.global-banner + .global-banner {
    border-top: none;
}

.neon-promo-bar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0;
    margin: 0.25rem 0 1rem;
}

.banner-stack {
    margin: 0.25rem 0 0.75rem;
}

.banner-strip {
    padding: 0.5rem 0;
}

.banner-strip .banner-slot img {
    max-height: 90px;
    object-fit: contain;
}

.neon-promo-link {
    --promo-color: var(--primary-color);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0;
    color: #f8faff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    box-shadow: none;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
}

.neon-promo-link::before,
.neon-promo-link::after,
.neon-promo-title::after {
    display: none;
}

.neon-promo-link:hover {
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.neon-promo-title {
    color: var(--promo-color);
}

.neon-promo-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
}

.banner-slot {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: rgba(7, 12, 32, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.banner-slot img {
    max-width: 100%;
    height: auto;
    display: block;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-dark);
    --bs-table-hover-bg: rgba(7, 15, 35, 0.05);
    --bs-table-hover-color: var(--text-dark);
}

.admin-table thead th {
    background: rgba(7, 15, 35, 0.08);
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.admin-table tbody tr {
    background: rgba(5, 8, 20, 0.95);
}

.admin-table tbody tr + tr {
    border-top: 1px solid var(--border-color);
}

.banner-preview img {
    max-width: 100%;
    max-height: 120px;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.footer-top-banner {
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 15, 35, 0.9);
}

.footer-top-slot {
    flex: 0 0 auto;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-top-banner .banner-slot {
    background: rgba(8, 12, 30, 0.9);
}

.footer-top-slot img {
    max-width: 100%;
    height: auto;
    max-height: 110px;
}

.avatar-thumb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.4);
    background: rgba(4, 6, 18, 0.95);
    flex-shrink: 0;
}

.avatar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid rgba(168, 85, 247, 0.45);
    padding: 4px;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.45));
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.35);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #050a1f;
}

.profile-bio {
    font-style: italic;
    color: var(--text-muted);
}

.xp-tier {
    position: relative;
    --tier-color: var(--text-dark);
    --tier-glow: rgba(148, 163, 184, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--tier-color);
    text-shadow: 0 0 12px var(--tier-glow);
    background: rgba(4, 7, 18, 0.75);
    border: 1px solid rgba(226, 232, 255, 0.08);
    isolation: isolate;
    z-index: 0;
}

.xp-tier::before,
.xp-tier::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.xp-tier::before {
    inset: -0.2rem;
    border-radius: 999px;
    background: radial-gradient(circle, var(--tier-glow), transparent 70%);
    opacity: 0.6;
    filter: blur(6px);
    animation: tierPulse 3.5s ease-in-out infinite;
    z-index: -1;
}

.xp-tier::after {
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tier-color);
    box-shadow:
        0 -16px 0 var(--tier-color),
        12px 8px 0 rgba(255, 255, 255, 0.25),
        -14px 6px 0 rgba(255, 255, 255, 0.35);
    opacity: 0.85;
    filter: blur(0.2px);
    transform-origin: center;
    animation: tierOrbit 4.5s linear infinite;
    mix-blend-mode: screen;
}

@keyframes tierOrbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) rotate(360deg); opacity: 0.85; }
}

.verified-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 0.35rem;
    vertical-align: middle;
    background: url('../img/icon-trusted.svg') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.4));
}

.burn-alert {
    border-left: 4px solid var(--accent-color);
    background: rgba(244, 114, 182, 0.18);
    box-shadow: inset 0 0 12px rgba(244, 114, 182, 0.3);
}

.table {
    background: var(--surface);
}
@keyframes tierPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.xp-tier-basic {
    --tier-color: #a0b7d9;
    --tier-glow: rgba(160, 183, 217, 0.35);
}

.xp-tier-blue {
    --tier-color: #22d3ee;
    --tier-glow: rgba(34, 211, 238, 0.55);
}

.xp-tier-gold {
    --tier-color: #facc15;
    --tier-glow: rgba(250, 204, 21, 0.55);
}

.xp-tier-red {
    --tier-color: #fb7185;
    --tier-glow: rgba(251, 113, 133, 0.6);
}

.xp-tier-legend {
    --tier-color: #f472b6;
    --tier-glow: rgba(244, 114, 182, 0.7);
}
