.nickname-container {
        }

        /* Input chính */
        .main-input-wrapper {
            margin-bottom: 2rem;
        }

        .main-input {
                width: 100%;
    padding: 1.25rem 1.5rem !important;
    border: 3px solid #E91E63 !important;
    border-radius: 10px !important;
    font-size: 1.1rem;
    background: white;
    color: #333 !important;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 3px 10px rgb(0 0 0 / 73%);
        }

        .main-input::placeholder {
            color: #94a3b8;
            font-style: italic;
        }

        .main-input:focus {
            outline: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }

        /* Row select giống vkitext */
        .select-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .select-input {
            width: 100%;
            padding: 1rem 1.25rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            background: white;
            color: #334155;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L7 7L13 1' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 15px center;
            padding-right: 45px;
            transition: all 0.2s ease;
        }

        .select-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .select-input option {
            background: white;
            color: #333;
            padding: 10px;
        }

        .select-input optgroup {
            background: #f8fafc;
            color: #3b82f6;
            font-weight: 600;
        }

        /* Collapse section cho tùy chỉnh */
        .collapse-section {
            margin-bottom: 2rem;
        }

        .collapse-toggle {
            width: 100%;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 15px;
            padding: 1rem 1.25rem;
            color: #475569;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .collapse-toggle:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }

        .collapse-toggle.active {
            background: #f1f5f9;
            border-color: #3b82f6;
            color: #3b82f6;
        }

        .collapse-icon {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .collapse-toggle.active .collapse-icon {
            transform: rotate(180deg);
        }

        .collapse-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
            background: white;
            border: 2px solid #e2e8f0;
            border-top: none;
            border-radius: 0 0 15px 15px;
            margin-top: -15px;
            padding-top: 15px;
        }

        .collapse-content.open {
            max-height: 400px;
        }

        .collapse-inner {
            padding: 1.5rem;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .custom-group {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 1rem;
        }

        .custom-label {
            color: #374151;
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 0.75rem;
            display: block;
        }

        .toggle-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .toggle-switch {
            position: relative;
            width: 44px;
            height: 24px;
            background: #cbd5e1;
            border-radius: 12px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .toggle-switch input:checked + .toggle-slider {
            transform: translateX(20px);
        }

        .toggle-switch:has(input:checked) {
            background: #3b82f6;
        }

        .toggle-label {
            color: #64748b;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .custom-input {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #334155;
            font-size: 0.9rem;
            display: none;
        }

        .custom-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
        }

        /* Generate button - màu nhẹ nhàng */
        .generate-btn {
            width: 100%;
            padding: 1.25rem 2rem;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            border: none;
            border-radius: 15px;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
        }

        .generate-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Loading */
        .loading-section {
            display: none;
            text-align: center;
            padding: 1.5rem 0;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e2e8f0;
            border-top: 3px solid #3b82f6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        .loading-text {
            color: #64748b;
            font-size: 1rem;
            font-weight: 500;
        }

        /* Error message */
        .error-message {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
            display: none;
            text-align: center;
            font-weight: 500;
        }

        /* Results section */
        .results-section {
            display: none;
            margin-top: 3rem;
        }

        .results-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .results-title {
            color: #1e293b;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .results-count {
            background: #3b82f6;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
        }

        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1rem;
        }

        .result-item {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .result-item:hover {
            border-color: #3b82f6;
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
        }

        .nickname-text {
            font-size: 1.25rem;
            color: #1e293b;
            margin-bottom: 0.5rem;
            word-break: break-all;
            line-height: 1.3;
            text-align: center;
        }

        .nickname-category {
            text-align: center;
            font-size: 0.75rem;
            color: #3b82f6;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        /* Toast notification */
        .toast {
            position: fixed;
            top: 2rem;
            right: 2rem;
            background: #00c851;
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            transform: translateX(400px);
            transition: transform 0.3s ease;
            z-index: 1000;
            box-shadow: 0 5px 15px rgba(0, 200, 81, 0.3);
        }

        .toast.show {
            transform: translateX(0);
        }
.popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .popup-overlay.show {
            display: flex;
            opacity: 1;
        }

        .popup-container {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            max-width: 450px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
        }

        .popup-overlay.show .popup-container {
            transform: scale(1);
        }

        .popup-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #f1f5f9;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            color: #64748b;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .popup-close:hover {
            background: #e2e8f0;
            color: #334155;
        }

        .popup-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 1rem;
            text-align: center;
            padding-right: 2rem;
        }

        .popup-subtitle {
            text-align: center;
            color: #64748b;
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }

        .popup-actions {
            display: grid;
            gap: 1rem;
        }

        .popup-btn {
            padding: 1rem 1.5rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            background: white;
            color: #334155;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-align: left;
        }

        .popup-btn:hover {
            border-color: #3b82f6;
            background: #f8fafc;
            transform: translateY(-1px);
        }

        .popup-btn-icon {
            font-size: 1.2rem;
        }

        .popup-btn-content {
            flex: 1;
        }

        .popup-btn-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .popup-btn-desc {
            font-size: 0.85rem;
            color: #64748b;
            font-weight: 400;
        }

        /* Responsive */
        @media (max-width: 768px) {
            
            .select-row,
            .collapse-inner {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .results-grid {
                grid-template-columns: 1fr;
            }
            
            .toast {
                right: 1rem;
                left: 1rem;
                transform: translateY(-100px);
            }
            
            .toast.show {
                transform: translateY(0);
            }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }