/* ================================
   Resume Points Generator - Styles
   ================================ */

:root {
    --rpg-primary: #6a1b9a;
    --rpg-primary-light: #ede7f6;
    --rpg-primary-dark: #4a148c;
    --rpg-accent: #00bcd4;
    --rpg-success: #10b981;
    --rpg-error: #ef4444;
    --rpg-warning: #f59e0b;
    --rpg-border: #e2e8f0;
    --rpg-bg-light: #f8fafc;
    --rpg-page-bg: #f5f5f5;
    --rpg-text-dark: #1e293b;
    --rpg-text-light: #64748b;
    --rpg-shadow: 0 1px 2px rgba(0,0,0,0.06);
    --rpg-shadow-lg: 0 10px 18px rgba(15, 23, 42, 0.12);
}

:where(.rpg-hero, .rpg-container, .rpg-modal, .rpg-toast) * {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--rpg-text-dark);
    background: var(--rpg-page-bg);
    line-height: 1.5;
}

/* ==================== HERO SECTION ==================== */
.rpg-hero {
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(0, 188, 212, 0.18), transparent 50%),
                linear-gradient(125deg, #120f38 0%, #251451 48%, #0f172a 100%);
    color: #ffffff;
    padding: 1.6rem 1.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--rpg-shadow-lg);
    max-width: 1300px;
    margin: 0.6rem auto 1.2rem;
}

.rpg-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(0, 188, 212, 0.18);
    border-radius: 50%;
}

.rpg-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rpg-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.rpg-hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.rpg-hero-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rpg-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.rpg-btn-primary {
    background: var(--rpg-accent);
    color: #0f172a;
    box-shadow: var(--rpg-shadow);
}

.rpg-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.25);
}

.rpg-btn-secondary {
    background: #f1f5f9;
    color: var(--rpg-text-dark);
    border: 1px solid var(--rpg-border);
}

.rpg-btn-secondary:hover {
    background: var(--rpg-primary);
    color: #ffffff;
    border-color: var(--rpg-primary);
}

/* ==================== MAIN CONTAINER ==================== */
.rpg-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto 2rem;
    gap: 1rem;
    padding: 0 0.8rem 2rem;
    align-items: flex-start;
}

/* ==================== SIDEBAR FILTERS ==================== */
.rpg-sidebar {
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
    top: var(--sticky-offset);
    position: sticky;
    box-shadow: var(--rpg-shadow);
    border: 1px solid var(--rpg-border);
}

.rpg-sidebar h3 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rpg-text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 14px;
}

.rpg-sidebar h3:first-child {
    margin-top: 0;
}

.rpg-form-group {
    margin-bottom: 14px;
}

.rpg-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--rpg-text-dark);
}

.rpg-form-group select,
.rpg-form-group input[type="text"],
.rpg-form-group input[type="email"],
.rpg-form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--rpg-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.rpg-form-group select:focus,
.rpg-form-group input[type="text"]:focus,
.rpg-form-group input[type="email"]:focus,
.rpg-form-group textarea:focus {
    outline: none;
    border-color: var(--rpg-primary);
    box-shadow: 0 0 0 3px var(--rpg-primary-light);
}

.rpg-keyword-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rpg-keyword-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--rpg-border);
    border-radius: 10px;
    padding: 6px 8px;
    transition: all 0.2s ease;
}

.rpg-keyword-input-row:focus-within {
    border-color: var(--rpg-primary);
    box-shadow: 0 0 0 3px var(--rpg-primary-light);
}

.rpg-keyword-input-row input {
    flex: 1;
    border: none;
    padding: 6px 4px;
    font-size: 0.84rem;
    background: transparent;
}

.rpg-keyword-input-row input:focus {
    outline: none;
    box-shadow: none;
}

.rpg-remove-keyword-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f8fafc;
    color: var(--rpg-text-light);
    border: 1px solid var(--rpg-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rpg-remove-keyword-btn:hover {
    border-color: #fecaca;
    color: var(--rpg-error);
}

.rpg-remove-keyword-btn.is-disabled,
.rpg-remove-keyword-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rpg-add-keyword-btn {
    width: 100%;
    padding: 8px 10px;
    background: var(--rpg-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 8px;
}

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

.rpg-generate-btn {
    width: 100%;
    padding: 10px;
    background: var(--rpg-success);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.rpg-generate-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.25);
}

.rpg-generate-btn:active {
    transform: translateY(0);
}

/* Reset Filter Button */
.rpg-reset-filter-btn {
    width: 100%;
    padding: 10px;
    background: var(--rpg-border);
    color: var(--rpg-text-dark);
    border: 1px solid var(--rpg-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.rpg-reset-filter-btn:hover {
    background: #d1d5db;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.rpg-reset-filter-btn:active {
    transform: translateY(0);
}

/* Searchable Select */
.rpg-searchable-select {
    position: relative;
}

.rpg-select-trigger {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--rpg-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.rpg-select-trigger:hover {
    border-color: var(--rpg-primary);
    background: var(--rpg-primary-light);
}

.rpg-select-trigger i {
    font-size: 0.7rem;
    color: var(--rpg-text-light);
    transition: transform 0.2s ease;
}

.rpg-select-search {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid var(--rpg-border);
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.rpg-select-search:focus {
    outline: none;
    background: var(--rpg-primary-light);
}

.rpg-searchable-select select {
    display: none;
}

.rpg-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--rpg-border);
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -1px;
}

.rpg-select-dropdown.active {
    display: flex;
    flex-direction: column;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rpg-dropdown-options {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
}

.rpg-dropdown-separator {
    height: 1px;
    background: var(--rpg-border);
    margin: 8px 0;
}

.rpg-dropdown-option {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--rpg-text-dark);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.rpg-dropdown-all {
    font-weight: 600;
    color: var(--rpg-primary);
    background: var(--rpg-primary-light);
}

.rpg-dropdown-all:hover {
    background: linear-gradient(90deg, var(--rpg-primary-light) 0%, rgba(106, 27, 154, 0.05) 100%);
}

.rpg-dropdown-option:not(.rpg-dropdown-all):hover {
    background: var(--rpg-bg-light);
    padding-left: 16px;
}

.rpg-dropdown-option:last-child {
    border-bottom: none;
}

/* ==================== MAIN CONTENT AREA ==================== */
.rpg-content {
    flex: 1;
    min-width: 0;
}

.rpg-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--rpg-border);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--rpg-shadow);
}

.rpg-content-header h2 {
    font-size: 1.1rem;
    color: var(--rpg-text-dark);
}

.rpg-results-count {
    font-size: 0.8rem;
    color: var(--rpg-text-dark);
    font-weight: 600;
    background: var(--rpg-primary-light);
    padding: 4px 10px;
    border-radius: 999px;
}

.rpg-content-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.rpg-copy-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== POINTS DISPLAY ==================== */
.rpg-points-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--rpg-shadow);
    border: 1px solid var(--rpg-border);
}

.rpg-points-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rpg-points-plain {
    background: #ffffff;
    border-radius: 10px;
    border: 1px dashed var(--rpg-border);
    padding: 12px;
}

.rpg-points-bullets {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--rpg-text-dark);
}

.rpg-points-bullets li {
    line-height: 1.6;
}

.rpg-point-item {
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--rpg-border);
    border-left: 3px solid var(--rpg-primary);
    transition: all 0.2s ease;
    font-size: 0.88rem;
    line-height: 1.5;
}

.rpg-point-item:hover {
    box-shadow: var(--rpg-shadow-lg);
    transform: translateX(2px);
}

.rpg-point-text {
    margin: 0;
    padding-left: 18px;
    position: relative;
}

.rpg-point-text::before {
    content: "\\2022";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--rpg-primary);
    font-size: 1rem;
    line-height: 1;
}

.rpg-point-item code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--rpg-primary);
    font-weight: 600;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
}

.rpg-point-item strong {
    color: var(--rpg-primary-dark);
    font-weight: 700;
}

.rpg-point-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--rpg-text-light);
    margin-top: 8px;
}

.rpg-point-action {
    display: flex;
    gap: 6px;
}

.rpg-point-action button {
    padding: 4px 10px;
    font-size: 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rpg-copy-btn {
    background: var(--rpg-primary-light);
    color: var(--rpg-primary-dark);
    font-weight: 600;
}

.rpg-copy-btn:hover {
    background: var(--rpg-primary);
    color: #ffffff;
}

/* ==================== EMPTY STATE ==================== */
.rpg-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--rpg-text-light);
}

.rpg-empty-state svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.rpg-empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--rpg-text-dark);
}

.rpg-empty-state p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==================== PAGINATION ==================== */
.rpg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rpg-pagination button,
.rpg-pagination span {
    padding: 6px 10px;
    border: 1px solid var(--rpg-border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.82rem;
}

.rpg-pagination button:hover:not(:disabled) {
    border-color: var(--rpg-primary);
    background: var(--rpg-primary-light);
}

.rpg-pagination span.active {
    background: var(--rpg-primary);
    color: white;
    border-color: var(--rpg-primary);
    font-weight: 600;
}

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

/* ==================== ADMIN MODAL ==================== */
.rpg-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: rpg-fadeIn 0.3s ease;
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 12px);
}

.rpg-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes rpg-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rpg-modal-content {
    background: white;
    padding: 22px;
    border-radius: 14px;
    width: 92%;
    max-width: 1100px;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: rpg-slideUp 0.25s ease;
}

@keyframes rpg-slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rpg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rpg-border);
}

.rpg-modal-header h2 {
    font-size: 1.1rem;
    color: var(--rpg-text-dark);
    flex: 1;
}

.rpg-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpg-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--rpg-text-light);
    transition: all 0.2s ease;
}

.rpg-modal-close:hover {
    color: var(--rpg-text-dark);
}

.rpg-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rpg-modal-body .rpg-form-group {
    margin-bottom: 0;
}

.rpg-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--rpg-border);
}

.rpg-modal-footer button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

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

.rpg-modal-btn-secondary {
    background: var(--rpg-border);
    color: var(--rpg-text-dark);
}

.rpg-modal-btn-secondary:hover {
    background: #d1d5db;
}

/* ==================== TABS ==================== */
.rpg-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--rpg-border);
}

.rpg-modal-tabs button {
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--rpg-text-light);
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.rpg-modal-tabs button.is-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.rpg-admin-locked .rpg-modal-tabs {
    display: none;
}

.rpg-admin-locked .rpg-tab-content {
    display: none;
}

.rpg-admin-locked .rpg-tab-content.active {
    display: block;
}

.rpg-modal-tabs button.active {
    color: var(--rpg-primary);
    border-bottom-color: var(--rpg-primary);
}

.rpg-modal-tabs button:hover {
    color: var(--rpg-text-dark);
}

.rpg-tab-content {
    display: none;
}

.rpg-tab-content.active {
    display: block;
}

/* ==================== TOAST MESSAGES ==================== */
.rpg-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 400px;
    animation: rpg-slideInRight 0.3s ease;
    z-index: 2000;
}

@keyframes rpg-slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.rpg-toast.success {
    border-left: 4px solid var(--rpg-success);
}

.rpg-toast.error {
    border-left: 4px solid var(--rpg-error);
}

.rpg-toast.warning {
    border-left: 4px solid var(--rpg-warning);
}

.rpg-toast-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

.rpg-toast.success .rpg-toast-icon {
    color: var(--rpg-success);
}

.rpg-toast.error .rpg-toast-icon {
    color: var(--rpg-error);
}

.rpg-toast.warning .rpg-toast-icon {
    color: var(--rpg-warning);
}

.rpg-toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: var(--rpg-text-dark);
}

.rpg-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rpg-text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.rpg-toast-close:hover {
    color: var(--rpg-text-dark);
}

/* ==================== LOADING STATE ==================== */
.rpg-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--rpg-primary-light);
    border-top-color: var(--rpg-primary);
    border-radius: 50%;
    animation: rpg-spin 0.6s linear infinite;
}

@keyframes rpg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== HIGHLIGHT ==================== */
.rpg-highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 4px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .rpg-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 0.8rem 1.6rem;
    }
    
    .rpg-sidebar {
        width: 100%;
        top: auto;
        position: relative;
    }
    
    .rpg-hero {
        margin: 0.6rem 0.8rem 1rem;
    }

    .rpg-hero h1 {
        font-size: 1.6rem;
    }
    
    .rpg-hero p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .rpg-hero {
        padding: 1.2rem 1rem;
    }
    
    .rpg-hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .rpg-hero p {
        font-size: 0.82rem;
        margin-bottom: 0.8rem;
    }
    
    .rpg-hero-buttons {
        gap: 10px;
    }
    
    .rpg-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .rpg-container {
        flex-direction: column;
        gap: 0.8rem;
        min-height: auto;
    }
    
    .rpg-sidebar {
        width: 100%;
        grid-template-columns: 1fr;
        position: relative;
        top: auto;
    }
    
    .rpg-content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rpg-points-container {
        padding: 12px;
    }
    
    .rpg-point-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .rpg-point-meta {
        gap: 8px;
        font-size: 0.74rem;
    }
    
    .rpg-modal-content {
        width: 95%;
        padding: 18px;
    }

    .rpg-content-actions {
        justify-content: stretch;
    }

    .rpg-copy-all-btn {
        width: 100%;
    }

    .rpg-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rpg-admin-toolbar-left,
    .rpg-admin-toolbar-right {
        justify-content: space-between;
    }
    
    .rpg-toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .rpg-hero {
        padding: 1rem 0.8rem;
    }
    
    .rpg-hero h1 {
        font-size: 1.2rem;
    }
    
    .rpg-hero p {
        font-size: 0.8rem;
    }
    
    .rpg-hero-buttons {
        flex-direction: column;
    }
    
    .rpg-btn {
        width: 100%;
    }
    
    .rpg-container {
        padding: 0 0.6rem 1.4rem;
    }
    
    .rpg-sidebar {
        padding: 14px;
    }
    
    .rpg-form-group select,
    .rpg-form-group input[type="text"],
    .rpg-form-group textarea {
        padding: 10px;
        font-size: 16px;
    }
    
    .rpg-pagination {
        gap: 4px;
    }
    
    .rpg-pagination button,
    .rpg-pagination span {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .rpg-content-header h2 {
        font-size: 1rem;
    }
    
    .rpg-modal-content {
        width: 95%;
        padding: 14px;
    }
    
    .rpg-modal-footer {
        flex-direction: column;
    }
    
    .rpg-modal-footer button {
        width: 100%;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.rpg-hidden {
    display: none !important;
}

.rpg-text-center {
    text-align: center;
}

.rpg-mt-10 {
    margin-top: 10px;
}

.rpg-mt-20 {
    margin-top: 20px;
}

.rpg-mb-10 {
    margin-bottom: 10px;
}

.rpg-mb-20 {
    margin-bottom: 20px;
}

.rpg-no-scroll {
    overflow: hidden;
}

/* ==================== ADMIN ITEMS ==================== */
.rpg-admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid var(--rpg-border);
    font-size: 0.95rem;
}

.rpg-admin-item span {
    flex: 1;
    font-weight: 500;
}

.rpg-admin-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.rpg-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}

.rpg-admin-toolbar-left,
.rpg-admin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpg-admin-toolbar select {
    padding: 6px 8px;
    border: 1px solid var(--rpg-border);
    border-radius: 8px;
    font-size: 0.82rem;
    background: #ffffff;
}

.rpg-admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rpg-text-dark);
}

.rpg-admin-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rpg-text-dark);
    background: var(--rpg-primary-light);
    padding: 4px 10px;
    border-radius: 999px;
}

.rpg-admin-table-wrapper {
    border: 1px solid var(--rpg-border);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.rpg-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.rpg-admin-table thead {
    background: #f1f5f9;
}

.rpg-admin-table th,
.rpg-admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rpg-border);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.rpg-admin-table tbody tr:hover {
    background: #f8fafc;
}

.rpg-admin-table .rpg-action-btn {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rpg-action-edit {
    background: var(--rpg-primary-light);
    color: var(--rpg-primary-dark);
}

.rpg-action-edit:hover {
    background: var(--rpg-primary);
    color: #ffffff;
}

.rpg-action-delete {
    background: #fee2e2;
    color: var(--rpg-error);
}

.rpg-action-delete:hover {
    background: var(--rpg-error);
    color: #ffffff;
}

.rpg-admin-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.rpg-admin-pagination button,
.rpg-admin-pagination span {
    padding: 6px 10px;
    border: 1px solid var(--rpg-border);
    background: #ffffff;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rpg-admin-pagination span.active {
    background: var(--rpg-primary);
    color: #ffffff;
    border-color: var(--rpg-primary);
}

.rpg-admin-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rpg-admin-delete-selected {
    background: #fee2e2;
    color: var(--rpg-error);
    border: 1px solid #fecaca;
}

.rpg-admin-delete-selected:hover {
    background: var(--rpg-error);
    color: #ffffff;
    border-color: var(--rpg-error);
}

.rpg-delete-admin-btn {
    padding: 6px 12px;
    background: var(--rpg-error);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rpg-delete-admin-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.rpg-delete-title-btn {
    padding: 6px 12px;
    background: #fee2e2;
    color: var(--rpg-error);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rpg-delete-title-btn:hover {
    background: var(--rpg-error);
    color: #ffffff;
}

.rpg-admin-point-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--rpg-border);
    transition: all 0.3s ease;
}

.rpg-admin-point-item:hover {
    box-shadow: var(--rpg-shadow-lg);
}

.rpg-point-content p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rpg-text-dark);
}

.rpg-point-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.rpg-edit-point-btn,
.rpg-delete-point-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rpg-edit-point-btn {
    background: var(--rpg-primary-light);
    color: var(--rpg-primary);
}

.rpg-edit-point-btn:hover {
    background: var(--rpg-primary);
    color: white;
}

.rpg-delete-point-btn {
    background: #fee2e2;
    color: var(--rpg-error);
}

.rpg-delete-point-btn:hover {
    background: var(--rpg-error);
    color: white;
}








/* SEO Sections Styles */
        .rpg-seo-section {
            max-width: 1300px;
            margin: 0 auto 2rem;
            padding: 0 0.8rem;
        }

        .rpg-intro-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 3rem 2rem;
            border-radius: 16px;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .rpg-intro-section h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-align: center;
        }

        .rpg-intro-section p {
            font-size: 1.05rem;
            line-height: 1.8;
            max-width: 900px;
            margin: 0 auto 1rem;
            opacity: 0.95;
        }

        .rpg-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .rpg-feature-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .rpg-feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
            border-color: #667eea;
        }

        .rpg-feature-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: white;
            margin-bottom: 1.5rem;
        }

        .rpg-feature-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 0.8rem;
        }

        .rpg-feature-card p {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #64748b;
        }

        .rpg-how-to-use {
            background: white;
            padding: 3rem 2rem;
            border-radius: 16px;
            margin: 2rem 0;
            border: 1px solid #e2e8f0;
        }

        .rpg-how-to-use h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 2rem;
            text-align: center;
        }

        .rpg-steps-container {
            display: grid;
            gap: 2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .rpg-step {
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
        }

        .rpg-step-number {
            min-width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .rpg-step-content h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 0.5rem;
        }

        .rpg-step-content p {
            font-size: 0.95rem;
            line-height: 1.7;
            color: #64748b;
        }

        .rpg-benefits-section {
            background: #f8fafc;
            padding: 3rem 2rem;
            border-radius: 16px;
            margin: 2rem 0;
        }

        .rpg-benefits-section h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 2rem;
            text-align: center;
        }

        .rpg-benefits-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .rpg-benefit-item {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            background: white;
            padding: 1.5rem;
            border-radius: 10px;
            border-left: 4px solid #667eea;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .rpg-benefit-icon {
            color: #667eea;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .rpg-benefit-text h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 0.5rem;
        }

        .rpg-benefit-text p {
            font-size: 0.9rem;
            line-height: 1.6;
            color: #64748b;
        }

        .rpg-roles-section {
            background: white;
            padding: 3rem 2rem;
            border-radius: 16px;
            margin: 2rem 0;
            border: 1px solid #e2e8f0;
        }

        .rpg-roles-section h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .rpg-roles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .rpg-role-tag {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            text-align: center;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .rpg-role-tag:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

        .rpg-faq-section {
            background: white;
            padding: 3rem 2rem;
            border-radius: 16px;
            margin: 2rem 0;
            border: 1px solid #e2e8f0;
        }

        .rpg-faq-section h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 2rem;
            text-align: center;
        }

        .rpg-faq-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .rpg-faq-item {
            background: #f8fafc;
            border-radius: 10px;
            margin-bottom: 1rem;
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .rpg-faq-question {
            padding: 1.5rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            color: #1e293b;
            transition: all 0.3s ease;
        }

        .rpg-faq-question:hover {
            background: #ede7f6;
        }

        .rpg-faq-icon {
            color: #667eea;
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .rpg-faq-item.active .rpg-faq-icon {
            transform: rotate(180deg);
        }

        .rpg-faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .rpg-faq-item.active .rpg-faq-answer {
            max-height: 500px;
        }

        .rpg-faq-answer-content {
            padding: 0 1.5rem 1.5rem;
            color: #64748b;
            line-height: 1.7;
        }

        .rpg-quick-links {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            color: white;
            padding: 3rem 2rem;
            border-radius: 16px;
            margin: 2rem 0;
        }

        .rpg-quick-links h2 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-align: center;
        }

        .rpg-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .rpg-link-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .rpg-link-card:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-3px);
        }

        .rpg-link-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .rpg-link-card p {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 1rem;
        }

        .rpg-link-card a {
            color: #fbbf24;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .rpg-link-card a:hover {
            gap: 0.8rem;
        }

        .rpg-cta-section {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 3rem 2rem;
            border-radius: 16px;
            text-align: center;
            margin: 2rem 0;
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
        }

        .rpg-cta-section h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .rpg-cta-section p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.95;
        }

        .rpg-cta-button {
            display: inline-block;
            padding: 1rem 2.5rem;
            background: white;
            color: #059669;
            font-weight: 700;
            border-radius: 10px;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }

        .rpg-cta-button:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
        }

        @media (max-width: 768px) {
            .rpg-intro-section h2,
            .rpg-how-to-use h2,
            .rpg-benefits-section h2,
            .rpg-roles-section h2,
            .rpg-faq-section h2,
            .rpg-quick-links h2,
            .rpg-cta-section h2 {
                font-size: 1.5rem;
            }

            .rpg-intro-section,
            .rpg-how-to-use,
            .rpg-benefits-section,
            .rpg-roles-section,
            .rpg-faq-section,
            .rpg-quick-links,
            .rpg-cta-section {
                padding: 2rem 1.5rem;
            }

            .rpg-features-grid,
            .rpg-benefits-list,
            .rpg-roles-grid,
            .rpg-links-grid {
                grid-template-columns: 1fr;
            }

            .rpg-step {
                gap: 1rem;
            }

            .rpg-step-number {
                min-width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
        }
