/* ==========================================================================
   ActorStock Dashboard — Sections (Airbnb-inspired, Gold accent)
   ========================================================================== */

/* ==========================================================================
   0. Dashboard Login Page (split layout)
   ========================================================================== */

.as-login-page {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.as-login-panel {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.as-login-inner {
    width: 100%;
    max-width: 340px;
}

.as-login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E2329;
    margin-bottom: 36px;
}

.as-login-logo i {
    color: #FCD535;
    font-size: 1.3rem;
}

.as-login-logo-img {
    max-height: 48px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.as-login-title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1E2329;
}

.as-login-subtitle {
    margin: 0 0 28px;
    font-size: 0.9rem;
    color: #858796;
}

.as-login-field {
    margin-bottom: 18px;
}

.as-login-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 6px;
}

.as-login-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.as-login-input-wrap:focus-within {
    border-color: #FCD535;
    box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.15);
}

.as-login-input-wrap i {
    color: #b0b0b0;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.as-login-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-size: 0.95rem;
    background: transparent;
    color: #333;
}

.as-login-input-wrap input::placeholder {
    color: #ccc;
}

.as-login-eye {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.as-login-eye:hover {
    color: #FCD535;
}

.as-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 0.85rem;
}

.as-login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5a5c69;
    cursor: pointer;
}

.as-login-remember input {
    accent-color: #FCD535;
}

.as-login-forgot {
    color: #FCD535;
    text-decoration: none;
    font-weight: 600;
}

.as-login-forgot:hover {
    text-decoration: underline;
}

.as-login-submit {
    width: 100%;
    padding: 13px;
    background: #1E2329;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.as-login-submit:hover {
    background: #2d3748;
}

.as-login-submit:active {
    transform: scale(0.98);
}

.as-login-submit:disabled {
    background: #858796;
    cursor: not-allowed;
}

.as-login-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

.as-login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.85rem;
    color: #858796;
}

.as-login-footer a {
    color: #FCD535;
    text-decoration: none;
    font-weight: 600;
}

.as-login-footer a:hover {
    text-decoration: underline;
}

/* Right side — background image */
.as-login-bg {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.as-login-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 35, 41, 0.6) 0%, rgba(30, 35, 41, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.as-login-bg-text {
    color: #fff;
}

.as-login-bg-text h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
}

.as-login-bg-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .as-login-panel {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

@media (max-width: 640px) {
    .as-login-page {
        flex-direction: column;
    }

    .as-login-panel {
        flex: none;
        max-width: 100%;
        padding: 32px 24px;
        min-height: auto;
    }

    .as-login-bg {
        min-height: 200px;
        order: -1;
    }

    .as-login-bg-overlay {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 24px;
    }
}

/* ==========================================================================
   0. Profiles Tab System
   ========================================================================== */

.as-profiles-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.as-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #858796;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.as-tab:hover {
    color: #1E2329;
    background: #f8f9fa;
}

.as-tab.active {
    color: #1E2329;
    border-bottom-color: #FCD535;
}

.as-tab i {
    margin-right: 6px;
}

/* ==========================================================================
   0a1. User Management Modal — Role Groups
   ========================================================================== */

.as-user-role-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.as-role-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.as-role-group-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.as-role-group-title i {
    margin-right: 6px;
}

.as-role-group .as-accept-radio {
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.as-user-edit-form .as-accept-field {
    margin-bottom: 14px;
}

@media (max-width: 520px) {
    .as-user-role-groups {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   0a2. Actor Dashboard — My Profile Card
   ========================================================================== */

.as-myprofile-card {
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.as-myprofile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #1E2329 0%, #2d3748 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Abstract geometric decoration — playful circles + dots */
.as-myprofile-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(252, 213, 53, 0.12);
    box-shadow:
        -80px 20px 0 0 rgba(252, 213, 53, 0.06),
        -160px -10px 0 -30px rgba(252, 213, 53, 0.1),
        40px 60px 0 -50px rgba(255, 255, 255, 0.04);
}

.as-myprofile-header::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 50px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(252, 213, 53, 0.06);
    box-shadow:
        -30px 30px 0 10px rgba(252, 213, 53, 0.03),
        60px -20px 0 -10px rgba(255, 255, 255, 0.03),
        -100px -5px 0 20px rgba(252, 213, 53, 0.04);
}

.as-myprofile-header .as-myprofile-info,
.as-myprofile-header .as-myprofile-avatar {
    position: relative;
    z-index: 1;
}

.as-myprofile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FCD535;
    flex-shrink: 0;
}

.as-myprofile-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #374151;
    font-size: 2rem;
    color: #9ca3af;
}

.as-myprofile-info {
    min-width: 0;
}

.as-myprofile-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.as-myprofile-name-en {
    margin: 4px 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.as-myprofile-badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.as-myprofile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.as-myprofile-stat {
    text-align: center;
}

.as-myprofile-stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E2329;
}

.as-myprofile-stat-label {
    font-size: 0.8rem;
    color: #858796;
    margin-top: 2px;
}

.as-myprofile-actions {
    display: flex;
    gap: 8px;
    padding: 20px;
    flex-wrap: wrap;
}

.as-myprofile-actions .actorstock-dash-btn {
    text-decoration: none;
}

@media (max-width: 480px) {
    .as-myprofile-header {
        flex-direction: column;
        text-align: center;
    }

    .as-myprofile-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   0a3. Actor Profile Edit Form
   ========================================================================== */

.as-pf-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.as-pf-section-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #1E2329;
    padding-bottom: 10px;
    border-bottom: 2px solid #FCD535;
}

.as-pf-section-title i {
    margin-right: 8px;
    color: #FCD535;
}

.as-pf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.as-pf-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.as-pf-img-field {
    text-align: center;
}

/* Drag & Drop Zone */
.as-pf-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.as-pf-dropzone:hover {
    border-color: #FCD535;
    background: #fffef5;
}

.as-pf-dropzone.as-pf-dragover {
    border-color: #FCD535;
    background: #fffef5;
    box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.2);
}

.as-pf-dropzone.has-img {
    border-style: solid;
    border-color: #e5e7eb;
}

.as-pf-dropzone .as-pf-img-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.as-pf-drop-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    padding: 20px;
}

.as-pf-drop-placeholder i {
    font-size: 1.8rem;
    color: #d1d5db;
}

.as-pf-drop-placeholder span {
    font-size: 0.75rem;
    text-align: center;
}

.as-pf-upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
}

.as-pf-progress-bar {
    height: 100%;
    background: #FCD535;
    transition: width 0.2s;
    border-radius: 2px;
}

.as-pf-cb-group {
    margin-bottom: 12px;
}

.as-pf-cb-limit {
    font-weight: 400;
    font-size: 0.75rem;
    color: #858796;
    transition: color 0.3s;
}

/* Portfolio items in profile edit */
.as-pf-portfolio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.as-pf-portfolio-fields {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.as-pf-portfolio-fields input {
    flex: 1;
    min-width: 0;
}

.as-pf-portfolio-fields input:last-child {
    flex: 0 0 80px;
}

@media (max-width: 640px) {
    .as-pf-portfolio-fields {
        flex-direction: column;
    }
    .as-pf-portfolio-fields input:last-child {
        flex: none;
        width: 100%;
    }
}

.as-pf-cb-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.as-pf-cb-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.as-pf-cb-item:hover {
    border-color: #FCD535;
}

.as-pf-cb-item:has(input:checked) {
    background: #FCD535;
    border-color: #FCD535;
    color: #1E2329;
    font-weight: 600;
}

.as-pf-cb-item input {
    display: none;
}

@media (max-width: 640px) {
    .as-pf-grid { grid-template-columns: 1fr; }
    .as-pf-img-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   0a1c. Actor Dashboard Overview
   ========================================================================== */

.as-actor-welcome h2 { margin:0 0 4px; font-size:1.4rem; font-weight:700; color:#1E2329; }
.as-actor-welcome p { margin:0 0 20px; color:#858796; font-size:0.9rem; }
.as-actor-grid { display:grid; grid-template-columns:320px 1fr; gap:20px; }
.as-actor-left, .as-actor-right { min-width:0; }
.as-actor-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; margin-bottom:16px; overflow:hidden; }
.as-actor-card-header { padding:14px 16px; font-weight:700; font-size:0.95rem; color:#1E2329; border-bottom:1px solid #f0f0f0; }
.as-actor-response-list { padding:0; }
.as-actor-response-item { display:flex; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid #f8f8f8; font-size:0.85rem; }
.as-actor-response-item:last-child { border-bottom:none; }
.as-actor-response-date { margin-left:auto; color:#b0b0b0; font-size:0.8rem; }
.as-actor-job-item { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #f8f8f8; cursor:pointer; transition:background 0.15s; }
.as-actor-job-item:hover { background:#f8f9fa; }
.as-actor-job-item:last-child { border-bottom:none; }
.as-actor-job-thumb { width:48px; height:36px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.as-actor-job-info { flex:1; min-width:0; }
.as-actor-job-title { font-weight:600; font-size:0.85rem; color:#1E2329; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.as-actor-job-camp { font-size:0.75rem; color:#858796; }
.as-actor-match-bar { height:4px; background:#e5e7eb; border-radius:2px; margin-top:4px; }
.as-actor-match-fill { height:100%; border-radius:2px; transition:width 0.3s; }
.as-actor-match-pct { font-size:0.9rem; font-weight:700; flex-shrink:0; }
.as-actor-tutorials { display:flex; gap:10px; padding:12px 16px; overflow-x:auto; }
.as-actor-tut-item { flex-shrink:0; width:120px; cursor:pointer; text-align:center; }
.as-actor-tut-thumb { width:120px; height:80px; background:#f0f0f0; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.as-actor-tut-thumb img { width:100%; height:100%; object-fit:cover; }
.as-actor-tut-thumb i { font-size:2rem; color:#dc2626; }
.as-actor-tut-title { font-size:0.75rem; margin-top:6px; color:#333; line-height:1.3; }

/* Tutorial Grid (actor browse) */
.as-tut-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:16px; }
.as-tut-card { background:#fff; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; cursor:pointer; transition:all 0.2s; }
.as-tut-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.1); transform:translateY(-2px); }
.as-tut-card-play { height:130px; background:#1E2329; display:flex; align-items:center; justify-content:center; color:#fff; font-size:2.5rem; position:relative; }
.as-tut-card-play i { position:relative; z-index:2; text-shadow:0 2px 8px rgba(0,0,0,0.5); transition:transform 0.2s; }
.as-tut-card:hover .as-tut-card-play i { transform:scale(1.15); }
.as-tut-card-body { padding:12px; }
.as-tut-card-title { font-weight:600; font-size:0.85rem; color:#1E2329; margin-bottom:4px; }
.as-tut-card-meta { font-size:0.75rem; color:#858796; }

@media (max-width:768px) {
    .as-actor-grid { grid-template-columns:1fr; }
}

/* ==========================================================================
   0a1e. Casting Dashboard Overview
   ========================================================================== */

.as-cast-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.as-cast-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.as-cast-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.9rem;
}

.as-cast-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E2329;
}

.as-cast-stat-label {
    font-size: 0.75rem;
    color: #858796;
    margin-top: 2px;
}

.as-cast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.as-cast-col {
    min-width: 0;
}

/* Rate bar */
.as-cast-rate-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.as-cast-rate-green {
    background: #16a34a;
}

.as-cast-rate-red {
    background: #dc2626;
}

/* Upcoming meetings */
.as-cast-upcoming-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f8f8f8;
    font-size: 0.85rem;
    color: #858796;
}

.as-cast-upcoming-row:last-child {
    border-bottom: none;
}

.as-cast-upcoming-active {
    color: #1E2329;
    font-weight: 600;
}

.as-cast-upcoming-count {
    font-weight: 700;
}

.as-cast-upcoming-active .as-cast-upcoming-count {
    color: #f59e0b;
}

/* Job rows */
.as-cast-job-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.85rem;
}

.as-cast-job-row:hover {
    background: #f8f9fa;
}

.as-cast-job-row:last-child {
    border-bottom: none;
}

.as-cast-job-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FCD535;
    color: #1E2329;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.as-cast-job-name {
    flex: 1;
    font-weight: 600;
    color: #1E2329;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.as-cast-job-meta {
    color: #858796;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.as-cast-job-meta i {
    margin-right: 2px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .as-cast-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .as-cast-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .as-cast-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   0a1d. Onboarding Overlay
   ========================================================================== */

/* Lock overlay — covers entire screen */
.as-onboarding-lock {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(30, 35, 41, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.as-onboarding-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.as-onboarding-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FCD535 0%, #E5BF00 100%);
    color: #1E2329;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.as-onboarding-card h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E2329;
}

.as-onboarding-missing {
    background: #fef9c3;
    color: #854d0e;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.as-onboarding-form {
    text-align: left;
}

@media (max-width: 640px) {
    .as-onboarding-card {
        padding: 24px 16px;
    }
}

/* ==========================================================================
   0a2b. Custom Confirm Dialog + Toast Notification
   ========================================================================== */

/* Confirm Dialog */
.as-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000010;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s;
}

.as-confirm-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 360px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-confirm-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.as-confirm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E2329;
    margin-bottom: 8px;
}

.as-confirm-message {
    font-size: 0.9rem;
    color: #5a5c69;
    margin-bottom: 24px;
    line-height: 1.5;
}

.as-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Toast Notification */
.as-toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000020;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.as-toast-notification.as-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.as-toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.as-toast-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.as-toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0 0 0 8px;
    flex-shrink: 0;
}

.as-toast-close:hover {
    color: #333;
}

/* ==========================================================================
   0a3-. Accepted Section Compact Header
   ========================================================================== */

.as-accepted-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.as-accepted-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   0a3a. Job Hero Banner (Netflix-style)
   ========================================================================== */

.as-job-hero {
    width: calc(100% + 48px);
    margin: -24px -24px 20px;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.as-job-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.as-job-hero-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.as-job-hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}

.as-job-hero-meta span {
    display: inline-flex;
    align-items: center;
}

/* Gallery scroll */
.as-job-gallery-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.as-job-gallery-scroll::-webkit-scrollbar {
    height: 4px;
}

.as-job-gallery-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.as-job-gallery-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.as-job-gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 640px) {
    .as-job-hero {
        height: 180px;
    }
    .as-job-hero-title {
        font-size: 1.1rem;
    }
    .as-job-gallery-thumb {
        width: 110px;
        height: 80px;
    }
}

/* Lightbox */
.as-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.as-lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-lb-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.as-lb-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.as-lb-close:hover {
    opacity: 1;
}

.as-lb-prev,
.as-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.2s;
}

.as-lb-prev:hover,
.as-lb-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.as-lb-prev {
    left: 20px;
}

.as-lb-next {
    right: 20px;
}

.as-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Gallery item in job edit */
.as-je-gallery-item {
    position: relative;
    display: inline-block;
}

.as-je-gallery-item img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.as-je-gallery-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.as-je-gallery-item:hover .as-je-gallery-remove {
    opacity: 1;
}

/* Cover dropzone height */
.as-je-cover-drop {
    min-height: 160px;
}

.as-je-cover-drop .as-pf-img-preview img {
    height: 160px;
}

/* ==========================================================================
   0a3a1. Social Media in Profile
   ========================================================================== */

/* Edit form — social row */
.as-pf-social-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

/* View — social items */
.as-profile-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.as-profile-social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.as-profile-social-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.as-profile-social-item i {
    font-size: 1.2rem;
}

.as-profile-social-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.as-profile-social-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E2329;
    text-transform: capitalize;
}

.as-profile-social-followers {
    font-size: 0.7rem;
    color: #858796;
}

@media (max-width: 480px) {
    .as-pf-social-row {
        flex-wrap: wrap;
    }
    .as-pf-social-row select,
    .as-pf-social-row input {
        min-width: 0;
    }
}

/* ==========================================================================
   0a3b. Job Spec Match Circle
   ========================================================================== */

.as-spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.as-match-circle {
    text-align: center;
    flex-shrink: 0;
}

.as-match-circle svg {
    width: 56px;
    height: 56px;
}

.as-match-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3;
}

.as-match-fg {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.as-match-text {
    fill: #1E2329;
    font-size: 9px;
    font-weight: 700;
    text-anchor: middle;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.as-match-label {
    font-size: 0.65rem;
    color: #858796;
    margin-top: 2px;
}

/* ==========================================================================
   0a4. Attribute Limits Settings
   ========================================================================== */

.as-attr-limit-row {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.as-attr-limit-row:last-of-type {
    border-bottom: none;
}

.as-attr-limit-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1E2329;
    margin-bottom: 8px;
}

.as-attr-limit-types {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.as-attr-type-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #5a5c69;
    cursor: pointer;
}

.as-attr-type-radio input {
    accent-color: #FCD535;
}

.as-attr-fixed-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5a5c69;
}

.as-attr-fixed-wrap input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.as-attr-tiered-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.as-attr-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.as-attr-tier label {
    font-size: 0.7rem;
    color: #858796;
    font-weight: 600;
}

.as-attr-tier input {
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   0b. Options CRUD Panel (ปรับแต่งตัวเลือก)
   ========================================================================== */

.as-options-wrap {
    max-width: 800px;
}

.as-options-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.as-options-header {
    padding: 12px 16px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #3a3b45;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    user-select: none;
}

.as-options-header:hover {
    background: #eef0f4;
}

.as-options-count {
    color: #858796;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: auto;
}

.as-options-toggle-icon {
    font-size: 0.75rem;
    color: #858796;
    transition: transform 0.2s;
}

.as-options-body {
    padding: 16px;
}

.as-options-list {
    margin-bottom: 12px;
}

.as-option-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.as-option-row:last-child {
    border-bottom: none;
}

.as-option-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.as-option-input:focus {
    border-color: #FCD535;
    outline: none;
    box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.2);
}

.as-option-key {
    max-width: 180px;
}

.as-options-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
}

/* ==========================================================================
   0c. Button Contrast Fixes
   ========================================================================== */

.actorstock-dash-btn-success {
    color: #fff !important;
}

.actorstock-dash-btn-warning {
    color: #333 !important;
}

.actorstock-dash-btn-danger {
    color: #fff !important;
}

.actorstock-dash-btn-sent {
    background: #6c757d !important;
    color: #fff !important;
    cursor: default;
}

.actorstock-dash-btn-primary {
    background: #4e73df;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 500;
}

.actorstock-dash-btn-primary:hover {
    background: #3a5bc7;
}

.as-btn-reset {
    background: #858796 !important;
    color: #fff !important;
}

.as-btn-reset:hover {
    background: #6e7080 !important;
}

.as-btn-view-profile {
    background: #f8f9fa;
    color: #333 !important;
    border: 1px solid #ddd;
    text-decoration: none;
}

.as-btn-view-profile:hover {
    background: #e9ecef;
    color: #111 !important;
}

/* ==========================================================================
   0d. Checkbox Dropdown (Multi-select Filter)
   ========================================================================== */

.as-cb-dropdown {
    position: relative;
    display: inline-block;
}

.as-cb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 100px;
}

.as-cb-toggle:hover {
    border-color: #FCD535;
}

.as-cb-toggle i {
    font-size: 0.65rem;
    color: #999;
    transition: transform 0.2s;
}

.as-cb-open .as-cb-toggle {
    border-color: #FCD535;
    box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.25);
}

.as-cb-open .as-cb-toggle i {
    transform: rotate(180deg);
}

.as-cb-count {
    background: #FCD535;
    color: #333;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}

.as-cb-count:empty {
    display: none;
}

.as-cb-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 200;
    min-width: 160px;
    padding: 4px 0;
}

.as-cb-open .as-cb-menu {
    display: block;
}

.as-cb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.15s;
    user-select: none;
    margin: 0;
}

.as-cb-item:hover {
    background: #f8f9fa;
}

.as-cb-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FCD535;
    cursor: pointer;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .as-filter-selects {
        gap: 6px !important;
    }

    .as-cb-toggle {
        padding: 8px 12px;
        font-size: 0.82rem;
        min-width: 0;
    }

    .as-cb-menu {
        min-width: 160px;
        max-height: 200px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .as-cb-toggle {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

.as-btn-add-option {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.as-btn-add-option:hover {
    background: #e9ecef;
}

/* ==========================================================================
   1. Overview Cards (clickable stat cards on overview page)
   ========================================================================== */

.as-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.as-overview-card {
    background: var(--as-white);
    border-radius: var(--as-radius);
    padding: 24px;
    border: 1px solid var(--as-border-light);
    transition: all var(--as-transition);
    cursor: pointer;
    text-align: center;
}

.as-overview-card:hover {
    box-shadow: var(--as-shadow-md);
    transform: translateY(-2px);
}

.as-overview-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--as-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}

.as-overview-card-icon.blue   { background: var(--as-info-light);    color: var(--as-info); }
.as-overview-card-icon.green  { background: var(--as-success-light); color: var(--as-success); }
.as-overview-card-icon.yellow { background: var(--as-accent-light);  color: #B8860B; }
.as-overview-card-icon.purple { background: #F3E8FF;                 color: #7C3AED; }
.as-overview-card-icon.red    { background: var(--as-danger-light);  color: var(--as-danger); }
.as-overview-card-icon.cyan   { background: #E0F7FA;                color: #00838F; }

.as-overview-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--as-text);
    line-height: 1.1;
    margin-bottom: 4px;
}

.as-overview-card-label {
    font-size: 13px;
    color: var(--as-text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   2. Recent Activity
   ========================================================================== */

.as-recent-activity {
    background: var(--as-white);
    border-radius: var(--as-radius);
    border: 1px solid var(--as-border-light);
    overflow: hidden;
}

.as-recent-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--as-border-light);
    font-size: 15px;
    font-weight: 600;
    color: var(--as-text);
}

.as-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.as-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--as-border-light);
    transition: background var(--as-transition);
}

.as-recent-item:last-child {
    border-bottom: none;
}

.as-recent-item:hover {
    background: #FAFAFA;
}

.as-recent-type {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--as-radius-pill);
    white-space: nowrap;
}

.as-recent-type.profiles { background: var(--as-info-light);    color: var(--as-info); }
.as-recent-type.job      { background: var(--as-success-light); color: var(--as-success); }
.as-recent-type.apjob    { background: var(--as-warning-light); color: var(--as-warning); }

.as-recent-title {
    flex: 1;
    font-size: 14px;
    color: var(--as-text);
    font-weight: 500;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.as-recent-title a {
    color: inherit;
    text-decoration: none;
}

.as-recent-title a:hover {
    color: var(--as-accent-dark);
}

.as-recent-time {
    font-size: 12px;
    color: var(--as-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   3. Cards (generic)
   ========================================================================== */

.as-card {
    background: var(--as-white);
    border-radius: var(--as-radius);
    border: 1px solid var(--as-border-light);
    overflow: hidden;
}

.as-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--as-border-light);
    font-weight: 600;
    font-size: 15px;
    color: var(--as-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.as-card-body {
    padding: 20px;
}

.as-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--as-border-light);
    background: var(--as-bg);
}

/* ==========================================================================
   4. Settings Form
   ========================================================================== */

.as-settings-form {
    max-width: 600px;
}

.as-settings-group {
    margin-bottom: 20px;
}

.as-settings-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--as-text);
    margin-bottom: 6px;
}

.as-settings-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    font-size: 14px;
    font-family: var(--as-font);
    color: var(--as-text);
    transition: all var(--as-transition);
}

.as-settings-input:focus {
    outline: none;
    border-color: var(--as-accent);
    box-shadow: 0 0 0 3px var(--as-accent-light);
}

.as-settings-hint {
    font-size: 12px;
    color: var(--as-text-muted);
    margin-top: 4px;
}

.as-settings-save {
    margin-top: 8px;
}

/* ==========================================================================
   5. Empty State
   ========================================================================== */

.as-empty-state {
    text-align: center;
    padding: 64px 24px;
}

.as-empty-state i,
.as-empty-icon {
    font-size: 48px;
    color: var(--as-border);
    margin-bottom: 16px;
    display: block;
}

.as-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--as-text);
    margin-bottom: 8px;
}

.as-empty-text {
    font-size: 14px;
    color: var(--as-text-secondary);
    max-width: 360px;
    margin: 0 auto;
}

/* ==========================================================================
   6. Modal
   ========================================================================== */

.as-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 24px;
    animation: as-fade-overlay 0.2s ease;
    isolation: isolate;
}

@keyframes as-fade-overlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.as-modal {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: as-modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes as-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.as-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #EBEBEB;
}

.as-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    margin: 0;
}

.as-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #B0B0B0;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.as-modal-close:hover {
    background: #F7F7F7;
    color: #222222;
}

.as-modal-body {
    padding: 24px;
}

.as-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #EBEBEB;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ==========================================================================
   7. Tabs
   ========================================================================== */

.as-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--as-border-light);
    margin-bottom: 24px;
}

.as-tab-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--as-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--as-transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.as-tab-item:hover {
    color: var(--as-text);
}

.as-tab-item.active {
    color: var(--as-text);
    font-weight: 600;
    border-bottom-color: var(--as-accent);
}

/* ==========================================================================
   8. Badges (as- prefix variant)
   ========================================================================== */

.as-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--as-radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    background: var(--as-bg);
    color: var(--as-text-secondary);
}

.as-badge-success { background: var(--as-success-light); color: var(--as-success); }
.as-badge-warning { background: var(--as-warning-light); color: var(--as-warning); }
.as-badge-danger  { background: var(--as-danger-light);  color: var(--as-danger); }
.as-badge-info    { background: var(--as-info-light);    color: var(--as-info); }

/* ==========================================================================
   9. Alerts
   ========================================================================== */

.as-alert {
    padding: 14px 18px;
    border-radius: var(--as-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.as-alert-info {
    background: var(--as-info-light);
    color: var(--as-info);
    border: 1px solid #B3E5FC;
}

.as-alert-success {
    background: var(--as-success-light);
    color: var(--as-success);
    border: 1px solid #C8E6C9;
}

.as-alert-warning {
    background: var(--as-warning-light);
    color: var(--as-warning);
    border: 1px solid #FFE0B2;
}

.as-alert-danger {
    background: var(--as-danger-light);
    color: var(--as-danger);
    border: 1px solid #FFCDD2;
}

/* ==========================================================================
   10. Loading Spinner
   ========================================================================== */

.as-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.as-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #EBEBEB;
    border-top-color: #FCD535;
    border-radius: 50%;
    animation: as-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   11. Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .as-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .as-modal {
        max-width: 100%;
        margin: 12px;
    }

    .as-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .as-tab-item {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .as-overview-grid {
        grid-template-columns: 1fr;
    }

    .as-overview-card {
        padding: 20px;
    }

    .as-overview-card-value {
        font-size: 26px;
    }
}

/* ==========================================================================
   12. Profile Detail Modal — Airbnb Style
   ========================================================================== */

.as-profile-modal {
    max-width: 820px;
    border-top: 4px solid #FCD535;
}

.as-profile-modal .as-modal-header {
    padding: 16px 24px;
}

.as-profile-modal .as-modal-body {
    padding: 0 24px 20px;
}

.as-profile-modal .as-modal-footer {
    padding: 12px 24px;
    background: #F7F7F7;
}

/* Profile link in table */
.as-profile-link {
    color: var(--as-info) !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-decoration: none !important;
    border-bottom: 1px dashed var(--as-info) !important;
    transition: all 0.15s ease !important;
}

.as-profile-link:hover {
    color: var(--as-accent-dark) !important;
    border-bottom-color: var(--as-accent-dark) !important;
}

/* ---------- Two-Panel Card Layout ---------- */

.as-profile-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.as-profile-card-left {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-profile-card-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Hero Image & Thumbnails ---------- */

.as-profile-hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.as-profile-hero-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.as-profile-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.as-profile-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.as-profile-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

/* ---------- Quick Stats Bar ---------- */

.as-profile-quick-stats {
    display: flex;
    justify-content: space-around;
    background: #F7F7F7;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}

.as-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.as-profile-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    line-height: 1.2;
}

.as-profile-stat-label {
    font-size: 11px;
    color: #B0B0B0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ---------- Identity Header ---------- */

.as-profile-identity {
    padding-bottom: 12px;
    border-bottom: 1px solid #EBEBEB;
}

.as-profile-name-th {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    line-height: 1.3;
    margin-bottom: 2px;
}

.as-profile-name-en {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    margin-bottom: 8px;
}

.as-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.as-profile-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #FFF9E0;
    color: #1E2329;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(252, 213, 53, 0.3);
}

.as-profile-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #E3F2FD;
    color: #0077B6;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.as-profile-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: #F7F7F7;
    color: #717171;
}

.as-profile-status-publish { background: #E8F5E9; color: #008A05; }
.as-profile-status-draft   { background: #FFF3E0; color: #E07912; }
.as-profile-status-pending { background: #E3F2FD; color: #0077B6; }
.as-profile-status-trash   { background: #FFEBEE; color: #C13515; }

/* ---------- Info List ---------- */

.as-profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.as-profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #EBEBEB;
    font-size: 13px;
}

.as-profile-info-row:last-child {
    border-bottom: none;
}

.as-profile-info-label {
    color: #B0B0B0;
    font-weight: 500;
    font-size: 12px;
}

.as-profile-info-val {
    color: #222222;
    font-weight: 500;
    text-align: right;
}

/* ---------- Tag Groups (compact) ---------- */

.as-profile-tag-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 0;
}

.as-profile-tag-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #B0B0B0;
    min-width: 56px;
    padding-top: 3px;
    line-height: 1.4;
}

.as-profile-card-right .as-profile-section-title {
    font-size: 12px;
    padding: 6px 10px;
    margin: 0 0 10px;
}

.as-profile-card-right .as-profile-tags {
    margin-top: 0;
    gap: 4px;
}

.as-profile-card-right .as-profile-tag {
    padding: 2px 10px;
    font-size: 11px;
}

/* ---------- Score Card ---------- */

.as-profile-score-card {
    background: #F7F7F7;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #EBEBEB;
}

.as-profile-score-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.as-profile-score-stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
    color: #FCD535;
}

.as-profile-score-stars .far {
    color: #DDDDDD;
}

/* Interactive stars */
.as-stars-interactive {
    cursor: pointer;
}

.as-stars-interactive i {
    transition: transform 0.15s, color 0.15s;
}

.as-stars-interactive i:hover {
    transform: scale(1.2);
}

.as-star-vote-hint {
    font-size: 0.75rem;
    color: #FCD535;
    margin-top: 6px;
    text-align: center;
}

.as-star-voted-msg {
    font-size: 0.75rem;
    color: #16a34a;
    margin-top: 6px;
    text-align: center;
}

.as-profile-score-value {
    font-size: 24px;
    font-weight: 800;
    color: #222222;
    line-height: 1;
}

.as-profile-score-max {
    font-size: 14px;
    color: #B0B0B0;
    font-weight: 400;
}

.as-profile-score-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #717171;
}

/* ---------- Legacy Images Gallery (kept for edit/print) ---------- */

.as-profile-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.as-profile-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.as-profile-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

/* ---------- Sections ---------- */

.as-profile-section {
    margin-bottom: 24px;
}

.as-profile-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
    padding: 8px 14px;
    background: #F7F7F7;
    border-radius: 8px;
    border-left: 3px solid #FCD535;
}

/* ---------- Field Grid ---------- */

.as-profile-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    padding: 0 4px;
}

.as-profile-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
    border-bottom: 1px solid #EBEBEB;
}

.as-profile-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #B0B0B0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.as-profile-field-value {
    font-size: 15px;
    color: #222222;
    font-weight: 500;
    line-height: 1.4;
}

.as-profile-na {
    color: #DDDDDD;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
}

/* ---------- Tags (Array Values) ---------- */

.as-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.as-profile-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #FFF9E0;
    color: #1E2329;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(252, 213, 53, 0.3);
}

/* ---------- Edit Form ---------- */

.as-profile-edit-input {
    width: 100%;
    min-width: unset !important;
}

.as-profile-checkbox-group {
    margin-bottom: 18px;
}

.as-profile-checkbox-group .as-profile-field-label {
    margin-bottom: 10px;
    display: block;
    font-size: 13px;
}

.as-profile-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-profile-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFFFFF;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #DDDDDD;
}

.as-profile-checkbox:hover {
    border-color: #FCD535;
    background: #FFF9E0;
}

.as-profile-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #FCD535;
}

.as-profile-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #1E2329;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
    .as-profile-card {
        flex-direction: column;
    }

    .as-profile-card-left {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .as-profile-modal {
        max-width: 100%;
    }

    .as-profile-detail {
        grid-template-columns: 1fr;
    }

    .as-profile-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .as-profile-card-left {
        max-width: 100%;
    }

    .as-profile-tag-group {
        flex-direction: column;
        gap: 4px;
    }

    .as-profile-modal .as-modal-body {
        padding: 0 16px 16px;
    }

    .as-profile-modal .as-modal-header {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   Job & Application Modals
   ========================================================================== */

.as-job-modal {
    max-width: 640px;
}

.as-modal-wide {
    max-width: 960px;
}

/* Application Modal — Split Layout */
.as-application-modal .as-modal-body {
    overflow-x: hidden;
}

.as-apj-split {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.as-apj-left {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 0;
}

.as-apj-right {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-apj-right.as-apj-loaded {
    opacity: 1;
    transform: translateX(0);
}

.as-apj-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E2329;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FCD535;
}

.as-apj-panel-title i {
    margin-right: 6px;
    color: #FCD535;
}

/* Profile card inside application modal */
.as-apj-pf-hero {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 3/4;
    max-height: 260px;
}

.as-apj-pf-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-apj-pf-identity {
    margin-bottom: 12px;
}

.as-apj-pf-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E2329;
}

.as-apj-pf-name-en {
    font-size: 0.85rem;
    color: #717171;
    margin-top: 2px;
}

.as-apj-pf-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.as-apj-pf-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.as-apj-pf-stat {
    text-align: center;
}

.as-apj-pf-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E2329;
}

.as-apj-pf-stat span:last-child {
    font-size: 0.75rem;
    color: #858796;
}

.as-apj-pf-rating {
    margin-bottom: 12px;
    color: #FCD535;
    font-size: 1rem;
}

.as-apj-pf-rating span {
    color: #717171;
    font-size: 0.85rem;
    margin-left: 4px;
}

.as-apj-pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.as-apj-pf-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.as-apj-pf-thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Application Modal — Footer Buttons Fix */
.as-application-modal .as-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.as-application-modal .as-modal-footer .as-btn {
    padding: 9px 20px;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.as-application-modal .as-modal-footer .actorstock-dash-btn-success {
    background: #16a34a;
    color: #fff;
}

.as-application-modal .as-modal-footer .actorstock-dash-btn-success:hover {
    background: #15803d;
}

.as-application-modal .as-modal-footer .actorstock-dash-btn-danger {
    background: #dc2626;
    color: #fff;
}

.as-application-modal .as-modal-footer .actorstock-dash-btn-danger:hover {
    background: #b91c1c;
}

.as-application-modal .as-modal-footer .as-btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #d1d5db;
}

.as-application-modal .as-modal-footer .as-btn-outline:hover {
    background: #f3f4f6;
}

.as-application-modal .as-modal-footer .as-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.as-application-modal .as-modal-footer .as-btn-secondary:hover {
    background: #4b5563;
}

/* Accept Dialog (nested modal) */
.as-accept-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

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

.as-accept-dialog {
    background: #fff;
    border-radius: 12px;
    width: 440px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.as-accept-header {
    padding: 18px 24px;
    border-bottom: 2px solid #FCD535;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as-accept-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E2329;
}

.as-accept-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.as-accept-body {
    padding: 24px;
}

.as-accept-field {
    margin-bottom: 16px;
}

.as-accept-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #5a5c69;
    margin-bottom: 6px;
}

.as-accept-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.as-accept-input:focus {
    border-color: #FCD535;
    outline: none;
    box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.2);
}

.as-accept-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-accept-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.as-accept-radio:hover {
    border-color: #FCD535;
    background: #fffef5;
}

.as-accept-radio input[type="radio"] {
    accent-color: #FCD535;
    width: 16px;
    height: 16px;
}

.as-accept-radio input[type="radio"]:checked + .as-accept-radio-label {
    font-weight: 600;
}

.as-accept-radio i {
    width: 20px;
    text-align: center;
    color: #858796;
}

.as-accept-radio:has(input:checked) {
    border-color: #FCD535;
    background: #fffef5;
}

.as-accept-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.as-accept-footer .as-btn {
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.as-accept-footer .actorstock-dash-btn-success {
    background: #16a34a;
    color: #fff;
}

.as-accept-footer .actorstock-dash-btn-success:hover {
    background: #15803d;
}

.as-accept-footer .as-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.as-accept-footer .as-btn-secondary:hover {
    background: #4b5563;
}

/* Detail info list (shared by job & application modals) */
.as-detail-info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.as-detail-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.as-detail-row:last-child {
    border-bottom: none;
}

.as-detail-label {
    font-weight: 600;
    color: #717171;
    min-width: 130px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.as-detail-value {
    color: #222;
    font-size: 0.9rem;
    word-break: break-word;
}

.as-detail-value a {
    color: #2563eb;
    text-decoration: none;
}

.as-detail-value a:hover {
    text-decoration: underline;
}

.as-detail-na {
    color: #b0b0b0;
    font-style: italic;
}

/* Detail section */
.as-detail-section {
    margin-top: 20px;
}

.as-detail-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E2329;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin: 0 0 12px;
}

.as-detail-text {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 8px;
    white-space: pre-line;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
}

/* Gallery */
.as-detail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-detail-gallery-img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.as-detail-gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Status badges */
.as-detail-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.as-status-open {
    background: #dcfce7;
    color: #166534;
}

.as-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.as-result-accepted {
    background: #dcfce7;
    color: #166534;
}

.as-result-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.as-result-pending {
    background: #fef9c3;
    color: #854d0e;
}

/* Clip, Portfolio, Invitation modals */
.as-clip-modal,
.as-portfolio-modal,
.as-invitation-modal {
    max-width: 640px;
}

/* Video embed */
.as-detail-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

.as-detail-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Portfolio table */
.as-portfolio-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.as-portfolio-table th,
.as-portfolio-table td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.875rem;
}

.as-portfolio-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.as-portfolio-table tr:nth-child(even) {
    background: #fafafa;
}

.as-portfolio-table tr:hover {
    background: #f0f4ff;
}

/* Responsive: application split layout */
@media (max-width: 768px) {
    .as-modal-wide {
        max-width: 100%;
    }

    .as-apj-split {
        flex-direction: column;
        gap: 16px;
    }

    .as-apj-left {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .as-apj-right {
        flex: 0 0 100%;
        max-width: 100%;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 16px;
    }

    .as-apj-pf-hero {
        max-height: 200px;
    }
}

/* Responsive for all detail modals */
@media (max-width: 600px) {
    .as-job-modal,
    .as-clip-modal,
    .as-portfolio-modal,
    .as-invitation-modal {
        max-width: 100%;
    }

    .as-detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .as-detail-label {
        min-width: unset;
    }

    .as-detail-gallery-img {
        width: 120px;
        height: 90px;
    }

    .as-portfolio-table th,
    .as-portfolio-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .as-profiles-tabs {
        gap: 0;
    }

    .as-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .as-option-row {
        flex-wrap: wrap;
    }

    .as-option-key {
        max-width: none;
    }

    .as-options-actions {
        flex-wrap: wrap;
    }
}

/* ================================================================
 *  Section Header Button (e.g. "เพิ่มงานใหม่")
 * ================================================================ */

.as-section-header-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.as-section-header-btn:hover {
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ================================================================
 *  Create Job Modal
 * ================================================================ */

.as-create-job-modal {
    max-width: 680px;
    width: 95%;
}

.as-create-job-modal .as-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px;
}

.as-create-job-modal .as-pf-section {
    background: var(--color-card, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
}

.as-create-job-modal .as-pf-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--color-text, #1e293b);
    display: flex;
    align-items: center;
    gap: 8px;
}

.as-create-job-modal .as-pf-section-title i {
    color: var(--color-accent, #FCD535);
}

.as-create-job-modal .as-pf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.as-create-job-modal .as-accept-field {
    margin-bottom: 14px;
}

.as-create-job-modal .as-accept-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
}

.as-create-job-modal .as-accept-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.as-create-job-modal .as-accept-input:focus {
    outline: none;
    border-color: var(--color-accent, #FCD535);
    box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.15);
}

.as-create-job-modal textarea.as-accept-input {
    resize: vertical;
    min-height: 80px;
}

.as-create-job-modal .as-pf-cb-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-create-job-modal .as-pf-cb-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.as-create-job-modal .as-pf-cb-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.as-create-job-modal .as-pf-cb-item input:checked + * {
    color: #1e293b;
}

.as-create-job-modal .as-pf-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.as-create-job-modal .as-pf-dropzone:hover,
.as-create-job-modal .as-pf-dropzone.as-pf-dragover {
    border-color: var(--color-accent, #FCD535);
    background: rgba(252, 213, 53, 0.05);
}

.as-create-job-modal .as-pf-drop-placeholder {
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.as-create-job-modal .as-pf-drop-placeholder i {
    font-size: 28px;
    color: #cbd5e1;
}

.as-create-job-modal .as-pf-img-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.as-create-job-modal .as-je-gallery-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.as-create-job-modal .as-je-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-create-job-modal .as-je-gallery-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .as-section-header-btn {
        position: static;
        transform: none;
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }

    .as-create-job-modal .as-pf-grid {
        grid-template-columns: 1fr;
    }

    .as-create-job-modal .as-modal-body {
        padding: 16px;
    }
}

/* ================================================================
 *  Contact Limited — Profile View Limit Reached
 * ================================================================ */

.as-contact-limited-card {
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px;
    margin: 12px 0;
    text-align: center;
}

.as-cl-header {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 14px;
}

.as-cl-header i {
    color: #d97706;
    margin-right: 6px;
}

.as-cl-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.as-cl-progress-bar {
    flex: 1;
    height: 8px;
    background: #fde68a;
    border-radius: 99px;
    overflow: hidden;
}

.as-cl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #dc2626);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.as-cl-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
}

.as-cl-desc {
    font-size: 13px;
    color: #78716c;
    margin: 0 0 14px;
    line-height: 1.5;
}

.as-cl-masked-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.as-cl-masked-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #fde68a;
}

.as-cl-masked-label {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    min-width: 55px;
}

.as-cl-masked-value {
    font-size: 13px;
    color: #a8a29e;
    filter: blur(3px);
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 1px;
}

.as-cl-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #FCD535, #f59e0b);
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(252, 213, 53, 0.3);
}

.as-cl-upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 213, 53, 0.4);
}

.as-cl-upgrade-btn i {
    font-size: 13px;
}

.as-profile-view-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 8px 0 0;
}

.as-profile-view-counter i {
    color: #94a3b8;
    font-size: 11px;
}

/* ================================================================
 *  Contact Limited — Inline (compact, for application modal)
 * ================================================================ */

.as-cl-inline {
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px;
    margin: 10px 0;
}

.as-cl-inline-header {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.as-cl-inline-header i {
    color: #d97706;
}

.as-cl-inline-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    background: #fde68a;
    padding: 2px 8px;
    border-radius: 10px;
    color: #92400e;
}

.as-cl-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    margin-bottom: 4px;
}

.as-cl-inline-label {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    min-width: 50px;
}

.as-cl-masked-val {
    font-size: 13px;
    color: #a8a29e;
    filter: blur(3px);
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 1px;
}

.as-cl-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #FCD535, #f59e0b);
    color: #1e293b;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(252, 213, 53, 0.25);
    width: 100%;
    justify-content: center;
}

.as-cl-inline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(252, 213, 53, 0.35);
}

/* Quota bar — compact progress for application modal */

.as-cl-quota-bar {
    margin: 10px 0 4px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.as-cl-quota-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.as-cl-quota-header i {
    color: #94a3b8;
}

.as-cl-quota-header span {
    margin-left: auto;
    font-weight: 700;
    color: #334155;
}

.as-cl-quota-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.as-cl-quota-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ================================================================
 *  Application Modal Navigator (Prev/Next)
 * ================================================================ */

.as-apj-nav-prev,
.as-apj-nav-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    font-size: 18px;
    color: #334155;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.2s;
}

.as-apj-nav-prev { left: 20px; }
.as-apj-nav-next { right: 20px; }

.as-apj-nav-prev:hover,
.as-apj-nav-next:hover {
    background: #FCD535;
    color: #1e293b;
    border-color: #FCD535;
    box-shadow: 0 4px 14px rgba(252, 213, 53, 0.35);
    transform: translateY(-50%) scale(1.12);
}

.as-apj-nav-counter {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .as-apj-nav-prev,
    .as-apj-nav-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    .as-apj-nav-prev { left: 12px; }
    .as-apj-nav-next { right: 12px; }
}

/* ================================================================
 *  Profile Carousel Navigator — 3D Card Effect
 * ================================================================ */

.as-pf-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    padding: 24px;
    box-sizing: border-box;
}

/* Mini preview cards (prev/next) */
.as-pf-mini-card {
    width: 224px;
    min-height: 308px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-pf-mini-card img {
    width: 100%;
    height: 238px;
    object-fit: cover;
    display: block;
}

.as-pf-mini-no-img {
    width: 100%;
    height: 238px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
    font-size: 40px;
}

.as-pf-mini-name {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.as-pf-mini-empty {
    width: 100%;
    height: 220px;
}

/* Prev card — left, blur, perspective */
.as-pf-mini-prev {
    transform: scale(0.78) translateX(40px) rotateY(10deg);
    filter: blur(2px) brightness(0.9);
    opacity: 0.55;
    z-index: 1;
    margin-right: -20px;
}

/* Next card — right, blur, perspective */
.as-pf-mini-next {
    transform: scale(0.78) translateX(-40px) rotateY(-10deg);
    filter: blur(2px) brightness(0.9);
    opacity: 0.55;
    z-index: 1;
    margin-left: -20px;
}

/* Hover: slightly clearer */
.as-pf-mini-card:hover {
    opacity: 0.8;
    filter: blur(1px) brightness(0.95);
}

.as-pf-mini-prev:hover {
    transform: scale(0.82) translateX(30px) rotateY(7deg);
}

.as-pf-mini-next:hover {
    transform: scale(0.82) translateX(-30px) rotateY(-7deg);
}

/* Main modal stays center */
.as-pf-carousel .as-profile-modal {
    z-index: 3;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Slide animations ---- */

/* Slide RIGHT (go to next) */
.as-pf-slide-right .as-pf-mini-prev {
    transform: scale(0.65) translateX(80px) rotateY(15deg);
    opacity: 0;
}
.as-pf-slide-right .as-profile-modal {
    transform: scale(0.88) translateX(-120px);
    opacity: 0.4;
}
.as-pf-slide-right .as-pf-mini-next {
    transform: scale(1) translateX(-60px) rotateY(0deg);
    filter: blur(0) brightness(1);
    opacity: 1;
}

/* Slide LEFT (go to prev) */
.as-pf-slide-left .as-pf-mini-next {
    transform: scale(0.65) translateX(-80px) rotateY(-15deg);
    opacity: 0;
}
.as-pf-slide-left .as-profile-modal {
    transform: scale(0.88) translateX(120px);
    opacity: 0.4;
}
.as-pf-slide-left .as-pf-mini-prev {
    transform: scale(1) translateX(60px) rotateY(0deg);
    filter: blur(0) brightness(1);
    opacity: 1;
}

/* Nav arrows (fixed) */
.as-pf-nav-prev,
.as-pf-nav-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    font-size: 18px;
    color: #334155;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.2s;
}

.as-pf-nav-prev { left: 16px; }
.as-pf-nav-next { right: 16px; }

.as-pf-nav-prev:hover,
.as-pf-nav-next:hover {
    background: #FCD535;
    color: #1e293b;
    border-color: #FCD535;
    box-shadow: 0 4px 14px rgba(252, 213, 53, 0.35);
    transform: translateY(-50%) scale(1.12);
}

/* Counter badge */
.as-pf-nav-counter {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1100px) {
    .as-pf-mini-card {
        width: 168px;
        min-height: 238px;
    }
    .as-pf-mini-card img,
    .as-pf-mini-no-img {
        height: 182px;
    }
}

@media (max-width: 860px) {
    .as-pf-mini-card {
        display: none;
    }

    .as-pf-carousel {
        padding: 16px;
    }

    .as-pf-nav-prev { left: 8px; }
    .as-pf-nav-next { right: 8px; }
}
