/* =============================================
   ROBLOX SECURITY MANAGER - STYLESHEET
   Modern Dark Theme with Glassmorphism
   ============================================= */

/* =============================================
   CSS VARIABLES - DARK & LIGHT THEMES
   ============================================= */

:root {
    /* Dark Theme (Default) */
    --bg-gradient-start: #0f0f23;
    --bg-gradient-mid: #1a1a2e;
    --bg-gradient-end: #16213e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --container-bg: rgba(255, 255, 255, 0.05);
    --container-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.3);
    --input-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(99, 102, 241, 0.15);
}

body.light-mode {
    /* Light Theme */
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-mid: #e2e8f0;
    --bg-gradient-end: #cbd5e1;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --container-bg: rgba(255, 255, 255, 0.8);
    --container-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --glow-color: rgba(99, 102, 241, 0.08);
}

/* =============================================
   BASE STYLES
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

/* =============================================
   ANIMATED BACKGROUND
   ============================================= */

body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 25s infinite ease-in-out reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--container-bg);
    border: 2px solid var(--container-border);
    backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
    animation: rotateIn 0.3s ease;
}

.theme-toggle .moon-icon {
    display: block;
    animation: rotateIn 0.3s ease;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* =============================================
   CONTAINER & LAYOUT
   ============================================= */

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* =============================================
   CARD COMPONENT
   ============================================= */

.card {
    background: var(--container-bg);
    border: 1px solid var(--container-border);
    border-radius: 20px;
    padding: 45px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #8b5cf6, #6366f1);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   SECTION STYLES
   ============================================= */

.section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #a0a0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .section-header h2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   HELP ICON
   ============================================= */

.help-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: help;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.help-icon.cookie-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
}

.help-icon.cookie-icon svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.help-icon.cookie-icon:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.4));
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
}

body.light-mode .help-icon {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #1a1a2e;
}

body.light-mode .help-icon:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

body.light-mode .help-icon.cookie-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.light-mode .help-icon.cookie-icon svg {
    color: #6366f1;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

body.light-mode .help-icon.cookie-icon:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

/* =============================================
   ACTION BUTTON
   ============================================= */

.action-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'%3E%3C/polyline%3E%3Cpolyline points='1 20 1 14 7 14'%3E%3C/polyline%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.action-btn:focus {
    outline: none;
}

.action-btn[data-mode="age"] {
    border-left: 4px solid #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.action-btn[data-mode="ip"] {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
    opacity: 0.7;
}

.action-btn[data-mode="ip"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
    animation: none;
}

/* Light Mode - Action Button */
body.light-mode .action-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

body.light-mode .action-btn::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'%3E%3C/polyline%3E%3Cpolyline points='1 20 1 14 7 14'%3E%3C/polyline%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'%3E%3C/path%3E%3C/svg%3E");
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.3));
}

body.light-mode .action-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

body.light-mode .action-btn[data-mode="age"] {
    border-left: 4px solid #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

body.light-mode .action-btn[data-mode="ip"] {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

body.light-mode .action-btn[data-mode="ip"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

/* =============================================
   TEXTAREA
   ============================================= */

textarea {
    width: 100%;
    padding: 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    resize: none;
    min-height: 200px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px var(--shadow-color);
}

textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

textarea::placeholder {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.5;
}

textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1),
                inset 0 2px 10px var(--shadow-color);
}

/* Custom Scrollbar */
textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

/* =============================================
   SUBMIT BUTTON
   ============================================= */

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #6a6a6a 0%, #4a4a4a 100%);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f0f0ff 0%, #d0d0ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.submit-btn:hover svg {
    transform: translateX(6px);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:focus {
    outline: none;
}

/* Loading State */
.submit-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.submit-btn.loading svg {
    display: none;
}

.submit-btn.loading span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn.loading span::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loading-shimmer {
    to { left: 100%; }
}

/* Light Mode - Submit Button */
body.light-mode .submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

body.light-mode .submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 35px rgba(99, 102, 241, 0.5);
}

body.light-mode .submit-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #ffffff;
}

body.light-mode .submit-btn.loading {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* =============================================
   RESPONSE CARD
   ============================================= */

.response-card {
    margin-top: 35px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
    position: relative;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.response-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

.response-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.response-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
    font-family: 'Courier New', monospace;
    white-space: pre-line;
}

.response-content a {
    transition: all 0.3s ease;
}

.response-content a:hover {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.2) !important;
    transform: scale(1.02);
}

/* Light Mode - Response Card */
body.light-mode .response-card {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.2);
}

body.light-mode .response-card h3 {
    color: #1a1a2e;
}

body.light-mode .response-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #1a1a2e;
}

/* =============================================
   LOADING OVERLAY
   ============================================= */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    animation: fadeInOverlay 0.3s ease;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    position: relative;
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #6366f1;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #ec4899;
    animation-duration: 2s;
    width: 60px;
    height: 60px;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #8b5cf6;
    animation-duration: 2.5s;
    width: 40px;
    height: 40px;
}

.loading-text {
    margin-top: 120px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Light Mode - Loading Overlay */
body.light-mode .loading-overlay {
    background: rgba(240, 244, 248, 0.95);
}

body.light-mode .loading-text {
    color: #1a1a2e;
}

/* =============================================
   CUSTOM ALERT
   ============================================= */

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease;
}

.custom-alert-overlay.show {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-alert {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(99, 102, 241, 0.2);
    position: relative;
    animation: slideInAlert 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #8b5cf6, #6366f1);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 20px 20px 0 0;
}

.alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}

.alert-icon svg {
    width: 45px;
    height: 45px;
}

.alert-icon #alertIconError {
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.alert-icon #alertIconSuccess {
    color: #10b981;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.alert-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.4);
}

.alert-icon.success {
    animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

.alert-content {
    margin-bottom: 30px;
}

.alert-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    white-space: pre-line;
}

.alert-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-btn:hover {
    background: linear-gradient(135deg, #f0f0ff 0%, #d0d0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.alert-btn:active {
    transform: translateY(0);
}

/* Light Mode - Custom Alert */
body.light-mode .custom-alert-overlay {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

body.light-mode .custom-alert {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 248, 0.98));
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 100px rgba(99, 102, 241, 0.15);
}

body.light-mode .alert-content h3 {
    color: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .alert-content p {
    color: rgba(26, 26, 46, 0.85);
}

body.light-mode .alert-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

body.light-mode .alert-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    body {
        padding: 25px 15px;
    }

    .card {
        padding: 30px;
        border-radius: 16px;
    }

    .response-card {
        padding: 25px;
    }

    textarea {
        min-height: 180px;
        font-size: 13px;
        padding: 16px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 18px;
    }

    .action-btn {
        padding: 16px;
        font-size: 14px;
    }

    .custom-alert {
        padding: 30px;
        max-width: 90%;
    }

    .alert-icon {
        width: 70px;
        height: 70px;
    }

    .alert-icon svg {
        width: 40px;
        height: 40px;
    }

    .alert-content h3 {
        font-size: 20px;
    }

    .alert-content p {
        font-size: 15px;
    }

    .spinner-ring {
        width: 60px;
        height: 60px;
    }

    .spinner-ring:nth-child(2) {
        width: 45px;
        height: 45px;
    }

    .spinner-ring:nth-child(3) {
        width: 30px;
        height: 30px;
    }

    .loading-text {
        margin-top: 100px;
        font-size: 14px;
    }
}

/* =============================================
   DISCORD INVITE MODAL
   ============================================= */

.discord-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeInOverlay 0.3s ease;
}

.discord-modal-overlay.show {
    display: flex;
}

.discord-modal {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 45px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(88, 101, 242, 0.5),
                0 0 120px rgba(88, 101, 242, 0.3);
    position: relative;
    animation: discordSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    overflow: hidden;
}

@keyframes discordSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0);
    }
}

.discord-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: discordRotate 20s linear infinite;
}

@keyframes discordRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.discord-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: discordBounce 2s infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

@keyframes discordBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.discord-icon svg {
    width: 60px;
    height: 60px;
    color: #5865F2;
    filter: drop-shadow(0 2px 8px rgba(88, 101, 242, 0.3));
}

.discord-modal h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.discord-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Discord Stats */
.discord-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value.online {
    color: #43b581;
    text-shadow: 0 0 20px rgba(67, 181, 129, 0.5);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.7);
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.discord-features {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.feature {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.feature span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.discord-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.discord-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-discord {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cancel-discord:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.join-discord {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0ff 100%);
    color: #5865F2;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.join-discord svg {
    width: 18px;
    height: 18px;
    stroke: #5865F2;
}

.join-discord:hover {
    background: linear-gradient(135deg, #f5f5ff 0%, #e5e5ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.join-discord:active {
    transform: translateY(-1px);
}

/* Light Mode - Discord Modal */
body.light-mode .discord-modal-overlay {
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .discord-modal {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 80px rgba(88, 101, 242, 0.4),
                0 0 120px rgba(88, 101, 242, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .discord-modal {
        padding: 35px 25px;
        max-width: 90%;
    }

    .discord-icon {
        width: 80px;
        height: 80px;
    }

    .discord-icon svg {
        width: 50px;
        height: 50px;
    }

    .discord-modal h2 {
        font-size: 22px;
    }

    .discord-description {
        font-size: 14px;
    }

    .discord-stats {
        gap: 15px;
        padding: 15px;
    }

    .stat-value {
        font-size: 26px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-divider {
        height: 40px;
    }

    .discord-features {
        flex-direction: column;
        gap: 10px;
    }

    .feature {
        flex-direction: row;
        justify-content: center;
        padding: 12px;
    }

    .discord-actions {
        flex-direction: column;
    }

    .discord-btn {
        width: 100%;
    }
}

/* =============================================
   SPLUNK SETUP BANNER & MODAL
   ============================================= */

.splunk-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    font-size: 24px;
}

.banner-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.banner-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Splunk Modal */
.splunk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInOverlay 0.3s ease;
}

.splunk-modal-overlay.show {
    display: flex;
}

.splunk-modal {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(59, 130, 246, 0.2);
    animation: slideInAlert 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splunk-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.setup-steps {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.step-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.step-text a:hover {
    text-decoration: underline;
}

.cookie-inputs {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.save-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
}

.save-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Light Mode */
body.light-mode .splunk-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 248, 0.98));
    border: 2px solid rgba(59, 130, 246, 0.3);
}

body.light-mode .splunk-modal h2 {
    color: #1a1a2e;
}

body.light-mode .modal-subtitle {
    color: rgba(26, 26, 46, 0.7);
}

body.light-mode .input-group label {
    color: #1a1a2e;
}

body.light-mode .input-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1a1a2e;
}

body.light-mode .step-text {
    color: #1a1a2e;
}
