:root {
    --bg1: #05060a;
    --bg2: #0a0c11;
    --discord: #5865F2;
    --discord-hover: #4752c4;
}

body {
    background: radial-gradient(ellipse at 50% 50%, #0d1f3c 0%, #070f1f 30%, #04090f 55%, #05060a 100%);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #e7e7ea;
}

/* Three.js canvas background */
#bubble-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(20, 100, 220, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(100, 160, 255, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.form-container {
    background: rgba(14, 18, 28, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin-bottom: 2rem;
}

.glass-card {
    background: rgba(6, 8, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Bootstrap card overrides */
.card {
    background: rgba(6, 8, 14, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #e7e7ea !important;
}

.card-header {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #e7e7ea !important;
}

.card-footer {
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #e7e7ea !important;
}

.card-body {
    color: #e7e7ea !important;
}

.create-button {
    background: rgba(0, 100, 220, 0.65);
    color: #fff;
    border: 1px solid rgba(80, 140, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    width: 100%;
}

.create-button:hover {
    background: rgba(0, 80, 190, 0.78);
    border-color: rgba(80, 140, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Bootstrap btn-primary override */
.btn-primary {
    background: rgba(0, 100, 220, 0.65) !important;
    border: 1px solid rgba(80, 140, 255, 0.3) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: rgba(0, 80, 190, 0.78) !important;
    border-color: rgba(80, 140, 255, 0.5) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.btn-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(80, 140, 255, 0.25) !important;
}

.delete-button {
    background: rgba(180, 20, 20, 0.62);
    color: #fff;
    border: 1px solid rgba(255, 80, 80, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    width: 100%;
}

.delete-button:hover {
    background: rgba(150, 10, 10, 0.75);
    border-color: rgba(255, 80, 80, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.form-label {
    font-weight: bold;
}

.subtitle {
    color: #9aa4b2;
}

.error-title {
    color: #ff5f5f;
}

.btn-discord {
    background-color: var(--discord);
    border-color: var(--discord);
    color: white;
    transition: all 0.2s;
}

.btn-discord:hover {
    background-color: var(--discord-hover);
    border-color: var(--discord-hover);
    color: white;
    transform: translateY(-1px);
}

/* Landing Page Specifics */
.index-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #9aa4b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.landing-subtitle {
    font-size: 1.2rem;
    color: #9aa4b2;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn-discord-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-discord-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* Gateway Page Specifics */
.turnstile-wrap {
    display: flex;
    justify-content: center;
}

.spinner-grow {
    width: 1rem;
    height: 1rem;
}

/* SweetAlert2 Custom Styling */
.swal2-popup {
    background: rgba(20, 22, 28, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    color: #e7e7ea !important;
}

.swal2-title, .swal2-html-container {
    color: #e7e7ea !important;
}

.swal2-confirm {
    background-color: #007BFF !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.8rem !important;
}

.swal2-confirm:hover {
    background-color: #0056b3 !important;
}

.swal2-cancel {
    background-color: #343a40 !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.8rem !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(165, 220, 134, .3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ff5f5f !important;
    color: #ff5f5f !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ff5f5f !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 6, 10, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(80, 140, 255, 0.5) 0%,
        rgba(40, 80, 200, 0.35) 100%
    );
    border-radius: 999px;
    border: 1px solid rgba(100, 160, 255, 0.2);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(100, 160, 255, 0.75) 0%,
        rgba(60, 100, 220, 0.55) 100%
    );
    border-color: rgba(100, 160, 255, 0.4);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 140, 255, 0.45) rgba(5, 6, 10, 0.6);
}