/* DDDS Cloud - Modern Design System (Zero-CDN) */
:root {
    --bg-main: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #1e293b;
    --bg-surface: #1e293b;
    --border-color: #334155;
    --border-focus: #38bdf8;
    
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-glow: rgba(2, 132, 199, 0.35);
    
    --accent-cyan: #00d2ff;
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --laser-red: #ff2a5f;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Common utility classes */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary { background: rgba(2, 132, 199, 0.2); color: var(--accent-cyan); border: 1px solid var(--primary); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.badge-danger { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); border: 1px solid var(--accent-rose); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn:active {
    transform: scale(0.97);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary));
    color: white;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, var(--primary-hover));
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
}
.btn-danger {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: white;
}
.btn-danger:hover {
    background: #be123c;
}
.btn-split {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.pin-input {
    width: 100%;
    font-size: 2rem;
    letter-spacing: 12px;
    text-align: center;
    padding: 12px;
    margin: 20px 0;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-weight: 700;
}
.pin-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px var(--primary-glow);
}

/* Laser Dot Style */
.ddds-laser-dot {
    position: fixed;
    width: 22px;
    height: 22px;
    background-color: var(--laser-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 20px 8px rgba(255, 42, 95, 0.85), 0 0 40px 15px rgba(255, 42, 95, 0.4);
    transition: opacity 0.2s ease;
}
.ddds-laser-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 42px;
    height: 42px;
    border: 2px solid var(--laser-red);
    border-radius: 50%;
    animation: laserPulse 1.2s infinite ease-out;
}
@keyframes laserPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Touchpad indicator dot */
.touch-indicator-dot {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(255, 42, 95, 0.6);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.8);
}

/* Modern Non-Blocking Toast Notification System */
#ddds-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}
.ddds-toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ddds-toast.toast-success {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.ddds-toast.toast-error {
    border-color: var(--accent-rose);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}
.ddds-toast.toast-info {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}
.ddds-toast.toast-fadeout {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

