        :root {
            --primary: #d4af37;
            --secondary: #228b22;
            --accent: #cd7f32;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-600: #4b5563;
            --gray-800: #1f2937;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background: var(--gray-50);
            color: var(--gray-800);
            line-height: 1.6;
        }
        
        .hero {
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--secondary) 100%);
            color: white;
            padding: 4rem 2rem;
            text-align: center;
        }
        
        .hero-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }
        
        .hero-subtitle {
            font-size: 1.125rem;
            opacity: 0.9;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 3rem 2rem;
        }
        
        .translator-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
        }
        
        .translator-panel, .info-panel {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--gray-200);
        }
        
        .mode-selector {
            display: flex;
            background: var(--gray-100);
            border-radius: 8px;
            padding: 4px;
            margin-bottom: 2rem;
        }
        
        .mode-button {
            flex: 1;
            padding: 0.75rem;
            border: none;
            border-radius: 6px;
            background: transparent;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .mode-button.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .input-field, .output-field {
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--gray-200);
            border-radius: 12px;
            font-size: 1rem;
            min-height: 120px;
            margin-bottom: 1rem;
            resize: vertical;
        }
        
        .input-field:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .output-field {
            background: var(--gray-50);
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--accent);
        }
        
        .ogham-display {
            background: linear-gradient(145deg, #f5f5f0, #e8e8e0);
            border: 3px solid var(--accent);
            border-radius: 12px;
            padding: 2rem;
            margin: 1rem 0;
            min-height: 120px;
            position: relative;
            text-align: center;
        }
        
        .ogham-text {
            font-size: 2rem;
            line-height: 1.8;
            color: var(--accent);
            font-weight: 600;
            letter-spacing: 2px;
            position: relative;
            z-index: 2;
        }
        
        .controls {
            display: flex;
            gap: 1rem;
            margin: 1rem 0;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-secondary {
            background: var(--gray-200);
            color: var(--gray-800);
        }
        
        .btn-export {
            background: var(--secondary);
            color: white;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        .character-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
            gap: 0.5rem;
            margin: 1rem 0;
        }
        
        .character-item {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            padding: 0.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .character-item:hover {
            background: white;
            border-color: var(--primary);
            transform: translateY(-2px);
        }
        
        .character-ogham {
            font-size: 1.5rem;
            display: block;
            margin-bottom: 0.25rem;
        }
        
        .character-latin {
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .cultural-info {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }
        
        .cultural-info h3 {
            margin-bottom: 1rem;
        }
        
        .cultural-info p {
            margin-bottom: 0.75rem;
            opacity: 0.95;
        }
        
        .export-section {
            background: var(--gray-50);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }
        
        .export-section h3 {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .export-options {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
        
        @media (max-width: 768px) {
            .translator-grid {
                grid-template-columns: 1fr;
            }
            
            .hero {
                padding: 2rem 1rem;
            }
            
            .hero-title {
                font-size: 2rem;
            }
            
            .container {
                padding: 2rem 1rem;
            }
            
            .controls {
                flex-direction: column;
            }
            
            .export-options {
                flex-direction: column;
            }
        }