/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

:root {
    --bg-base: #080c14;
    --bg-surface: #0f1626;
    --bg-surface-elevated: #182238;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    /* Neon gradients */
    --grad-purple: linear-gradient(135deg, #8b5cf6, #c084fc);
    --grad-blue: linear-gradient(135deg, #2563eb, #38bdf8);
    --grad-emerald: linear-gradient(135deg, #059669, #34d399);
    --grad-red: linear-gradient(135deg, #dc2626, #f87171);
    --grad-yellow: linear-gradient(135deg, #d97706, #fbbf24);
    --grad-indigo: linear-gradient(135deg, #4f46e5, #818cf8);
    --grad-dark: linear-gradient(135deg, #111827, #1f2937);

    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
    transform: rotate(5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: -3px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background-color: var(--bg-surface-elevated);
    border-color: var(--border-color);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--bg-surface-elevated) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 3px solid var(--accent);
}

.slogan-box {
    background: linear-gradient(135deg, rgba(15, 22, 38, 0.8) 0%, rgba(24, 34, 56, 0.8) 100%);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 14px;
    margin-top: auto;
}

.slogan-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-accent {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.dev-attribution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.dev-attribution i {
    color: #a78bfa;
    font-size: 0.75rem;
}

.dev-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dev-link:hover {
    color: var(--accent-hover);
}

/* Main Content Area Styling */
.main-content {
    flex-grow: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    max-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.date-badge {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Phase Pill Selector */
.phase-selector-pills {
    display: flex;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 30px;
    gap: 0.25rem;
}

.phase-pill {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phase-pill:hover {
    color: var(--text-primary);
}

.phase-pill.active {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

/* View Sections visibility */
.view-section {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.view-section.hidden {
    display: none;
}

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

/* KPI Dashboard Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.icon-bg {
    font-size: 1.3rem;
    opacity: 0.3;
}

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.kpi-footer {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kpi-trend.positive {
    color: #34d399;
}

.kpi-trend.negative {
    color: #f87171;
}

/* Glow effects for KPI cards */
.purple-glow:hover { box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.25); }
.blue-glow:hover { box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.25); }
.red-glow:hover { box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.25); }
.emerald-glow:hover { box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.25); }

/* Dashboard Content Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.margin-top {
    margin-top: 2rem;
}

.card-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-container {
    position: relative;
    flex-grow: 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phase Info Card details */
.phase-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.section-sub-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.goals-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.goals-ul li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.goals-ul li i {
    margin-top: 2px;
}

.text-accent {
    color: var(--accent-hover);
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--grad-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-block {
    width: 100%;
}

/* Strategic position banner */
.strategic-banner {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--grad-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.banner-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.banner-content strong {
    color: var(--text-primary);
}

/* Interactive Simulator Layout */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.simulator-controls {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.control-group {
    margin-bottom: 2rem;
}

.control-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.control-label-row label {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-val-badge {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.control-helper {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Slider Customization */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    background-color: var(--bg-surface-elevated);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

/* Colors for specific sliders */
.slider-purple::-webkit-slider-thumb { background: #8b5cf6; box-shadow: 0 0 10px rgba(139, 92, 246, 0.8); }
.slider-blue::-webkit-slider-thumb { background: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.8); }
.slider-yellow::-webkit-slider-thumb { background: #eab308; box-shadow: 0 0 10px rgba(234, 179, 8, 0.8); }
.slider-red::-webkit-slider-thumb { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
.slider-emerald::-webkit-slider-thumb { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
.slider-indigo::-webkit-slider-thumb { background: #6366f1; box-shadow: 0 0 10px rgba(99, 102, 241, 0.8); }

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.disabled-control {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Simulator Outputs column */
.simulator-outputs {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
}

.calc-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.calc-sub-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 16px;
}

.calc-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calc-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.calc-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Output colors styling */
.text-purple { color: #c084fc; }
.text-blue { color: #38bdf8; }
.text-yellow { color: #fbbf24; }
.text-emerald { color: #34d399; }
.text-red { color: #f87171; }
.text-indigo { color: #818cf8; }

.expense-breakdown-card {
    background-color: rgba(220, 38, 38, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.breakdown-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.expense-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.75rem 0;
}

.total-expense-row {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.profitability-analysis {
    background-color: rgba(5, 150, 105, 0.04);
    border: 1px solid rgba(5, 150, 105, 0.15);
    padding: 1.25rem;
    border-radius: 16px;
}

.analysis-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #34d399;
    margin-bottom: 0.5rem;
}

.analysis-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* UX / Mobile Screen Simulator Layout */
.prototype-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.prototype-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.proto-step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 18px;
    display: flex;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.proto-step-card:hover {
    border-color: var(--border-color-hover);
    transform: translateX(4px);
}

.proto-step-card.active {
    background-color: var(--bg-surface-elevated);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
}

.proto-step-card.active .step-num {
    color: var(--accent-hover);
}

.step-details h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.step-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Phone Mockup Styling */
.phone-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 620px;
    background-color: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 0 4px #27272a,
                0 0 20px 2px rgba(139, 92, 246, 0.2);
    position: relative;
}

.phone-speaker {
    width: 60px;
    height: 4px;
    background-color: #27272a;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #0b0f19;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #18181b;
}

.phone-status-bar {
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 0 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 5;
}

.phone-icons {
    display: flex;
    gap: 4px;
}

.phone-app-bar {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-bar-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.welcome-text {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.user-name {
    font-size: 0.75rem;
    font-weight: 600;
}

.app-bar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
}

.phone-content {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.phone-home-indicator {
    width: 100px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Phone Inner Screens UI Components */
.phone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0.85rem;
}

.phone-card-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.phone-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.phone-mini-stat {
    display: flex;
    flex-direction: column;
}

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

.mini-stat-val {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.phone-pill-status {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 700;
}

.status-paid {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Phone Map Simulation UI */
.phone-map-container {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}

.simulated-map {
    width: 100%;
    height: 100%;
    background-color: #1e293b;
    position: relative;
    overflow: hidden;
}

.map-grid-line {
    position: absolute;
    background-color: rgba(255,255,255,0.03);
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #8b5cf6;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px #8b5cf6;
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139,92,246,0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(139,92,246,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}

.map-controls-overlay {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background-color: rgba(15, 22, 38, 0.85);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 600;
}

/* Phone AI Feed uyarısı */
.ai-notification {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.ai-icon-bubble {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    flex-shrink: 0;
}

.ai-notif-body {
    flex-grow: 1;
}

.ai-notif-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 0.15rem;
}

.ai-notif-text {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Phase 4 Super App grid */
.super-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.super-app-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.super-app-tile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.super-app-tile i {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.super-app-tile span {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Monetization matrix styles */
.revenue-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rev-matrix-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 18px;
    transition: all 0.25s ease;
}

.rev-matrix-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.12);
}

.rev-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.rev-card-header i {
    font-size: 1.25rem;
}

.rev-card-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.rev-matrix-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Comparison Table Styling */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.comparison-table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(255,255,255,0.01);
}

.comparison-table td strong {
    color: var(--text-primary);
}

.highlight-col {
    background-color: rgba(139, 92, 246, 0.03);
    border-left: 1px solid rgba(139, 92, 246, 0.15);
    border-right: 1px solid rgba(139, 92, 246, 0.15);
}

tr:last-child td {
    border-bottom: none;
}

/* Responsiveness for small screens */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .simulator-layout {
        grid-template-columns: 1fr;
    }
    .prototype-layout {
        grid-template-columns: 1fr;
    }
    .revenue-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
    }
    .main-content {
        padding: 1.5rem;
    }
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .revenue-matrix {
        grid-template-columns: 1fr;
    }
    .calc-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Risk & Security Grid */
.risk-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.security-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.25s ease;
}

.security-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
}

.security-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    background-color: var(--bg-surface-elevated);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.security-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Testimonials Layout */
.testimonials-section {
    margin-top: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.testimonial-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.author-name {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Modal Windows Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    width: 90%;
    max-width: 500px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(139, 92, 246, 0.15);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.large-modal {
    max-width: 600px;
}

.modal-overlay.hidden .modal-container {
    transform: scale(0.9);
}

.glass-modal {
    background: rgba(15, 22, 38, 0.85);
    backdrop-filter: blur(16px);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

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

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

/* Modal Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input, .form-field select {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-field input:focus, .form-field select:focus {
    border-color: var(--accent);
}

.form-success-box {
    text-align: center;
    padding: 1rem 0;
    animation: fadeIn 0.4s ease-out;
}

@media (max-width: 768px) {
    .risk-security-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
