:root {
            --primary: #5468ff;
            --primary-hover: #4054ff;
            --primary-light: #f0f2ff;
            --secondary: #00d4ff;
            --success: #00c896;
            --error: #ff4757;
            --warning: #ffa502;
            --bg-main: #f8f9fa;
            --bg-white: #ffffff;
            --bg-gray: #f5f6fa;
            --text-primary: #2c3e50;
            --text-secondary: #718096;
            --text-muted: #a0aec0;
            --border: #e2e8f0;
            --border-light: #f0f3f7;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
            --radius: 12px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* Main Content */
        .main-content {
            background: var(--bg-white);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            overflow: hidden;
        }

        /* Generator Section */
        .generator-section {
            padding: 40px;
            position: relative;
        }

        .generator-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .generator-title h1 {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .generator-title p {
            color: var(--text-secondary);
            font-size: 16px;
        }

        /* Input Section */
        .input-section {
            max-width: 600px;
            margin: 0 auto;
        }

        .main-input-group {
            margin-bottom: 30px;
        }

        .input-label {
            display: block;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 10px;
            font-size: 14px;
        }

        .input-container {
            position: relative;
            display: flex;
            gap: 12px;
        }

        .main-input {
            flex: 1;
            padding: 14px 20px;
            font-size: 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius);
            transition: all 0.3s ease;
            background: var(--bg-white);
        }

        .main-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(84, 104, 255, 0.1);
        }

        .generate-button {
            padding: 14px 32px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .generate-button:hover:not(:disabled) {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .generate-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Options Row */
        .options-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 30px;
        }

        .option-group {
            display: flex;
            flex-direction: column;
        }

        .option-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .option-select {
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--bg-gray);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L5 5L9 1' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 14px center;
            padding-right: 36px;
        }

        .option-select:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--bg-white);
        }

        /* Loading State */
        .loading-overlay {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            z-index: 10;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius);
        }

        .loading-overlay.active {
            display: flex;
        }

        .loading-content {
            text-align: center;
        }

        .loader {
            width: 48px;
            height: 48px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 16px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-text {
            color: var(--text-secondary);
            font-size: 14px;
        }

        /* Results Section */
        .results-section {
            padding: 40px;
            display: none;
            background: var(--bg-gray);
        }

        .results-section.visible {
            display: block;
        }

        .results-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
        }

        .results-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .results-count {
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        /* Nickname Grid */
        .nickname-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 16px;
        }

        .nickname-card {
            background: var(--bg-white);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .nickname-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .nickname-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .nickname-card:hover::before {
            transform: translateX(0);
        }

        .nickname-text {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 8px;
            word-break: break-all;
            line-height: 1.4;
        }

        .nickname-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nickname-type {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .copy-icon {
            width: 16px;
            height: 16px;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

        .nickname-card:hover .copy-icon {
            color: var(--primary);
            transform: scale(1.2);
        }

        /* Suggestions Banner */
        .suggestions-banner {
            margin-top: 30px;
            padding: 20px;
            background: linear-gradient(135deg, var(--primary-light), rgba(0, 212, 255, 0.1));
            border-radius: var(--radius);
            text-align: center;
            border: 1px solid rgba(84, 104, 255, 0.2);
        }

        .suggestions-text {
            color: var(--text-primary);
            margin-bottom: 16px;
            font-size: 16px;
        }

        .suggestions-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .suggestions-link:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Error Message */
        .error-message {
            display: none;
            padding: 12px 16px;
            background: #fff5f5;
            border: 1px solid #feb2b2;
            border-radius: 8px;
            color: var(--error);
            font-size: 14px;
            margin-top: 16px;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--text-primary);
            color: white;
            padding: 14px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: var(--shadow-lg);
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast-icon {
            width: 20px;
            height: 20px;
            background: var(--success);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 20px 16px;
            }

            .generator-section {
                padding: 24px 20px;
            }

            .generator-title h1 {
                font-size: 24px;
            }

            .generator-title p {
                font-size: 14px;
            }

            .input-container {
                flex-direction: column;
            }

            .generate-button {
                width: 100%;
                justify-content: center;
            }

            .options-row {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .results-section {
                padding: 24px 20px;
            }

            .results-header {
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }

            .nickname-grid {
                grid-template-columns: 1fr;
            }

            .toast {
                right: 16px;
                left: 16px;
                bottom: 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 16px 12px;
            }

            .generator-section {
                padding: 20px 16px;
            }

            .generator-title h1 {
                font-size: 20px;
            }

            .main-input {
                font-size: 14px;
                padding: 12px 16px;
            }

            .generate-button {
                font-size: 14px;
                padding: 12px 24px;
            }
        }