:root {
    /* Advanced Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 25, 0.7);
    --border-light: rgba(255, 255, 255, 0.08);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --accent: #00f2fe;
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    border-radius: 50%;
    animation: drift 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Live Ticker */
.live-ticker {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scrollTicker 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ticker-item .highlight {
    color: var(--success);
    font-weight: 600;
}

@keyframes scrollTicker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo i {
    color: var(--primary);
    margin-right: 5px;
}

.logo span {
    color: var(--accent);
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.view {
    display: none;
    animation: fadeUp 0.4s ease forwards;
}

.view.active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Dashboard Specifics */
.hero-text {
    text-align: center;
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-text p {
    color: var(--text-secondary);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.grid-container {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.grid-container.active {
    display: grid;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-card {
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Reviews Section */
.reviews-section {
    padding: 25px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.stars {
    color: var(--warning);
    margin-left: 5px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.review-time {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Config View */
.config-card {
    max-width: 500px;
    margin: 0 auto;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: white;
}

.service-header {
    text-align: center;
    margin-bottom: 30px;
}

.service-header i {
    font-size: 48px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

input[type="text"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 16px 16px 45px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.device-selector {
    display: flex;
    gap: 10px;
}

.device-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.device-btn i {
    font-size: 20px;
}

.device-btn.active {
    background: rgba(79, 70, 229, 0.2);
    border-color: var(--primary);
    color: white;
}

/* Custom Range Slider */
.slider-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 5px;
    outline: none;
    margin-bottom: 20px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.active-label {
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

.primary-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
}

.glow-btn:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Terminal View */
.terminal-card {
    max-width: 600px;
    margin: 0 auto;
}

.processing-header {
    text-align: center;
    margin-bottom: 25px;
}

.tech-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px auto;
}

.terminal-window {
    background: #000;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 20px;
}

.terminal-header {
    background: #1e1e1e;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title-bar {
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: 'Fira Code', monospace;
}

.terminal-body {
    padding: 15px;
    height: 200px;
    overflow-y: hidden;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.t-line { color: var(--text-secondary); margin-bottom: 4px; }
.t-info { color: #3b82f6; }
.t-success { color: var(--success); }
.t-warn { color: var(--warning); }
.t-error { color: var(--danger); }

.tech-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tech-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    color: var(--text-secondary);
}

/* Verification View */
.verification-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.shield-container {
    margin-bottom: 20px;
}

.shield-icon {
    font-size: 60px;
    color: var(--danger);
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4));
}

.verification-card h2 {
    color: var(--danger);
    margin-bottom: 15px;
}

.verification-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.receipt {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.receipt-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.text-white { color: white; }
.text-green { color: var(--success); font-weight: bold; }
.text-yellow { color: var(--warning); }

.countdown-msg {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

#timer {
    color: var(--warning);
    font-weight: bold;
    font-family: 'Fira Code', monospace;
}

/* Utilities */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 600px) {
    .tabs { flex-direction: column; }
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .service-card { padding: 15px 10px; }
    .card-icon { font-size: 32px; }
    .service-card h3 { font-size: 14px; }
}
