/* ========================================
   BOOTSTRAP 5 CUSTOM STYLES FOR DECK DOCTOR
   ======================================== */

/* Root Variables - Bootstrap Compatible */
:root {
    --bs-primary: #00D9A3;
    --bs-primary-rgb: 0, 217, 163;
    --primary-color: #00D9A3;
    --primary-dark: #00B386;
    --primary-light: #00FFB8;
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-tertiary: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;
    --border-color: #2A2A2A;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-orange: #F59E0B;
    --accent-red: #EF4444;
    --accent-green: #10B981;
    --accent-yellow: #FBBF24;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Bootstrap Navbar Overrides */
.bg-dark-custom {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.bg-light-custom {
    background: var(--bg-secondary) !important;
}

.navbar-dark .navbar-brand {
    color: var(--text-primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
}

@media (max-width: 991px) {
    .navbar-dark .navbar-nav .nav-link.active::after {
        left: 1rem;
        transform: none;
        width: 3px;
        height: 100%;
        bottom: auto;
        top: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

/* Bootstrap Button Overrides */
.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--bg-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 163, 0.3) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-color) !important;
    color: var(--bg-primary) !important;
    border-color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -250px;
    right: -250px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Terminal Window */
.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close-dot { background: #FF5F57; }
.btn-minimize-dot { background: #FFBD2E; }
.btn-maximize-dot { background: #28C840; }

.terminal-title {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Monaco', monospace;
}

.terminal-body {
    padding: 24px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.terminal-line.success {
    color: var(--accent-green);
    font-weight: 600;
}

.prompt {
    color: var(--primary-color);
}

.icon {
    margin-right: 8px;
}

.muted {
    color: var(--text-muted);
}

.kong-art {
    color: var(--accent-green);
    font-size: 11px;
    line-height: 1.2;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Footer */
.footer {
    background: var(--bg-secondary) !important;
}

.footer .hover-link {
    transition: color 0.2s ease;
}

.footer .hover-link:hover {
    color: var(--primary-color) !important;
}

/** Features */
.features {
    background: var(--bg-secondary);
}

.feature-card {
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 163, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/** Sections */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tool Page Styles */
.tool-page-wrapper {
    --header-height: 70px;
    overflow-x: hidden;
    max-width: 100vw;
}

.tool-page-wrapper .app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    max-width: 100vw;
}

.tool-toolbar {
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
    margin-top: 70px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.deck-version-dropdown {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    min-width: 150px;
}

.deck-version-dropdown:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 217, 163, 0.25) !important;
}

.deck-links {
    display: flex;
    gap: 16px;
}

.deck-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.deck-link:hover {
    color: var(--primary-color);
}

.deck-link svg {
    width: 16px;
    height: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.file-icon {
    font-size: 18px;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.editor {
    flex: 1;
    min-height: 0;
}

/* Resizer */
.resizer {
    background: var(--border-color);
    cursor: row-resize;
    flex-shrink: 0;
}

.resizer.horizontal {
    width: 4px;
    cursor: col-resize;
}

.resizer:not(.horizontal) {
    height: 4px;
}

.resizer:hover {
    background: var(--primary-color);
}

/* Output Section */
.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-color);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.output-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.output-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    background: var(--bg-primary);
}

.output-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
}

.output-line.error-line {
    color: var(--accent-red);
    font-weight: 500;
}

.output-line.warning-line {
    color: var(--accent-yellow);
}

.output-line.info-line {
    color: var(--accent-blue);
}

.output-line.success-line {
    color: var(--accent-green);
    font-weight: 500;
}

/* Result Stats */
.result-stats {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Rules Panel */
.btn-rules {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #0A0A0A;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rules:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-rules svg {
    width: 18px;
    height: 18px;
}

.rules-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rules-panel-overlay.active {
    display: flex;
}

.rules-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rules-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.rules-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-panel {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-close-panel:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-close-panel svg {
    width: 20px;
    height: 20px;
}

.rules-panel-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.rules-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

.category-header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.category-rules {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    line-height: 1.4;
}

.rule-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.rule-item:active {
    background: var(--bg-primary);
}

/* 404 Page Styles */
.error-404 {
    font-size: 2rem;
    font-weight: bold;
}

.error-text-large {
    font-size: 1.2rem;
    font-weight: bold;
}

.error-heading {
    display: inline-block;
}

.error-subtext {
    display: inline-block;
}

/* Mobile Tabs - Hidden on Desktop */
.mobile-tabs {
    display: none;
}

.mobile-action-bar {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Show mobile tabs */
    .mobile-tabs {
        display: flex;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        gap: 0;
        position: sticky;
        top: 130px;
        z-index: 100;
    }

    .mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 12px 8px;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--text-secondary);
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
    }

    .mobile-tab i {
        font-size: 20px;
    }

    .mobile-tab.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        background: rgba(0, 217, 163, 0.05);
    }

    .tab-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background: var(--accent-red);
        color: white;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        display: none;
    }

    .tab-badge.show {
        display: block;
    }

    /* Show mobile action bar */
    .mobile-action-bar {
        display: flex;
        gap: 12px;
        padding: 12px;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        position: sticky;
        bottom: 0;
        z-index: 100;
    }

    .mobile-action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .mobile-action-btn.primary {
        background: var(--primary-color);
        color: var(--bg-primary);
    }

    .mobile-action-btn.primary:active {
        background: var(--primary-dark);
        transform: scale(0.98);
    }

    .mobile-action-btn.secondary {
        background: var(--bg-tertiary);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

    .mobile-action-btn.secondary:active {
        background: var(--bg-primary);
        transform: scale(0.98);
    }

    /* Tab-based panel visibility */
    .main-content {
        flex-direction: column;
        overflow-x: hidden;
    }

    /* Hide all panels by default on mobile */
    [data-mobile-panel] {
        display: none !important;
    }

    /* Show active panel based on active tab */
    body.mobile-tab-config [data-mobile-panel="config-rules"] {
        display: flex !important;
    }

    body.mobile-tab-config [data-mobile-panel="config"] {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    body.mobile-tab-rules [data-mobile-panel="config-rules"] {
        display: flex !important;
    }

    body.mobile-tab-rules [data-mobile-panel="rules"] {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    body.mobile-tab-output [data-mobile-panel="output"] {
        display: flex !important;
    }

    /* Hide vertical resizer on mobile */
    body.mobile-tab-config .resizer:not(.horizontal),
    body.mobile-tab-rules .resizer:not(.horizontal) {
        display: none !important;
    }

    /* Hide horizontal resizer on mobile */
    .resizer.horizontal {
        display: none !important;
    }

    .editor-section {
        flex: 1;
        max-width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    /* Editor height styling - only for visible editors */
    body.mobile-tab-config [data-mobile-panel="config"] .editor,
    body.mobile-tab-rules [data-mobile-panel="rules"] .editor {
        flex: 1;
        min-height: 0;
    }

    .output-section {
        border-left: none;
        border-top: none;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }


    .tool-toolbar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 12px;
    }

    .toolbar-left {
        width: 100%;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Hide button text on mobile, keep icon */
    .btn-rules .btn-text {
        display: none;
    }

    /* Make rules button icon-only on mobile */
    .btn-rules {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .terminal-window {
        font-size: 12px;
    }
    
    .terminal-body {
        padding: 16px;
    }
    
    .error-404 {
        font-size: 1.5rem;
    }
    
    .error-text-large {
        font-size: 1rem;
    }
    
    .kong-art {
        font-size: 10px;
    }
    
    .rules-panel {
        width: 95%;
        max-height: 90vh;
    }
    
    .rules-panel-header {
        padding: 16px;
    }
    
    .rules-panel-content {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .tool-title {
        font-size: 1rem;
    }
    
    .deck-version-dropdown {
        min-width: 120px;
        font-size: 12px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

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

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

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

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

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

button,
a,
.btn {
    transition-property: all;
    transition-duration: 0.2s;
}

/* ========================================
   GATEWAY GUY BRANDING
   ======================================== */

.powered-by-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.powered-by-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.powered-by-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gateway-guy-logo {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.powered-by-link:hover .gateway-guy-logo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gateway-guy-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gateway-guy-logo-mobile {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .nav-item:has(.gateway-guy-logo-mobile) .nav-link {
        padding: 0.75rem 1rem;
    }

    .nav-item:has(.gateway-guy-logo-mobile) .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}

/* How It Works */
.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    background: rgba(0, 217, 163, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.step-visual {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 300px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.cta-note {
    color: var(--text-muted);
    font-size: 14px;
}

/* Home Page Rules Section */
.rule-item.rule-inactive .rule-icon {
    color: #6c757d;
}

.rule-item.rule-inactive .rule-name {
    font-weight: 500;
}
