
    :root {
        --primary-color: #667eea;
        --primary-dark: #5a6fd8;
        --secondary-color: #764ba2;
        --accent-color: #f093fb;
        --text-dark: #2d3748;
        --text-light: #718096;
        --bg-light: #f7fafc;
        --bg-white: #ffffff;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
        --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
        --border-radius: 12px;
        --transition: all 0.3s ease;
    }

    * {
        box-sizing: border-box;
    }

    .namestylist-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        padding: 40px 20px;
        text-align: center;
        border-radius: var(--border-radius);
        margin-bottom: 30px;
        box-shadow: var(--shadow-xl);
        position: relative;
        overflow: hidden;
    }

    .namestylist-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

    .header-content h1 {
        margin: 0 0 15px 0;
        font-size: 2.5em;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .header-content p {
        margin: 0;
        font-size: 1.2em;
        opacity: 0.9;
    }

    .highlight {
        background: rgba(255,255,255,0.2);
        padding: 2px 8px;
        border-radius: 20px;
        font-weight: 600;
    }

    .namestylist-input-section {
        margin-bottom: 30px;
    }

    .input-group {
        max-width: 500px;
        margin: 0 auto;
    }

    #namestylist-input {
        width: 100%;
        padding: 18px 20px;
        border: 2px solid #e2e8f0;
        border-radius: var(--border-radius);
        font-size: 18px;
        font-weight: 500;
        transition: var(--transition);
        background: var(--bg-white);
        box-shadow: var(--shadow);
        font-family: inherit;
    }

    #namestylist-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .input-stats {
        text-align: center;
        margin-top: 10px;
        color: var(--text-light);
        font-size: 14px;
    }

    .customization-panel {
        background: var(--bg-white);
        border-radius: var(--border-radius);
        margin-bottom: 30px;
        box-shadow: var(--shadow);
        border: 1px solid #e2e8f0;
        overflow: hidden;
    }

    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        cursor: pointer;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .panel-header h3 {
        margin: 0;
        font-size: 1.3em;
        font-weight: 600;
    }

    .toggle-panel {
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        font-size: 1.2em;
        cursor: pointer;
        transition: var(--transition);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .toggle-panel:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.1);
    }

    .panel-content {
        padding: 25px;
        background: var(--bg-light);
    }

    .customization-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 25px;
    }

    .customization-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .customization-group label {
        font-weight: 600;
        color: var(--text-dark);
        font-size: 14px;
        margin-bottom: 5px;
    }

    .customization-control {
        padding: 12px 15px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        transition: var(--transition);
        background: var(--bg-white);
        font-family: inherit;
        width: 100%;
    }

    .customization-control:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    input[type="color"].customization-control {
        padding: 5px;
        height: 45px;
        cursor: pointer;
    }

    input[type="range"].customization-control {
        padding: 0;
    }

    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .checkbox-group label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: normal;
        cursor: pointer;
        padding: 5px 0;
        transition: var(--transition);
        margin-bottom: 0;
    }

    .checkbox-group label:hover {
        color: var(--primary-color);
    }

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary-color);
    }

    .symbols-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        margin-top: 5px;
    }

    .symbol-btn {
        padding: 12px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        background: var(--bg-white);
        cursor: pointer;
        transition: var(--transition);
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }

    .symbol-btn:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .customization-actions {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 20px;
        border-top: 1px solid #e2e8f0;
        margin-top: 20px;
    }

    .customization-btn {
        padding: 12px 24px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: var(--shadow);
        font-size: 14px;
        min-width: 140px;
    }

    .customization-btn.primary {
        background: var(--primary-color);
        color: white;
    }

    .customization-btn.primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .customization-btn.secondary {
        background: var(--bg-white);
        color: var(--text-dark);
        border: 2px solid #e2e8f0;
    }

    .customization-btn.secondary:hover {
        background: #e2e8f0;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .customization-btn.success {
        background: #48bb78;
        color: white;
    }

    .customization-btn.success:hover {
        background: #38a169;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .namestylist-categories {
        margin-bottom: 30px;
        overflow-x: auto;
    }

    .categories-scroll {
        display: flex;
        gap: 10px;
        padding: 10px 0;
        scrollbar-width: none;
    }

    .categories-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-filter {
        background: var(--bg-white);
        border: 2px solid #e2e8f0;
        padding: 12px 20px;
        border-radius: 25px;
        cursor: pointer;
        transition: var(--transition);
        font-weight: 500;
        white-space: nowrap;
        box-shadow: var(--shadow);
        font-family: inherit;
    }

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

    .category-filter.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .namestylist-preview-section {
        background: var(--bg-white);
        padding: 25px;
        border-radius: var(--border-radius);
        margin-bottom: 30px;
        box-shadow: var(--shadow);
        border: 1px solid #e2e8f0;
    }

    .preview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .preview-header h3 {
        margin: 0;
        color: var(--text-dark);
    }

    .copy-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: var(--transition);
        box-shadow: var(--shadow);
        font-family: inherit;
    }

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

    .preview-area {
        min-height: 100px;
        padding: 20px;
        border: 2px dashed #cbd5e0;
        border-radius: 10px;
        font-size: 20px;
        line-height: 1.6;
        white-space: pre-wrap;
        background: var(--bg-light);
        transition: var(--transition);
        text-align: center;
        font-family: inherit;
    }

    .preview-area:focus {
        border-color: var(--primary-color);
        background: var(--bg-white);
        outline: none;
    }

    .namestylist-styles-section {
        background: var(--bg-white);
        padding: 30px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        border: 1px solid #e2e8f0;
    }

    .styles-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    .styles-header h3 {
        margin: 0;
        color: var(--text-dark);
    }

    .pagination-info {
        color: var(--text-light);
        font-size: 14px;
    }

    .styles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .style-card {
        background: var(--bg-white);
        border: 1px solid #e2e8f0;
        border-radius: var(--border-radius);
        padding: 20px;
        transition: var(--transition);
        cursor: pointer;
        box-shadow: var(--shadow);
        position: relative;
        overflow: hidden;
    }

    .style-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: var(--transition);
    }

    .style-card:hover::before {
        left: 100%;
    }

    .style-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }

    .style-preview {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 15px;
        text-align: center;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: break-word;
        font-family: inherit;
    }

    .style-name {
        font-size: 14px;
        color: var(--text-light);
        text-align: center;
        margin-bottom: 15px;
        font-weight: 500;
    }

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

    .apply-btn, .copy-style-btn {
        flex: 1;
        padding: 10px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
        transition: var(--transition);
        font-size: 13px;
        font-family: inherit;
    }

    .apply-btn {
        background: var(--primary-color);
        color: white;
    }

    .apply-btn:hover {
        background: var(--primary-dark);
    }

    .copy-style-btn {
        background: var(--bg-light);
        color: var(--text-dark);
        border: 1px solid #e2e8f0;
    }

    .copy-style-btn:hover {
        background: #e2e8f0;
    }

    .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }

    .pagination-btn {
        background: var(--bg-white);
        border: 2px solid #e2e8f0;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
        font-weight: 500;
        font-family: inherit;
    }

    .pagination-btn:hover:not(:disabled) {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .page-numbers {
        display: flex;
        gap: 5px;
    }

    .page-number {
        padding: 8px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        cursor: pointer;
        transition: var(--transition);
        min-width: 40px;
        text-align: center;
        font-family: inherit;
    }

    .page-number:hover {
        background: var(--bg-light);
    }

    .page-number.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .no-styles {
        grid-column: 1 / -1;
        text-align: center;
        padding: 40px;
        color: var(--text-light);
        font-size: 16px;
    }

    .temp-message {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 15px 20px;
        border-radius: 8px;
        color: white;
        font-weight: 600;
        z-index: 10000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }

    .temp-message.success {
        background: #48bb78;
    }

    .temp-message.error {
        background: #e53e3e;
    }

    @media (max-width: 1024px) {
        .customization-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
    }

    @media (max-width: 768px) {
        .header-content h1 {
            font-size: 2em;
        }
        
        .styles-grid {
            grid-template-columns: 1fr;
        }
        
        .customization-grid {
            grid-template-columns: 1fr;
        }
        
        .symbols-grid {
            grid-template-columns: repeat(4, 1fr);
        }
        
        .styles-header {
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
        }
        
        .preview-header {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }
        
        .copy-btn {
            align-self: stretch;
            text-align: center;
        }
        
        .pagination-container {
            flex-wrap: wrap;
        }
        
        .categories-scroll {
            padding-bottom: 15px;
        }
        
        .customization-actions {
            flex-direction: column;
        }
        
        .customization-btn {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .namestylist-header {
            padding: 30px 15px;
        }
        
        .header-content h1 {
            font-size: 1.8em;
        }
        
        #namestylist-input {
            padding: 15px;
            font-size: 16px;
        }
        
        .style-actions {
            flex-direction: column;
        }
        
        .symbols-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .panel-content {
            padding: 15px;
        }
        
        .customization-grid {
            gap: 15px;
        }
        
        .temp-message {
            right: 10px;
            left: 10px;
            text-align: center;
        }
    }