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

        :root {
            --primary: #FFFF00;   
            --primary-dark: #FFD700; 
            --secondary: #1E90FF;
            --success: #06d6a0;
            --danger: #ef476f;
            --warning: #ffd166;
            --dark: #121212;
            --light: #1e1e1e;
            --gray: #2d2d2d;
            --text: #e0e0e0;
            --text-light: #a0a0a0;
            --card-bg: #1E1E1E;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
            --transition: all 0.3s ease;
            --radius: 12px;
            --dark-card: #1E1E1E;
            --gradient-primary: var(--secondary);
            --card-border: 1px solid rgba(255, 255, 255, 0.05);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: var(--text);
            background: var(--dark);
            min-height: 100vh;
            transition: var(--transition);
            background-image: 
                radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 25%);
            overflow-x: hidden;
            font-size: 17px;

        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Smooth fade-in */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .header {
            text-align: center;
            padding: 3rem 0 2rem;
            position: relative;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 800;
            animation: fadeIn 0.8s ease;
            color: var(--primary);
            position: relative;
            display: inline-block;
            margin-bottom: 0.5rem;
        }

        .header p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
            animation: fadeIn 1s ease;
            line-height: 1.7;
        }

        .card {
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
            border: var(--card-border);
            backdrop-filter: blur(10px);
        }

        .card-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .card-header h2 {
            font-size: 1.35rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            color: var(--primary);
        }

        .card-header h2 i {
            margin-right: 0.75rem;
            color: var(--primary);
        }

        .card-body {
            padding: 1.5rem;
        }

        .alert {
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: flex-start;
            animation: fadeIn 0.8s ease;
            background: rgba(255, 255, 255, 0.05);
        }


        .alert-success {
            border-left-color: var(--success);
            color: var(--success);
        }

        .alert-warning {
            border-left-color: var(--warning);
            color: var(--warning);
        }

        .alert-icon {
            margin-right: 0.75rem;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .instruction-list {
            margin-top: 0.5rem;
            padding-left: 1.25rem;
            font-size: 1rem;
        }

        .instruction-list li {
            margin-bottom: 0.5rem;
            line-height: 1.6;
            position: relative;
        }


        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            background: var(--secondary);
            color: white;
            font-weight: 600;
            border-radius: var(--radius);
            border: none;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            z-index: 1;
            font-size: 0.9rem;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
            background: #1a7ad9;
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn i {
            margin-right: 0.5rem;
        }

        .btn-danger {
            background: var(--danger);
        }

        .btn-danger:hover {
            background: #e5366a;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

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

        .stat-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.25rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-left: 4px solid var(--primary);
            animation: fadeIn 0.8s ease;
            border: var(--card-border);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            opacity: 0.03;
            z-index: 0;
        }

        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .stat-card h3 {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .stat-card h3 i {
            margin-right: 0.5rem;
            color: white;
            font-size: 1.1rem;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 800;
            font-family: 'Fira Code', monospace;
            color: var(--text);
            margin-bottom: 0.25rem;
            position: relative;
            z-index: 1;
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-light);
            position: relative;
            z-index: 1;
        }

        .content-section {
            margin-bottom: 2rem;
            animation: fadeIn 1s ease;
            position: relative;
            z-index: 1;
        }

        .content-section h2 {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .content-section h2 i {
            margin-right: 0.75rem;
        }

        .content-section p {
            margin-bottom: 1rem;
            color: var(--text);
            line-height: 1.7;
            font-size: 1.1rem;
        }

        .content-section ul, .content-section ol {
            margin-bottom: 1.25rem;
            padding-left: 1.5rem;
            color: var(--text);
        }

        .content-section li {
            margin-bottom: 0.5rem;
            line-height: 1.7;
            position: relative;
            font-size: 1.1rem;
        }

        .content-section strong {
            color: var(--primary);
            font-weight: 600;
        }

        .footer {
            background: var(--dark);
            color: var(--light);
            padding: 2rem 0 1.25rem;
            position: relative;
            z-index: 1;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .footer-bottom {
            margin-top: 2rem;
            padding-top: 1.25rem;
            border-top: 1px solid var(--gray);
            text-align: center;
            color: var(--text-light);
            font-size: 0.8rem;
        }

        .button-group {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            margin-top: 1.25rem;
            flex-wrap: wrap;
        }

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

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

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

        .hidden {
            display: none;
        }

        .flex {
            display: flex;
        }

        .items-center {
            align-items: center;
        }

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

        .mt-4 {
            margin-top: 1.5rem;
        }

        .mb-4 {
            margin-bottom: 1.5rem;
        }

        .mb-6 {
            margin-bottom: 2rem;
        }

        .px-4 {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }

        .py-8 {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }

        /* Keyboard Tester specific styles */
        .keyboard-tester {
            margin: 1.5rem 0;
        }

        .keyboard-container {
            background: var(--gray);
            border-radius: var(--radius);
            padding: 1rem;
            margin-bottom: 1.25rem;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            width: 100%;
            overflow-x: auto;
        }

        .keyboard-inner {
            min-width: 1024px;
            margin: 0 auto;
        }

        .keyboard-row {
            display: flex;
            justify-content: center;
            margin-bottom: 0.5rem;
            gap: 0.375rem;
        }

        .key {
            background: var(--dark);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            padding: 0.5rem;
            min-width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.1s ease;
            position: relative;
            user-select: none;
            font-size: 0.75rem;
        }

        .key.active {
            background: var(--primary);
            color: var(--dark);
            transform: translateY(2px);
            box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
        }

        .key.special {
            background: var(--light);
        }

        .key.space {
            min-width: 280px;
        }

        .key.wide {
            min-width: 70px;
        }

        .key.extra-wide {
            min-width: 90px;
        }

        .key.super-wide {
            min-width: 110px;
        }

        .key.ultra-wide {
            min-width: 130px;
        }

        .key-label {
            font-size: 0.75rem;
            text-align: center;
        }

        .key-sub-label {
            position: absolute;
            bottom: 3px;
            right: 3px;
            font-size: 0.55rem;
            opacity: 0.7;
        }

        .test-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .test-controls {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .key-history {
            margin-top: 1.5rem;
            max-height: 180px;
            overflow-y: auto;
            background: var(--gray);
            border-radius: var(--radius);
            padding: 0.75rem;
        }

        .key-history-item {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.85rem;
        }

        .key-history-item:last-child {
            border-bottom: none;
        }

        .key-code {
            font-family: 'Fira Code', monospace;
            color: var(--primary);
            font-size: 0.8rem;
        }

        .test-result {
            text-align: center;
            padding: 0.75rem;
            border-radius: var(--radius);
            margin-top: 1rem;
            animation: fadeIn 0.5s ease;
            font-size: 0.9rem;
        }

        .test-result.success {
            background: rgba(6, 214, 160, 0.1);
            border: 1px solid var(--success);
        }

        .test-result.failure {
            background: rgba(239, 71, 111, 0.1);
            border: 1px solid var(--danger);
        }

        /* Responsive adjustments */
        @media (max-width: 1100px) {
            .keyboard-inner {
                transform: scale(0.9);
                transform-origin: top center;
            }
        }

        @media (max-width: 968px) {
            .keyboard-inner {
                transform: scale(0.8);
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .header p {
                font-size: 1rem;
            }
        }

        @media (max-width: 768px) {
            .keyboard-inner {
                transform: scale(0.7);
            }
            
            .header h1 {
                font-size: 1.75rem;
            }

            .header p {
                font-size: 0.95rem;
            }

            .button-group {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .instruction-list {
                padding-left: 1.1rem;
            }

            .instruction-list li {
                font-size: 0.85rem;
            }

            .key {
                min-width: 35px;
                height: 35px;
                padding: 0.25rem;
                font-size: 0.7rem;
            }

            .key.space {
                min-width: 200px;
            }

            .key.wide {
                min-width: 55px;
            }

            .key.extra-wide {
                min-width: 75px;
            }

            .key.super-wide {
                min-width: 95px;
            }

            .key.ultra-wide {
                min-width: 115px;
            }

            .key-label {
                font-size: 0.65rem;
            }

            .key-sub-label {
                font-size: 0.5rem;
            }
            
            .card-body {
                padding: 1rem;
            }
            
            .card-header {
                padding: 1rem 1.25rem;
            }
            
            .card-header h2 {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .keyboard-inner {
                transform: scale(0.6);
            }
            
            .container {
                padding: 0 1rem;
            }
            
            .header {
                padding: 2rem 0 1.5rem;
            }
            
            .header h1 {
                font-size: 1.5rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

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

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

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

        .pulse {
            animation: pulse 2s infinite;
        }
        
        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

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

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

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