/* ========================================
   سايبر مصر - Cyber Misr
   Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Dark Mode Colors (Default) */
    --primary: #00FF9C;
    --accent: #00BFFF;
    --background: #000000;
    --surface: #121212;
    --surface-light: #1a1a1a;
    --text-primary: #E4E4E7;
    --text-secondary: #A1A1AA;
    --border: #27272A;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows & Glows */
    --glow-primary: 0 0 20px rgba(0, 255, 156, 0.3);
    --glow-accent: 0 0 20px rgba(0, 191, 255, 0.3);

    /* Typography */
    --font-family: 'Cairo', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Safe Area */
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Light Mode */
.light-mode {
    --primary: #008F57;
    --accent: #0065D7;
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --surface-light: #F0F0F0;
    --text-primary: #18181B;
    --text-secondary: #52525B;
    --border: #D4D4D8;
    --glow-primary: 0 4px 15px rgba(0, 143, 87, 0.2);
    --glow-accent: 0 4px 15px rgba(0, 101, 215, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* Selection */
::selection {
    background: var(--primary);
    color: var(--background);
}

/* ========================================
   Splash Screen
   ======================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.cyber-logo {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 156, 0.5);
}

.splash-title {
    font-size: 42px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
}

.splash-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: loading 2.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

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

/* ========================================
   App Container
   ======================================== */
.app-container {
    min-height: 100vh;
    padding-bottom: calc(70px + var(--safe-area-bottom));
    transition: opacity 0.3s ease;
}

.app-container.hidden {
    display: none;
}

/* ========================================
   Header
   ======================================== */
.app-header {
    position: sticky;
    top: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-title i {
    color: var(--primary);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Sections
   ======================================== */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title i {
    color: var(--accent);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 15px;
}

/* ========================================
   Tools Grid
   ======================================== */
.tools-category {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: var(--space-lg) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tools-category:first-of-type {
    margin-top: 0;
}

.tools-category i {
    color: var(--accent);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.tool-card:active {
    transform: scale(0.98);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 24px;
    color: #000;
    overflow: hidden;
}

.tool-icon-img {
    background: none;
    padding: 0;
}

.tool-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.tool-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

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

/* Language Duration Badge */
.lang-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: var(--space-sm);
    padding: 4px 10px;
    background: var(--surface-light);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
}

.lang-duration i {
    font-size: 10px;
}

/* ========================================
   Home Section
   ======================================== */
.home-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.home-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.home-subtitle i {
    color: var(--primary);
}

.home-nav-card {
    cursor: pointer;
}

.roadmap-card {
    grid-column: 1 / -1;
    cursor: pointer;
}

/* Roadmap Styles */
.roadmap-phase {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.roadmap-phase-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.roadmap-phase-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.roadmap-phase-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.roadmap-phase-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.roadmap-topics {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.roadmap-topic {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.roadmap-topic h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.roadmap-topic h4 i {
    font-size: 14px;
}

.roadmap-topic p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.roadmap-topic ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-topic li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-right: 20px;
    position: relative;
}

.roadmap-topic li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--success);
    font-weight: bold;
}

.roadmap-resources {
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

.roadmap-resources h5 {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.roadmap-resources ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.roadmap-resources li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.roadmap-resources li::before {
    content: "📌 ";
}

.roadmap-tip {
    background: linear-gradient(135deg, var(--primary)11, var(--accent)11);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.roadmap-tip h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.roadmap-tip p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Attack Types Styles
   ======================================== */
.attack-category {
    margin-bottom: var(--space-xl);
}

.attack-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}

.attack-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.attack-header {
    background: var(--surface-light);
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.attack-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.attack-name-en {
    font-size: 13px;
    color: var(--accent);
    font-family: monospace;
    background: var(--surface);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.attack-body {
    padding: var(--space-md);
}

.attack-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.attack-details {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.attack-details h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    gap: 6px;
}

.attack-details h5:first-child {
    margin-top: 0;
}

.attack-details h5 i {
    color: var(--accent);
    font-size: 12px;
}

.attack-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attack-details li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    padding-right: 18px;
    position: relative;
}

.attack-details li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

.attack-details li strong {
    color: var(--text-primary);
}

.attack-example {
    background: #1a1a2e;
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    overflow-x: auto;
}

.attack-example code {
    font-family: 'Courier New', monospace;
    color: #f59e0b;
    font-size: 13px;
}

.attack-severity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
}

.attack-severity.critical {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.attack-severity.high {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.attack-severity.medium {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.attack-severity i {
    font-size: 14px;
}

/* ========================================
   Tool Details
   ======================================== */
.tool-details {
    animation: slideIn 0.3s ease;
    background: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    padding: var(--space-lg);
    padding-top: 70px;
    padding-bottom: calc(90px + var(--safe-area-bottom));
    overflow-y: auto;
}

.tool-details.hidden {
    display: none;
}

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

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-fast);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.tool-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #000;
}

.tool-header-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.tool-header-info p {
    color: var(--text-secondary);
}

.tool-section {
    margin-bottom: var(--space-xl);
}

.tool-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tool-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.tool-section ul {
    list-style: none;
    margin-bottom: var(--space-md);
}

.tool-section li {
    padding: var(--space-sm) 0;
    padding-right: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
}

.tool-section li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--primary);
}

/* ========================================
   Code Blocks
   ======================================== */
.code-block {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.light-mode .code-block {
    background: #1e1e1e;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
}

.code-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn.copied {
    border-color: var(--success);
    color: var(--success);
}

.light-mode .copy-btn {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.light-mode .copy-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.light-mode .copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.code-content {
    padding: var(--space-md);
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.code-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #E4E4E7;
    white-space: pre;
}

/* Syntax Highlighting */
.code-content .comment { color: #6A9955; }
.code-content .keyword { color: #569CD6; }
.code-content .string { color: #CE9178; }
.code-content .function { color: #DCDCAA; }
.code-content .number { color: #B5CEA8; }
.code-content .variable { color: #9CDCFE; }
.code-content .command { color: #00FF9C; }
.code-content .flag { color: #00BFFF; }

/* ========================================
   Accordion / Expandable Cards
   ======================================== */
.accordion {
    margin-bottom: var(--space-md);
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-item.active {
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    cursor: pointer;
    user-select: none;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.accordion-title .cmd-name {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.accordion-title .cmd-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.accordion-arrow {
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 var(--space-md) var(--space-md);
    border-top: 1px solid var(--border);
}

.accordion-item.active .accordion-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ========================================
   Python Lessons
   ======================================== */
.lesson-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.1), rgba(0, 191, 255, 0.1));
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.lesson-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.lesson-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.lesson-content {
    padding: var(--space-lg);
    display: none;
}

.lesson-card.active .lesson-content {
    display: block;
}

.lesson-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

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

.info-box {
    background: rgba(0, 191, 255, 0.1);
    border-right: 4px solid var(--accent);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-right: 4px solid var(--warning);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.warning-box p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Network Topics
   ======================================== */
.topic-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.topic-card:hover {
    border-color: var(--accent);
}

.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
}

.topic-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.topic-title i {
    color: var(--accent);
    width: 24px;
}

.topic-arrow {
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.topic-card.active .topic-arrow {
    transform: rotate(180deg);
}

.topic-content {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--border);
}

.topic-card.active .topic-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.topic-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* ========================================
   Settings
   ======================================== */
.settings-container {
    max-width: 600px;
    margin: 0 auto;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
}

.setting-item:hover {
    border-color: var(--primary);
}

.setting-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.setting-info > i {
    font-size: 24px;
    color: var(--accent);
    width: 30px;
}

.setting-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 28px;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    right: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(-22px);
}

/* About Content */
.about-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-md);
}

.about-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 36px;
    color: #000;
}

.about-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.version {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: var(--space-md);
}

.about-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.features-list {
    text-align: right;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.feature i {
    color: var(--success);
}

/* Contact Button */
.contact-btn {
    text-decoration: none;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
}

.contact-btn:hover {
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-btn .setting-info i {
    color: white;
}

.contact-btn .setting-info h4,
.contact-btn .setting-info p {
    color: white;
}

.contact-btn > i {
    color: white;
}

/* ========================================
   Bottom Navigation
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 11px;
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 60px;
}

.nav-item i {
    font-size: 22px;
    transition: all var(--transition-fast);
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:hover:not(.active) {
    color: var(--text-primary);
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    border: 1px solid var(--success);
    color: var(--success);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

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

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

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

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

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 480px) {
    .splash-title {
        font-size: 36px;
    }

    .cyber-logo {
        font-size: 60px;
    }

    .tools-grid {
        gap: var(--space-sm);
    }

    .tool-card {
        padding: var(--space-md);
    }

    .tool-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .tool-card h3 {
        font-size: 14px;
    }

    .tool-card p {
        font-size: 11px;
    }

    .main-content {
        padding: var(--space-md);
    }

    .section-title {
        font-size: 20px;
    }

    .code-content code {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        padding: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        top: 0;
        bottom: auto;
        right: auto;
        width: 200px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: var(--space-sm);
        border-top: none;
        border-left: 1px solid var(--border);
    }

    .app-container {
        padding-bottom: 0;
        padding-right: 200px;
    }

    .nav-item {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        padding: var(--space-md) var(--space-lg);
        font-size: 14px;
        gap: var(--space-md);
    }
}

/* ========================================
   Dictionary Styles
   ======================================== */
.dictionary-search-container {
    position: relative;
    margin: var(--space-lg) 0;
}

.dictionary-search {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.dictionary-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.dictionary-search::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.dictionary-category {
    margin-bottom: var(--space-xl);
}

.dictionary-category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    border-right: 4px solid;
    font-size: 1.1rem;
}

.dictionary-category-title i {
    font-size: 1.2rem;
}

.term-count {
    margin-right: auto;
    background: var(--surface-light);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terms-grid {
    display: grid;
    gap: var(--space-md);
}

.term-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-normal);
}

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

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.term-arabic {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.term-english {
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(0, 191, 255, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    direction: ltr;
}

.term-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .terms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Methods Section Styles
   ======================================== */
.methods-container {
    padding: 0 var(--space-sm);
}

.methods-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.method-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.method-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.method-header:hover {
    background: var(--surface-light);
}

.method-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f9731622, #f9731644);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f97316;
}

.method-info h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.method-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.method-header .fa-chevron-down {
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.method-header .fa-chevron-down.rotated {
    transform: rotate(180deg);
}

.method-content {
    display: none;
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.method-content.active {
    display: block;
}

.method-content h4 {
    color: var(--primary);
    margin: var(--space-md) 0 var(--space-sm) 0;
    font-size: 1rem;
}

.method-content .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.method-content .features-list li {
    padding: var(--space-xs) 0;
    padding-right: var(--space-md);
    position: relative;
    color: var(--text-secondary);
}

.method-content .features-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--success);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .bottom-nav,
    .splash-screen,
    .copy-btn,
    .back-btn {
        display: none !important;
    }

    .app-container {
        padding-bottom: 0;
    }

    .section {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* ========================================
   Terminal Button & Modal
   ======================================== */
.home-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.terminal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e1e2e, #2d2d3d);
    border: 2px solid #22c55e;
    border-radius: 12px;
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', monospace;
    white-space: nowrap;
}

.terminal-btn:hover {
    background: #22c55e;
    color: #1e1e2e;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.terminal-btn i {
    font-size: 18px;
}

/* Terminal Modal */
.terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.terminal-modal.hidden {
    display: none;
}

.terminal-container {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background: #0a0a0f;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 197, 94, 0.2);
    border: 1px solid #333;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-bottom: 1px solid #333;
}

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

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

.terminal-btn-dot.red { background: #ff5f56; }
.terminal-btn-dot.yellow { background: #ffbd2e; }
.terminal-btn-dot.green { background: #27ca3f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #888;
    font-family: monospace;
    font-size: 13px;
}

.terminal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.terminal-close:hover {
    color: #ff5f56;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #a6e3a1;
}

.terminal-welcome {
    color: #89b4fa;
    white-space: pre;
    margin-bottom: 15px;
    font-size: 12px;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-line .prompt {
    color: #f38ba8;
}

.terminal-line .command {
    color: #cdd6f4;
}

.terminal-line .output {
    color: #a6e3a1;
    white-space: pre-wrap;
}

.terminal-line .error {
    color: #f38ba8;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #0f0f15;
    border-top: 1px solid #333;
}

.terminal-prompt {
    color: #f38ba8;
    font-family: monospace;
    font-size: 14px;
    white-space: pre;
    margin-left: 10px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #cdd6f4;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #22c55e;
}

.terminal-input::placeholder {
    color: #555;
}

/* Scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .home-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .terminal-btn {
        justify-content: center;
    }

    .terminal-container {
        height: 90vh;
        border-radius: 8px;
    }

    .terminal-body {
        font-size: 12px;
    }

    .terminal-prompt {
        font-size: 12px;
    }

    .terminal-input {
        font-size: 12px;
    }
}

/* ========================================
   Developer Info
   ======================================== */

.developer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.1), rgba(0, 191, 255, 0.1));
    border: 1px solid rgba(0, 255, 156, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 14px;
}

.developer-info i {
    color: var(--primary);
    font-size: 18px;
}

.developer-info strong {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   Hacker Keyboard Styles
   ======================================== */

.keyboard-toggle {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    font-size: 16px;
}

.keyboard-toggle:hover {
    background: var(--primary);
    color: #000;
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.keyboard-toggle.active {
    background: var(--primary);
    color: #000;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.hacker-keyboard {
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #0d0d15 100%);
    border-top: 2px solid var(--primary);
    padding: 10px 5px;
    animation: keyboardSlideUp 0.3s ease-out;
    box-shadow:
        0 -5px 30px rgba(0, 255, 156, 0.2),
        inset 0 1px 0 rgba(0, 255, 156, 0.1);
}

.hacker-keyboard.hidden {
    display: none;
}

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

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px 10px;
    border-bottom: 1px solid rgba(0, 255, 156, 0.2);
    margin-bottom: 8px;
}

.keyboard-title {
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary);
}

.keyboard-title i {
    margin-right: 8px;
}

.keyboard-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyboard-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

/* Quick Commands */
.keyboard-quick-commands {
    display: flex;
    gap: 6px;
    padding: 8px 5px;
    overflow-x: auto;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 156, 0.1);
}

.quick-cmd {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px var(--accent);
}

.quick-cmd:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}

.quick-cmd:active {
    transform: translateY(0) scale(0.95);
}

/* Keyboard Rows */
.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

/* Individual Keys */
.key {
    background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 50%, #0f0f1a 100%);
    border: 1px solid #3a3a4e;
    border-bottom: 3px solid #0a0a15;
    color: #e0e0e0;
    padding: 10px 8px;
    min-width: 32px;
    height: 42px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.key:hover {
    background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3e 50%, #1a1a2e 100%);
    border-color: var(--primary);
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.key:active {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-bottom-width: 1px;
    transform: translateY(2px);
    box-shadow: 0 0 10px var(--primary);
}

/* Special Keys */
.key-wide {
    min-width: 50px;
    padding: 10px 15px;
}

.key-tab {
    min-width: 55px;
    font-size: 11px;
}

.key-caps {
    min-width: 65px;
    font-size: 10px;
    letter-spacing: 1px;
}

.key-caps.active {
    background: linear-gradient(180deg, var(--primary) 0%, #00aa66 100%);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.key-enter {
    min-width: 85px;
    background: linear-gradient(180deg, #0d4a2e 0%, #0a3a22 50%, #062818 100%);
    border-color: var(--success);
    color: var(--success);
}

.key-enter:hover {
    background: linear-gradient(180deg, #0f5a3e 0%, #0d4a2e 100%);
    box-shadow: 0 0 15px var(--success);
}

.key-shift {
    min-width: 75px;
    font-size: 11px;
}

.key-shift.active {
    background: linear-gradient(180deg, var(--accent) 0%, #0088cc 100%);
    color: #000;
    border-color: var(--accent);
}

.key-space {
    flex: 1;
    max-width: 250px;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.key-space:hover {
    color: var(--primary);
}

.key-ctrl,
.key-symbol {
    min-width: 45px;
    font-size: 10px;
    background: linear-gradient(180deg, #2e1a3e 0%, #1e1a2e 100%);
    border-color: #6b21a8;
    color: #a855f7;
}

.key-ctrl:hover,
.key-symbol:hover {
    box-shadow: 0 0 10px #a855f7;
}

.key-symbol.active {
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
    color: #000;
}

.key-arrow {
    min-width: 38px;
    background: linear-gradient(180deg, #1a2e3e 0%, #0f1e2e 100%);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.key-arrow:hover {
    box-shadow: 0 0 10px #0ea5e9;
}

/* Symbols Panel */
.symbols-panel {
    background: linear-gradient(180deg, #1a0a2e 0%, #0f051a 100%);
    border-top: 1px solid #6b21a8;
    padding: 10px 5px;
    margin-top: 5px;
    animation: fadeIn 0.2s ease;
}

.symbols-panel.hidden {
    display: none;
}

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

/* Ripple Effect */
.key.ripple {
    position: relative;
    overflow: hidden;
}

.key.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 156, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.4s ease-out;
}

@keyframes rippleEffect {
    to {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 500px) {
    .key {
        min-width: 26px;
        height: 38px;
        padding: 8px 5px;
        font-size: 12px;
    }

    .key-wide { min-width: 40px; }
    .key-tab { min-width: 40px; font-size: 9px; }
    .key-caps { min-width: 50px; font-size: 8px; }
    .key-enter { min-width: 60px; font-size: 10px; }
    .key-shift { min-width: 55px; font-size: 9px; }
    .key-space { max-width: 150px; }
    .key-ctrl, .key-symbol { min-width: 35px; font-size: 8px; }
    .key-arrow { min-width: 32px; }

    .quick-cmd {
        padding: 5px 10px;
        font-size: 10px;
    }

    .keyboard-title {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .key {
        min-width: 22px;
        height: 34px;
        padding: 6px 3px;
        font-size: 10px;
        gap: 2px;
    }

    .keyboard-row {
        gap: 2px;
    }
}

/* ========================================
   Level System Styles
   ======================================== */

/* User Level Card */
.user-level-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 156, 0.2);
    position: relative;
    overflow: hidden;
}

.user-level-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 156, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.user-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 156, 0.2);
    border-color: var(--primary);
}

.level-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FF9C, #00BFFF);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.5);
}

.level-badge i {
    font-size: 24px;
    color: #000;
}

.level-badge span {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #000;
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--primary);
}

.level-details h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
}

.level-details p {
    color: var(--text-secondary);
    margin: 5px 0 0;
    font-size: 0.9rem;
}

/* XP Section */
.xp-section {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.xp-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF9C, #00BFFF, #a855f7);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: xpShine 2s infinite;
}

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

.xp-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.xp-text span {
    color: var(--primary);
    font-weight: bold;
}

/* Level Stats */
.level-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item i {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 5px;
    display: block;
}

.stat-item span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
}

.stat-item small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Level Modal */
.level-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.level-modal.hidden {
    display: none;
}

.level-modal-content {
    background: var(--surface);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.level-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
}

.level-modal-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface-light);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: var(--error);
    color: white;
}

.level-modal-body {
    padding: 20px;
}

/* Current Level Display */
.current-level-display {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    margin-bottom: 25px;
}

.big-level-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FF9C, #00BFFF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 255, 156, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 156, 0.5); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 156, 0.8); }
}

.big-level-badge i {
    font-size: 40px;
    color: #000;
}

.big-level-badge span {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #000;
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 3px solid var(--primary);
}

.current-level-display h2 {
    color: var(--primary);
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.current-level-display p {
    color: var(--text-secondary);
    margin: 0;
}

/* All Levels Section */
.all-levels-section,
.achievements-section,
.daily-challenges-section {
    margin-bottom: 25px;
}

.all-levels-section h3,
.achievements-section h3,
.daily-challenges-section h3 {
    color: var(--text-primary);
    margin: 0 0 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-levels-section h3 i,
.achievements-section h3 i,
.daily-challenges-section h3 i {
    color: var(--primary);
}

.levels-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.level-item.active {
    border-color: var(--primary);
    background: rgba(0, 255, 156, 0.1);
}

.level-item-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.level-item-badge i {
    font-size: 18px;
}

.level-item-badge span {
    font-size: 10px;
}

.level-beginner .level-item-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.level-intermediate .level-item-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.level-advanced .level-item-badge {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.level-professional .level-item-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.level-item-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.level-item-info p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.achievement-item {
    aspect-ratio: 1;
    border-radius: 15px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.achievement-item.unlocked {
    border-color: var(--primary);
    background: rgba(0, 255, 156, 0.1);
}

.achievement-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

.achievement-item span {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.achievement-item.unlocked i {
    color: var(--primary);
}

/* Daily Challenges */
.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.challenge-item.completed {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.challenge-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
}

.challenge-info {
    flex: 1;
}

.challenge-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.challenge-info p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.challenge-xp {
    background: rgba(0, 255, 156, 0.2);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.challenge-item.completed .challenge-xp {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

/* Level Up Animation */
.level-up-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    z-index: 20000;
    animation: levelUp 0.5s ease forwards;
}

@keyframes levelUp {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.level-up-notification h2 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.8rem;
}

.level-up-notification p {
    color: var(--text-secondary);
    margin: 0;
}

/* XP Popup */
.xp-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 15000;
    animation: xpPopup 2s ease forwards;
    pointer-events: none;
}

@keyframes xpPopup {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-30px); }
}

/* Responsive for Level Card */
@media (max-width: 400px) {
    .level-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-item {
        padding: 10px 5px;
    }
    
    .stat-item span {
        font-size: 1rem;
    }
}

/* ========================================
   Live Code Editor Styles
   ======================================== */

.live-editor-container {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--surface-light);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.editor-tabs {
    display: flex;
    gap: 10px;
}

.editor-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.editor-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.editor-tab.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.editor-tab i {
    font-size: 1.1rem;
}

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

.editor-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.editor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 156, 0.3);
}

.editor-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

@media (max-width: 768px) {
    .editor-body {
        grid-template-columns: 1fr;
    }
}

.code-panel {
    position: relative;
    border-left: 1px solid var(--border);
}

.code-editor {
    width: 100%;
    height: 100%;
    min-height: 400px;
    padding: 20px;
    background: #0d1117;
    color: #c9d1d9;
    border: none;
    resize: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
}

.code-editor:focus {
    outline: none;
}

.code-editor.hidden {
    display: none;
}

.preview-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.preview-header {
    padding: 10px 15px;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.preview-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
    min-height: 380px;
}

/* Quick Examples */
.quick-examples {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.quick-examples h3 {
    color: var(--primary);
    margin: 0 0 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.example-btn {
    padding: 15px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.example-btn i {
    font-size: 1.5rem;
    color: var(--primary);
}

.example-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 156, 0.1);
    transform: translateY(-2px);
}

/* Tutorial Tabs */
.tutorial-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tutorial-tab {
    flex: 1;
    padding: 15px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.tutorial-tab:hover {
    border-color: var(--primary);
}

.tutorial-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    border-color: transparent;
}

.tutorial-tab i {
    font-size: 1.3rem;
}

.tutorial-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border);
}

.tutorial-content.hidden {
    display: none;
}

/* Tutorial Lessons */
.lesson-card {
    background: var(--surface-light);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-header:hover {
    background: rgba(0, 255, 156, 0.05);
}

.lesson-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lesson-icon.html {
    background: linear-gradient(135deg, #e34c2622, #e34c2644);
    color: #e34c26;
}

.lesson-icon.css {
    background: linear-gradient(135deg, #264de422, #264de444);
    color: #264de4;
}

.lesson-info {
    flex: 1;
}

.lesson-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.lesson-info p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.lesson-toggle {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.lesson-card.open .lesson-toggle {
    transform: rotate(180deg);
}

.lesson-body {
    padding: 0 20px 20px;
    display: none;
}

.lesson-card.open .lesson-body {
    display: block;
}

.lesson-section {
    margin-bottom: 20px;
}

.lesson-section h5 {
    color: var(--primary);
    margin: 0 0 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 15px;
}

.lesson-section ul {
    color: var(--text-secondary);
    padding-right: 20px;
    margin: 0;
}

.lesson-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.lesson-section code {
    background: #0d1117;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    direction: ltr;
    display: inline-block;
}

.code-example {
    background: #0d1117;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.code-example pre {
    margin: 0;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.code-example .tag {
    color: #ff7b72;
}

.code-example .attr {
    color: #79c0ff;
}

.code-example .value {
    color: #a5d6ff;
}

.code-example .comment {
    color: #8b949e;
}

.try-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.try-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 156, 0.3);
}

/* Property Table */
.property-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
}

.property-table th,
.property-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.property-table th {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
}

.property-table td {
    color: var(--text-secondary);
}

.property-table td code {
    background: #0d1117;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    direction: ltr;
    display: inline-block;
}

.property-table tr:hover {
    background: rgba(0, 255, 156, 0.05);
}

/* Info Box in Lessons */
.lesson-tip {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.lesson-tip h6 {
    color: var(--accent);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-tip p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.lesson-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.lesson-warning h6 {
    color: var(--error);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-warning p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Completion Button Styles
   ======================================== */

.complete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 25px;
    margin-top: 20px;
    background: linear-gradient(135deg, #333, #222);
    border: 2px solid var(--primary);
    border-radius: 15px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.3);
}

.complete-btn.completed {
    background: linear-gradient(135deg, var(--success), #16a34a);
    border-color: var(--success);
    color: #fff;
    cursor: default;
}

.complete-btn.completed:hover {
    transform: none;
    box-shadow: none;
}

.complete-btn i {
    font-size: 1.3rem;
}

/* Completion badge on cards */
.completion-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.5);
    z-index: 5;
}

.tool-card {
    position: relative;
}

/* Mini complete button for accordion items */
.mini-complete-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.mini-complete-btn:hover {
    background: var(--primary);
    color: #000;
}

.mini-complete-btn.completed {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

/* Progress indicator in section */
.section-progress {
    background: var(--surface);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-progress-bar {
    flex: 1;
    height: 10px;
    background: var(--surface-light);
    border-radius: 10px;
    overflow: hidden;
}

.section-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.section-progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.section-progress-text span {
    color: var(--primary);
    font-weight: bold;
}
