/**
 * @file
 * F-Skill Registration - Premium Fashion-Forward Aesthetic.
 * Designed for fashion professionals who appreciate sophisticated design.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    /* Fashion-Forward Color Palette */
    --fskill-primary: #1a1a2e;
    /* Deep navy - sophistication */
    --fskill-primary-hover: #16213e;
    --fskill-accent: #e94560;
    /* Fashion red - energy */
    --fskill-accent-soft: #ff6b6b;
    --fskill-gold: #d4a574;
    /* Elegant gold */
    --fskill-bg: #fafafa;
    --fskill-card-bg: #ffffff;
    --fskill-border: #eaeaea;
    --fskill-text-primary: #1a1a2e;
    --fskill-text-secondary: #6b7280;
    --fskill-gradient-fashion: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --fskill-gradient-accent: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --fskill-shadow-soft: 0 4px 20px rgba(26, 26, 46, 0.08);
    --fskill-shadow-hover: 0 12px 40px rgba(26, 26, 46, 0.15);
    --fskill-radius: 16px;
}

/* === SCOPED REGISTRATION LAYOUT === */
#user-register-form.fskill-layout {
    max-width: 640px;
    margin: 50px auto;
    font-family: 'Outfit', sans-serif;
    color: var(--fskill-text-primary);
    position: relative;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Hide Sidebar/System Fields */
.page-user-register .region-sidebar-first,
.page-user-register .region-sidebar-second,
#user-register-form.fskill-layout .field--name-user-picture,
#user-register-form.fskill-layout .field--name-contact,
#user-register-form.fskill-layout .field--name-timezone,
#user-register-form.fskill-layout .field--name-opigno-private-profile,
#user-register-form.fskill-layout .field--type-boolean {
    display: none !important;
}

/* === MAIN CARD CONTAINER === */
#user-register-form.fskill-layout .fskill-reg-step {
    background: var(--fskill-card-bg);
    padding: 48px;
    border-radius: var(--fskill-radius);
    box-shadow: var(--fskill-shadow-soft);
    margin-bottom: 28px;
    border: 1px solid var(--fskill-border);
    transition: box-shadow 0.3s ease;
}

#user-register-form.fskill-layout .fskill-reg-step:hover {
    box-shadow: var(--fskill-shadow-hover);
}

#user-register-form.fskill-layout .fskill-step-type {
    display: block;
}

#user-register-form.fskill-layout .fskill-step-identity,
#user-register-form.fskill-layout .fskill-step-security,
#user-register-form.fskill-layout .fskill-step-profile {
    display: none;
}

/* === TITLE STYLING === */
#user-register-form.fskill-layout .fskill-step-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--fskill-primary);
    margin: 0 0 48px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* === USER TYPE CARDS - FASHION PREMIUM === */
.fskill-custom-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.fskill-card-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--fskill-border);
    border-radius: var(--fskill-radius);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect */
.fskill-card-option::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 60%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.fskill-card-option:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.fskill-card-option .icon {
    font-size: 52px;
    margin-bottom: 18px;
    display: block;
    transition: transform 0.3s ease;
}

.fskill-card-option .label {
    font-size: 17px;
    font-weight: 600;
    color: var(--fskill-text-primary);
    letter-spacing: 0.02em;
}

/* Hover State */
.fskill-card-option:hover {
    border-color: var(--fskill-primary);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4f8 100%);
    transform: translateY(-6px);
    box-shadow: var(--fskill-shadow-hover);
}

.fskill-card-option:hover .icon {
    transform: scale(1.1);
}

/* Active State - Fashion Accent */
.fskill-card-option.active {
    border-color: var(--fskill-accent);
    background: linear-gradient(145deg, #fff5f7 0%, #ffe8ec 100%);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.fskill-card-option.active .label {
    color: var(--fskill-accent);
}

/* === FORM INPUTS - REFINED ELEGANCE === */
#user-register-form.fskill-layout .form-item {
    position: relative;
    margin-bottom: 28px;
}

#user-register-form.fskill-layout .form-item label,
.fskill-profile-edit-form .form-item label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--fskill-text-secondary);
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 0;
    margin: 0;
    display: block;
    width: auto;
    letter-spacing: 0.02em;
}

#user-register-form.fskill-layout .form-item label.float-up {
    top: -10px;
    left: 12px;
    background: var(--fskill-card-bg);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fskill-accent);
    z-index: 20;
    height: auto;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#user-register-form.fskill-layout input.form-text,
#user-register-form.fskill-layout input.form-email,
#user-register-form.fskill-layout input.form-tel,
#user-register-form.fskill-layout input[type="password"],
#user-register-form.fskill-layout select,
.fskill-profile-edit-form input.form-text,
.fskill-profile-edit-form input.form-email,
.fskill-profile-edit-form input.form-tel,
.fskill-profile-edit-form input[type="password"],
.fskill-profile-edit-form select {
    width: 100%;
    height: 56px !important;
    padding: 0 18px !important;
    border: 1.5px solid var(--fskill-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    appearance: none;
    margin: 0;
    display: block;
    transition: all 0.25s ease;
}

#user-register-form.fskill-layout input:focus,
#user-register-form.fskill-layout select:focus,
.fskill-profile-edit-form input:focus,
.fskill-profile-edit-form select:focus {
    border-color: var(--fskill-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
    outline: none;
}

#user-register-form.fskill-layout input.valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
}

#user-register-form.fskill-layout input.error {
    border-color: var(--fskill-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

div.error-msg {
    color: var(--fskill-accent);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

/* === BUTTONS - PREMIUM FASHION === */
#user-register-form.fskill-layout .form-actions {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Primary buttons - Fashion Gradient */
#user-register-form.fskill-layout .fskill-btn-primary,
#user-register-form.fskill-layout #edit-submit,
.fskill-profile-edit-form .fskill-btn-primary,
.fskill-profile-edit-form #edit-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 54px;
    border-radius: 12px;
    background: var(--fskill-gradient-fashion);
    color: #fff;
    font-weight: 600;
    border: none;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Shimmer effect on buttons */
#user-register-form.fskill-layout .fskill-btn-primary::after,
#user-register-form.fskill-layout #edit-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

#user-register-form.fskill-layout .fskill-btn-primary:hover::after,
#user-register-form.fskill-layout #edit-submit:hover::after {
    left: 100%;
}

#user-register-form.fskill-layout .form-actions>* {
    width: 100%;
    margin: 0;
}

#user-register-form.fskill-layout .fskill-btn-primary:hover,
#user-register-form.fskill-layout #edit-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.35);
}

/* Secondary/Link Buttons */
#user-register-form.fskill-layout .fskill-btn-link {
    background: transparent;
    color: var(--fskill-text-secondary);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

#user-register-form.fskill-layout .fskill-btn-link:hover {
    color: var(--fskill-accent);
}

/* === SKILL CHIPS - FASHION TAGS === */
.fskill-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    width: 100%;
}

.fskill-skill-chips .form-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--fskill-border);
    border-radius: 24px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: auto;
    box-shadow: none;
    box-sizing: border-box;
}

/* Hover Effect */
.fskill-skill-chips .form-item:hover {
    border-color: var(--fskill-accent);
    background: #fff5f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.1);
}

/* SELECTED STATE (Active Tag) - Fashion Accent */
.fskill-skill-chips .form-item.selected {
    background: var(--fskill-gradient-accent) !important;
    border-color: var(--fskill-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

/* Selected Text Color Override */
.fskill-skill-chips .form-item.selected label {
    color: #fff !important;
}

/* Hide the native checkbox completely */
.fskill-skill-chips input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* The Label Text */
.fskill-skill-chips label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fskill-text-primary);
    margin: 0;
    cursor: pointer;
    pointer-events: none;
    /* Let parent handle click */
}

/* Remove the circle indicator (Tag style doesn't need it) */
.fskill-skill-chips .form-item::after {
    display: none;
}

/* === GENERAL SPACING === */
#user-register-form.fskill-layout .form-item {
    margin-bottom: 28px;
}

/* Select Box Polish */
#user-register-form.fskill-layout select {
    background-color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

/* Fix z-index for select dropdown container */
#user-register-form.fskill-layout .form-item-field-fskill-brand-role {
    position: relative;
    z-index: 200;
}

/* Ensure native select dropdown appears on top */
#user-register-form.fskill-layout select:focus {
    z-index: 300;
}

/* === EMAIL OTP VERIFICATION === */
.fskill-email-verify-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.fskill-email-verify-wrapper .form-item-mail {
    flex-grow: 1;
    margin-bottom: 0 !important;
}

/* Verify Button */
.fskill-btn-verify-trigger,
.fskill-btn-verify-code {
    height: 56px;
    padding: 0 24px;
    background: #fff;
    border: 2px solid var(--fskill-primary);
    color: var(--fskill-primary);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-top: 2px;
    /* Visual alignment with label */
    white-space: nowrap;
}

.fskill-btn-verify-trigger:hover,
.fskill-btn-verify-code:hover {
    background: #f0f7fe;
}

/* OTP Input Container */
.fskill-otp-container {
    width: 100%;
    margin-top: 16px;
    background: #fafafa;
    border: 1px dashed #ccc;
    padding: 16px;
    border-radius: 8px;
    display: none;
    /* Hidden by default, shown by AJAX */
}

/* Show container when it has content */
.fskill-otp-container:not(:empty) {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* OTP Input Field */
.fskill-otp-input {
    letter-spacing: 4px;
    font-size: 20px !important;
    text-align: center;
    font-weight: 700;
    width: 140px !important;
    margin-right: 12px !important;
    display: inline-block !important;
}

/* Messages */
.otp-sent-msg {
    color: #444;
    font-size: 14px;
    margin-bottom: 12px;
}

.otp-error {
    color: #d93025;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
}

.otp-success {
    color: #0f7b0f;
    font-weight: 600;
    font-size: 15px;
    padding: 8px;
    background: #e6f4ea;
    border-radius: 6px;
    display: inline-block;
}

/* Resend OTP Section */
.fskill-btn-resend-otp {
    background: transparent;
    border: 1px solid #0a66c2;
    color: #0a66c2;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.fskill-btn-resend-otp:hover {
    background: #0a66c2;
    color: #fff;
}

.fskill-resend-timer {
    color: #666;
    font-size: 13px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fskill-resend-timer #fskill-countdown {
    font-weight: 700;
    color: #0a66c2;
    min-width: 20px;
    text-align: center;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MOBILE === */
@media (max-width: 600px) {
    .fskill-custom-cards {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* === STEP 4: GROW NETWORK === */

/* Import Buttons (Google/MS) */
.fskill-import-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.fskill-btn-import {
    flex: 1;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #dadce0 !important;
    background: #fff !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #3c4043;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Add shadow to suggest clickability */
}

/* Specific button styling to differentiate from inputs */
.fskill-btn-google {
    color: #db4437;
    border-color: #db4437 !important;
    background-color: #fff !important;
}

.fskill-btn-microsoft {
    color: #00a4ef;
    border-color: #00a4ef !important;
}

.fskill-btn-import i {
    font-size: 18px;
}

.fskill-btn-google:hover {
    background: #fef0ef !important;
    box-shadow: 0 2px 4px rgba(219, 68, 55, 0.2);
    transform: translateY(-1px);
}

.fskill-btn-microsoft:hover {
    background: #e6f7ff !important;
    box-shadow: 0 2px 4px rgba(0, 164, 239, 0.2);
    transform: translateY(-1px);
}

/* Divider "OR" */
.fskill-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.fskill-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.fskill-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* Bulk Textarea Container */
.fskill-bulk-paste-area {
    position: relative;
    margin-top: 10px;
}

/* Fix Label Overlap for Textarea */
.fskill-bulk-paste-area label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    position: relative !important;
    /* Override absolute positioning from floating labels */
    top: auto !important;
    left: auto !important;
    pointer-events: auto !important;
}

textarea.fskill-bulk-emails {
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    padding: 16px !important;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
}

textarea.fskill-bulk-emails:focus {
    border-color: var(--fskill-primary);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

/* Actions */
.fskill-invite-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.fskill-btn-send-invites {
    background: #0a66c2 !important;
    /* LinkedIn Blue instead of Black */
    color: #fff !important;
    width: auto !important;
    padding: 0 32px;
    border-radius: 24px;
    font-weight: 700;
}

.fskill-btn-send-invites:hover {
    background: #004182 !important;
    transform: translateY(-2px);
}

/* Google Contact List Grid */
#fskill-google-contacts-list {
    display: none;
    /* Hidden by default until populated */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    /* Space for focus ring */
}

/* Scrollbar Polish */
#fskill-google-contacts-list::-webkit-scrollbar {
    width: 6px;
}

#fskill-google-contacts-list::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
}

/* Individual Card */
.fskill-contact-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.fskill-contact-card:hover {
    border-color: #0a66c2;
    background: #f3f9ff;
}

/* Selected State */
.fskill-contact-card.selected {
    border-color: #0a66c2;
    background: #eef3f8;
    box-shadow: 0 0 0 1px #0a66c2;
}

/* Invited State (Visual Feedback) */
.fskill-contact-card.invited {
    border-color: #28a745;
    background: #f0fff4;
    opacity: 0.7;
    pointer-events: none;
    /* Prevent re-selecting */
}

/* Avatar / Initials */
.fskill-card-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 12px;
}

.fskill-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.fskill-initials {
    width: 100%;
    height: 100%;
    background: #7ca1c4;
    /* Soft blue */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* Info Text */
.fskill-card-info {
    flex-grow: 1;
    overflow: hidden;
}

.fskill-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fskill-card-email {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Checkbox Icon */
.fskill-card-check {
    margin-right: 10px;
    font-size: 18px;
    color: #ddd;
}

.fskill-contact-card.selected .fskill-card-check {
    color: #0a66c2;
}

.fskill-contact-card.invited .fskill-card-check {
    color: #28a745;
}

/* === VERIFIED BADGES === */

/* Alpha Student Verified Badge */
.fskill-alpha-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    animation: badgeFadeIn 0.4s ease-out;
}

.fskill-alpha-badge .badge-icon {
    font-size: 16px;
}

.fskill-alpha-badge .badge-text {
    letter-spacing: 0.3px;
}

/* Brand Verified Badge */
.fskill-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.35);
    animation: badgeFadeIn 0.4s ease-out;
}

.fskill-brand-badge .badge-icon {
    font-size: 16px;
}

.fskill-brand-badge .badge-text {
    letter-spacing: 0.3px;
}

/* Pending Verification Notice */
.fskill-pending-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    border: 1px solid #ffc107;
}

/* Badge Animation */
@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Badge Pulse Effect for Premium Feel */
.fskill-alpha-badge:hover,
.fskill-brand-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
    transition: all 0.2s ease;
}

/* Profile Page Badge Display */
.fskill-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.fskill-profile-badge.verified-student {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.fskill-profile-badge.verified-brand {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.fskill-profile-badge.pending {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* === INLINE BADGES FOR SOCIAL WALL === */
/* Compact checkmark badges that appear next to usernames in posts */

.fskill-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    cursor: help;
}

.fskill-badge-inline.verified-student {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.fskill-badge-inline.verified-brand {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(17, 153, 142, 0.4);
}

/* Animation on hover */
.fskill-badge-inline:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

/* Badge in social wall composer */
.fskill-composer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.fskill-composer-badge.verified-student {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.fskill-composer-badge.verified-brand {
    background: rgba(17, 153, 142, 0.15);
    color: #11998e;
}

/* Composer user wrapper */
.fskill-composer-user-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/* === PROFILE EDIT PAGE - LINKEDIN STYLE === */

/* Section Cards (Identity, About, etc.) */
.fskill-profile-edit-form .fskill-profile-section {
    background: #fff;
    border: 1px solid var(--fskill-border);
    border-radius: var(--fskill-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--fskill-shadow-soft);
    transition: box-shadow 0.3s ease;
}

.fskill-profile-edit-form .fskill-profile-section:hover {
    box-shadow: var(--fskill-shadow-hover);
}

/* Remove default Details/Summary styling */
.fskill-profile-edit-form .fskill-profile-section>summary {
    list-style: none;
    cursor: pointer;
    margin-bottom: 24px;
    outline: none;
}

.fskill-profile-edit-form .fskill-profile-section>summary::-webkit-details-marker {
    display: none;
}

.fskill-profile-edit-form .fskill-profile-section>summary>span {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--fskill-primary);
    display: inline-block;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

/* Edit Icon on Section Header (Optional visual cue) */
.fskill-profile-edit-form .fskill-profile-section>summary:hover>span::after {
    content: '✎';
    font-family: system-ui;
    font-size: 16px;
    color: var(--fskill-text-secondary);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
}


/* === ENTITY CARD ITEMS (Experience, Education, etc.) === */

.fskill-entity-card {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--fskill-border);
    position: relative;
    gap: 16px;
}

.fskill-entity-card:last-child {
    border-bottom: none;
}

/* Logo / Icon Area */
.fskill-entity-logo {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f6f8;
    color: var(--fskill-primary);
    font-size: 24px;
    flex-shrink: 0;
    /* border-radius: 8px; */
    /* Square-ish looks more professional for logos */
}

/* Content Area */
.fskill-entity-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Typography */
.fskill-entity-content .entity-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--fskill-primary);
    margin: 0;
    line-height: 1.3;
}

.fskill-entity-content .entity-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--fskill-text-primary);
    line-height: 1.4;
}

.fskill-entity-content .entity-meta {
    font-size: 13px;
    color: var(--fskill-text-secondary);
    margin-top: 2px;
}

.fskill-entity-content .entity-description {
    font-size: 14px;
    color: var(--fskill-text-primary);
    margin-top: 8px;
    line-height: 1.5;
    white-space: pre-line;
    /* Respect newlines */
}

/* Actions (Edit/Delete) */
.fskill-entity-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    /* Hidden by default for cleaner look */
    transition: opacity 0.2s ease;
}

.fskill-entity-card:hover .fskill-entity-actions {
    opacity: 1;
    /* Show on hover */
}

.fskill-entity-actions .action-icon {
    color: var(--fskill-text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.fskill-entity-actions .action-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--fskill-primary);
}

.fskill-entity-actions .action-delete:hover {
    color: var(--fskill-accent);
    background: rgba(233, 69, 96, 0.1);
}

/* "Add" Button Styling */
.fskill-add-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    color: var(--fskill-text-secondary) !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
    margin-top: 16px !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 15px !important;
    /* font-family: 'Outfit', sans-serif; */
    cursor: pointer;
    transition: color 0.2s;
    width: auto !important;
    justify-content: flex-start !important;
}

.fskill-add-btn:hover {
    color: var(--fskill-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.fskill-add-btn::before {
    /* content: '+'; */
    /* Already in text */
    font-size: 18px;
}

/* Remove shimmer from this specific button type if global style interferes */
.fskill-add-btn::after {
    display: none !important;
}

/* Portfolio Links */
.portfolio-link a {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portfolio-link a:hover {
    text-decoration: underline;
}

/* Tab/Group Visibility Fixes */
/* Hide the ugly default vertical tabs/details summary markers if not handled above */
details summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}


/* === MOBILE RESPONSIVENESS === */
@media (max-width: 600px) {
    .fskill-entity-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .fskill-entity-logo {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 8px;
        /* Separate from content when stacked */
    }

    .fskill-entity-actions {
        opacity: 1;
        /* Always show actions on mobile since no hover */
        margin-top: 12px;
        width: 100%;
        justify-content: flex-end;
        background: #f9fafb;
        padding: 8px;
        border-radius: 8px;
    }
}