:root {
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #fbbf24;
    --accent-muted: rgba(251, 191, 36, 0.1);
    --border: #334155;
    --btn-primary: #f8fafc;
    --btn-text: #0f172a;
    --font-ku: 'Noto Kufi Arabic', sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
}

body,
input,
textarea,
button,
select,
[placeholder] {
    font-family: var(--font-ku) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    direction: rtl;
    font-family: var(--font-ku);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 48px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #334155;
    background-image: url('https://cdn-icons-png.flaticon.com/512/1144/1144760.png');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-info .bio {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.btn-message {
    background: #334155;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-message:hover {
    background: #475569;
}

/* Rating Summary Section */
.rating-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.rating-summary {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
    align-items: center;
}

.average-rating {
    text-align: center;
}

.average-num {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.average-stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.total-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rating-bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bar-label {
    width: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bar-track {
    flex-grow: 1;
    height: 8px;
    background: #0f172a;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

/* Custom Image Star Rating */
.star-rating-custom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 32px;
}

.star-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.star-item:hover {
    transform: scale(1.1);
}

.star-img {
    width: 60px;
    height: 60px;
    display: block;
}

.star-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    pointer-events: none;
    text-shadow: 0 0 2px white;
}

/* Emoji Picker styles */
.textarea-wrapper {
    position: relative;
}

.emoji-picker-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #334155;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.emoji-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    background: #0f172a;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    /* Hidden by default */
}

.emoji-item {
    width: 30px;
    height: 30px;
    object-fit: contain;
    cursor: pointer;
}

.emoji-item:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.emoji-inline {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    border: none;
}

/* Review List Section */
.review-item {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 24px;
}

.reviewer-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.review-content {
    flex-grow: 1;
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-tag {
    font-size: 0.75rem;
    background: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-stars-small {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(170, 255, 252, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 24px;
        border-radius: 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .rating-summary {
        flex-direction: column;
        gap: 32px;
    }

    .average-num {
        font-size: 3rem;
    }

    .rating-bars {
        width: 100%;
    }

    .review-item {
        flex-direction: column;
        gap: 16px;
    }

    .reviewer-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Forms Style */
.form-section {
    margin-bottom: 48px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.btn {
    width: 100%;
    padding: 16px;
    background: var(--text-primary);
    color: var(--bg-page);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* FontAwesome Fix */
.fas,
.far {
    font-family: "Font Awesome 6 Free" !important;
}