:root { --primary: #FFD166; --secondary: #1abc9c;  --light: #ecf0f1; --dark: #34495e; --text: #2c3e50; --text-light: #7f8c8d; --success: #27ae60; --shadow: 0 4px 6px rgba(0,0,0,0.1); --radius: 8px; --transition: all 0.3s ease; }  * { margin: 0; padding: 0; box-sizing: border-box; }   .width-slider-container { position: relative; height: 40px; display: flex; align-items: center; }  p { margin-bottom: 16px; font-size: 1.1rem; color: var(--text-light); }  .btn { display: inline-block; background: var(--secondary); color: white; padding: 12px 28px; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; font-size: 1rem; box-shadow: var(--shadow); margin-top: 10px; }  .btn:hover { background: #16a085; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }  .btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }  .btn-outline:hover { background: var(--accent); color: white; }  .btn-sm { padding: 8px 15px; font-size: 0.9rem; }  .btn-icon { background: #f1f5f9; color: var(--secondary); border: none; cursor: pointer; padding: 8px; border-radius: 50%; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1.6rem; }  .btn-icon:hover { background: #f1f5f9; color: var(--secondary); }  h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }  .width-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #e2e8f0; outline: none; } .width-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--secondary); cursor: pointer; transition: var(--transition); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }  .width-slider::-webkit-slider-thumb:hover { transform: scale(1.2); background: var(--accent); }  .generator-container { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; margin-top:30px; }  .mode-selector { display: flex; border-bottom: 1px solid #ecf0f1; }  .mode-btn { flex: 1; padding: 18px; background: #f8f9fa; border: none; font-size: 1.1rem; font-weight: 600; color: var(--dark); cursor: pointer; transition: var(--transition); position: relative; }  .mode-btn.active { background: white; color: var(--secondary); }  .mode-btn.active:after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--secondary); }  .mode-content { padding: 30px; min-height: 400px; }  .generator-text { display: none; }  .generator-text.active { display: block; animation: fadeIn 0.5s ease; }  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }  .canvas-area { width: 100%; height: 250px; border: 2px dashed #bdc3c7; border-radius: var(--radius); margin: 20px 0; background: #f8f9fa; cursor: crosshair; overflow: hidden; position: relative; }  #signature-canvas { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }  .text-input-group { max-width: 600px; margin: 20px 0; }  .text-input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }  .text-input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 1rem; margin-bottom: 15px; }   .customization-panel { background: #f8fafc; border-radius: var(--radius); padding: 15px; margin: 15px 0; border: 1px solid #e2e8f0; transition: var(--transition); }  .panel-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }  .panel-title { font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 8px; }  .panel-title svg { width: 16px; height: 16px; }  .panel-content { margin-top: 15px; display: none; }  .panel-content.active { display: block; }  .options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }  .option-group { margin-bottom: 15px; padding-right:3rem }  .option-label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-light); font-weight: 500; }  .width-options { display: flex; gap: 10px; }  .width-option { width: 30px; height: 30px; border-radius: 4px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }  .width-option.active { background: var(--secondary); color: white; }  .color-options { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }  .color-option { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }  .color-option.active { border-color: var(--secondary); transform: scale(1.1); }  .action-buttons { display: flex; gap: 10px; margin-top: 10px; }   .document-preview { background: white; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 20px; margin-top: 25px; display: none; }  .document-preview.active { display: block; }  .document-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #edf2f7; }  .document-title { font-weight: 700; color: var(--dark); font-size: 1.2rem; }  .document-toggle { display: flex; align-items: center; gap: 8px; color: var(--accent); cursor: pointer; font-weight: 500; }  .document-content { line-height: 1.8; color: #4a5568; font-size: 0.95rem; }  .signature-placeholder { position: relative; height: 80px; margin: 20px 0; border-top: 1px solid #e2e8f0; padding-top: 15px; }  .signature-img { max-width: 300px; height: auto; position: absolute; bottom: 0; right: 0; }   .font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 25px; }  .font-card { border: 1px solid #e0e6ed; border-radius: var(--radius); padding: 20px; transition: var(--transition); background: #f8fafc; }  .font-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: var(--secondary); }  .font-name { font-weight: 600; color: var(--dark); margin-bottom: 10px; font-size: 1.1rem; }  .font-preview { font-size: 2.8rem; line-height: 1.2; letter-spacing: 1px; color: var(--primary); min-height: 80px; padding: 15px 0; text-align: center; }  .font-actions { display: flex; justify-content: center; margin-top: 10px; }  .download-font-btn { padding: 8px 15px; font-size: 0.9rem; }  .download-section { text-align: center; padding-top: 20px; border-top: 1px dashed #ecf0f1; margin-top: 20px; }     @media (max-width: 768px) { h1 { font-size: 2rem; }  h2 { font-size: 1.6rem; }    .mode-content { padding: 20px 10px; }    .font-grid { grid-template-columns: 1fr; }  .options-grid { grid-template-columns: 1fr; } .width-slider-container { flex-direction: column; height: auto; gap: 10px; }  .container { padding: 0 1rem; margin-top: 1.5rem; }  .generator-section { padding: 1rem; margin: 0; }  }