.psg-premium-ui {
    max-width: 1080px;
    margin: 40px auto;
    padding: 40px;
    background: #1a1c1e;
    color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.psg-premium-ui ::selection {
    background: rgba(79, 172, 254, 0.99);
    color: #000000;
}

.psg-header {
    text-align: center;
    margin-bottom: 30px;
}

.psg-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.psg-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.psg-form-group {
    margin-bottom: 25px;
}

.psg-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0e0;
}

.psg-form-group textarea, 
.psg-form-group input[type="email"], 
.psg-form-group input[type="url"] {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.psg-form-group textarea {
    height: 200px;
    resize: vertical;
}

.psg-form-group textarea:focus, 
.psg-form-group input[type="email"]:focus,
.psg-form-group input[type="url"]:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

.psg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.psg-option {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.psg-option label {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.psg-option select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.psg-option select:focus,
.psg-option input[type="date"]:focus {
    outline: none;
    border-color: #4facfe;
}

.psg-option input[type="date"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
}

/* Calendar icon color fix for some browsers */
.psg-option input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.psg-option select option {
    background: #1a1c1e;
    color: #ffffff;
}

.psg-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.psg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

.psg-btn:active {
    transform: translateY(0);
}

.psg-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: psg-spin 0.8s linear infinite;
}

@keyframes psg-spin {
    to {
        transform: rotate(360deg);
    }
}

#psg-message {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.psg-success {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.psg-error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

@media (max-width: 600px) {
    .psg-options {
        flex-direction: column;
    }

    .psg-option {
        max-width: 100%;
    }

    .psg-header h2 {
        font-size: 1.8rem;
    }
}

.psg-stats {
    font-size: 0.95rem;
    color: #4facfe;
    font-weight: 500;
    margin-top: 5px;
}

.psg-option input[type="number"],
.psg-option input[type="email"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.psg-option input[type="number"]::-webkit-outer-spin-button,
.psg-option input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.psg-option input[type="number"]:focus,
.psg-option input[type="email"]:focus {
    outline: none;
    border-color: #4facfe;
}

.checkbox-label {
    gap: 8px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4facfe;
    cursor: pointer;
}

.psg-input-error {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 5px;
}

.psg-type-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.psg-toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #a0a0a0;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.psg-toggle-btn.active {
    background: #4facfe;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.psg-field-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #707070;
}

.psg-download-link {
    display: inline-block;
    padding: 14px 28px;
    background: #2ed573;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.psg-download-link:hover {
    background: #26af5f;
    color: #ffffff;
}

.psg-download-hint {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 5px;
}

.psg-copy-btn {
    margin-top: 10px;
    padding: 8px 12px;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.psg-copy-btn:hover {
    background: #444;
}

.psg-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
}

.psg-sitemap-list li {
    margin-bottom: 10px;
}

.psg-sitemap-list li:last-child {
    margin-bottom: 0;
}

.psg-sitemap-list a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psg-sitemap-list a:hover {
    color: #00f2fe;
}

.psg-sitemap-list a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4facfe;
    border-radius: 50%;
}

/* Results Table UI */
.psg-results-container {
    margin: 25px 0;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.psg-results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.psg-results-table th {
    background: #ffffff;
    padding: 12px 15px;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.psg-results-table th:first-child {
    border-radius: 12px 0 0 0;
    text-align: left;
}

.psg-results-table th:last-child {
    border-radius: 0 12px 0 0;
}

.psg-results-table th:nth-child(2),
.psg-results-table th:nth-child(3),
.psg-results-table th:nth-child(4) {
    text-align: center;
    width: 80px;
}

.psg-results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    color: #e0e0e0;
}

.psg-results-table tr:last-child td {
    border-bottom: none;
}

.psg-link-cell {
    text-align: center;
}

.psg-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #4facfe;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    cursor: pointer;
}

.psg-action-btn:hover {
    background: #4facfe;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.psg-action-btn.psg-dl-btn {
    color: #4facfe;
}

.psg-action-btn.psg-dl-btn:hover {
    background: #4facfe;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.psg-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Toast Notification */
.psg-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #4facfe;
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.psg-toast.show {
    transform: translateX(-50%) translateY(0);
}
