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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-sidebar: #050505;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #10b981;
    --danger: #ef4444;
    --border: #1f2937;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --grid-line: hsl(0 0% 95% / 0.15);
}

body {
    font-family: "SF Pro Text", "SF Pro Icons", "AOS Icons", "Helvetica Neue", Helvetica, Arial, sans-serif, system-ui;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grid Background */
body::before {
    content: "";
    height: 100vh;
    width: 100vw;
    position: fixed;
    background:
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px 10vmin) 0 -5vmin / 10vmin 10vmin,
        linear-gradient(var(--grid-line) 1px, transparent 1px 10vmin) 0 -5vmin / 10vmin 10vmin;
    mask: linear-gradient(-15deg, transparent 30%, white);
    top: 0;
    z-index: -1;
}

.app-container { 
    display: flex; 
    min-height: 100vh; 
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    pointer-events: none;
}

.sidebar-header { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    margin-bottom: 2rem; 
    padding-bottom: 1rem; 
    border-bottom: 1px solid var(--border); 
    flex-direction: column;
    text-align: center;
}

.logo { 
    width: 60px; 
    height: 60px; 
    border-radius: 12px; 
    overflow: hidden; 
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

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

.development-status {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-title { 
    font-size: 0.875rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--text-secondary); 
    margin-bottom: 1rem; 
}

.nav-item { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.75rem 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: var(--transition); 
    margin-bottom: 0.5rem; 
    color: var(--text-secondary); 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.nav-item:hover { 
    background: rgba(99, 102, 241, 0.1); 
    color: var(--text-primary); 
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.nav-item.active { 
    background: rgba(99, 102, 241, 0.2); 
    color: var(--primary); 
    border-left: 3px solid var(--primary); 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.nav-icon { 
    width: 20px; 
    height: 20px; 
    opacity: 0.8; 
}

.sidebar-footer { 
    text-align: center; 
    padding-top: 1rem; 
    border-top: 1px solid var(--border); 
    color: var(--text-secondary); 
    font-size: 0.875rem; 
}

.sidebar-footer a { 
    color: #ffffff; 
    text-decoration: none; 
    transition: var(--transition);
}

.sidebar-footer a:hover { 
    text-decoration: underline; 
    color: var(--accent);
}

.countdown-timer {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.countdown-timer h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.timer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timer-item {
    text-align: center;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timer-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.button-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-direction: column;
}

/* Main Content Styles */
.main-content { 
    flex: 1; 
    padding: 2rem; 
    overflow-y: auto; 
    position: relative;
}

.page-title { 
    font-size: 2.5rem; 
    font-weight: 800; 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.page { 
    display: none; 
}

.page.active { 
    display: block; 
    animation: fadeIn 0.5s ease-out; 
}

/* Interactive Code Reveal Section */
.code-reveal-section {
    display: grid;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.code-reveal-section p {
    margin: 0;
    font-size: 1.5rem;
    color: hsl(0 0% 40%);
    text-align: center;
    background: linear-gradient(hsl(0 0% 80%), hsl(0 0% 50%));
    color: transparent;
    background-clip: text;
    font-weight: 600;
}

.code {
    font-size: 2.5rem;
    display: flex;
    flex-wrap: nowrap;
    color: hsl(0 0% 100%);
    border-radius: 1rem;
    background: hsl(0 0% 6%);
    justify-content: center;
    box-shadow: 0 1px hsl(0 0% 100% / 0.25) inset, 0 8px 25px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
}

.code:hover {
    cursor: grab;
}

.digit {
    display: flex;
    height: 100%;
    padding: 3rem 1rem;
    transition: all 0.3s ease;
}

.digit:focus-visible {
    outline-color: hsl(0 0% 50% / 0.25);
    outline-offset: 1rem;
}

.digit span {
    scale: calc(var(--active, 0) + 0.5);
    filter: blur(calc((1 - var(--active, 0)) * 1rem));
    transition: scale calc(((1 - var(--active, 0)) + 0.2) * 1s), filter calc(((1 - var(--active, 0)) + 0.2) * 1s);
}

ul {
    padding: 0;
    margin: 0;
}

.digit:first-of-type {
    padding-left: 3rem;
}
.digit:last-of-type {
    padding-right: 3rem;
}

:root {
    --lerp-0: 1;
    --lerp-1: calc(sin(50deg));
    --lerp-2: calc(sin(45deg));
    --lerp-3: calc(sin(35deg));
    --lerp-4: calc(sin(25deg));
    --lerp-5: calc(sin(15deg));
}

.digit:is(:hover, :focus-visible) {
    --active: var(--lerp-0);
}
.digit:is(:hover, :focus-visible) + .digit,
.digit:has(+ .digit:is(:hover, :focus-visible)) {
    --active: var(--lerp-1);
}
.digit:is(:hover, :focus-visible) + .digit + .digit,
.digit:has(+ .digit + .digit:is(:hover, :focus-visible)) {
    --active: var(--lerp-2);
}
.digit:is(:hover, :focus-visible) + .digit + .digit + .digit,
.digit:has(+ .digit + .digit + .digit:is(:hover, :focus-visible)) {
    --active: var(--lerp-3);
}
.digit:is(:hover, :focus-visible) + .digit + .digit + .digit + .digit,
.digit:has(+ .digit + .digit + .digit + .digit:is(:hover, :focus-visible)) {
    --active: var(--lerp-4);
}
.digit:is(:hover, :focus-visible) + .digit + .digit + .digit + .digit + .digit,
.digit:has(+ .digit + .digit + .digit + .digit + .digit:is(:hover, :focus-visible)) {
    --active: var(--lerp-5);
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
    color: var(--text-primary); 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.full-width {
    grid-column: 1 / -1;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary { 
    background: rgba(255, 255, 255, 0.1); 
    color: var(--text-primary); 
    border: 1px solid var(--border); 
}

.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.15); 
    transform: translateY(-2px);
}

/* Telegram Button */
.btn-telegram {
    background: #0088cc;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
}

/* Cookie Notice */
.cookie-notice {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    border: 1px solid var(--border);
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Grid Layout */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    margin: 2% auto;
    padding: 20px;
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--primary);
}

.form-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    background: white;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: var(--transition);
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 0.5rem;
    border-radius: 4px;
}

.feature-list li:before {
    content: "›";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Financial Grid */
.financial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.financial-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.gantt-table, .data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.gantt-table th, .data-table th {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.gantt-table td, .data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    background: rgba(255, 255, 255, 0.02);
}

.gantt-table tr:hover, .data-table tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Gantt Bars */
.gantt-bar {
    height: 20px;
    border-radius: 4px;
    margin: 3px 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gantt-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-in-progress {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.status-pending {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.metric-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Survey Preferences */
.preferences-list {
    margin-top: 1rem;
}

.preference-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.preference-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.preference-label {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.preference-bar {
    flex: 2;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preference-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preference-item:hover .preference-bar::before {
    opacity: 1;
}

.preference-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.preference-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.preference-value {
    width: 50px;
    text-align: right;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Solution Stats */
.solution-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.solution-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.solution-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* JTBD Items */
.jtbd-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.jtbd-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.jtbd-item:hover::before {
    left: 100%;
}

.jtbd-item:last-child {
    margin-bottom: 0;
}

.jtbd-item strong {
    color: var(--primary);
    font-weight: 600;
}

.jtbd-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateX(5px);
}

/* Enhanced Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
}

.animate-glow {
    animation: pulse-glow 2s infinite;
}

/* Task Colors */
.task-planning { background: #4CAF50; box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4); }
.task-development { background: #2196F3; box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4); }
.task-testing { background: #FF9800; box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4); }
.task-documentation { background: #9C27B0; box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4); }
.task-security { background: #F44336; box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4); }
.task-deployment { background: #607D8B; box-shadow: 0 2px 8px rgba(96, 125, 139, 0.4); }

/* Gantt Legend */
.gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Market Analysis */
.market-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.market-segment {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.market-segment::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.market-segment:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.segment-value {
    font-weight: bold;
    font-size: 1.2rem;
}

.tam-color .segment-value { color: #6366f1; text-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
.sam-color .segment-value { color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.som-color .segment-value { color: #8b5cf6; text-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }

.tam-color { border-left: 4px solid #6366f1; }
.sam-color { border-left: 4px solid #10b981; }
.som-color { border-left: 4px solid #8b5cf6; }

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .app-container { 
        flex-direction: column; 
    }
    
    .sidebar { 
        width: 100%; 
        padding: 1rem;
    }
    
    .main-content { 
        padding: 1rem; 
    }
    
    .grid { 
        grid-template-columns: 1fr; 
    }
    
    .financial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gantt-timeline {
        grid-template-columns: 1fr;
    }
    
    .market-analysis {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 98%;
        padding: 15px;
    }
    
    .form-frame {
        height: 500px;
    }
    
    .timer {
        flex-direction: column;
        gap: 5px;
    }
    
    .gantt-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .code {
        font-size: 2rem;
    }
    
    .digit {
        padding: 2rem 0.5rem;
    }
    
    .digit:first-of-type {
        padding-left: 1.5rem;
    }
    
    .digit:last-of-type {
        padding-right: 1.5rem;
    }
    
    .code-reveal-section p {
        font-size: 1.25rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-stats {
        grid-template-columns: 1fr;
    }
    
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .preference-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.2rem;
    }
    
    .code {
        font-size: 1.5rem;
    }
    
    .digit {
        padding: 1.5rem 0.25rem;
    }
}

/* Print Optimizations */
@media print {
    .btn-telegram,
    .cookie-notice,
    .status-badge,
    .code-reveal-section {
        display: none;
    }
    
    .table-container {
        overflow: visible;
    }
    
    body::before {
        display: none;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection Styling */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Focus Outline */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
    