/* ===================================================================
   ORC Grid — Seletor de Profissionais + PIN Modal + No-Table Modal
   =================================================================== */

/* Container */
.ag-orc-selector {
    text-align: center;
    padding: 20px 0;
}

.orc-sel-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1208 0%, #0e0b08 100%);
    border: 1px solid rgba(201, 168, 76, .25);
    border-radius: 24px;
    padding: 0 0 40px;
    text-align: center;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .6);
    overflow: hidden;
}

/* Banner Premium */
.orc-sel-banner {
    position: relative;
    padding: 40px 36px 36px;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 168, 76, .25);
}

.orc-sel-banner-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #0a0704 0%, #1a1208 40%, #0e0b08 100%);
    z-index: 0;
}

.orc-sel-banner-bg::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 168, 76, .08) 0%, transparent 70%);
    z-index: 1;
}

.orc-sel-banner-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, .4) 50%, transparent 100%);
}

.orc-sel-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
}

.orc-sel-logo {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.orc-sel-banner-text {
    text-align: left;
}

.orc-sel-banner-label {
    font-size: 10px;
    color: #8a7d6b;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 6px;
}

.orc-sel-banner-title {
    font-family: Georgia, "Playfair Display", serif;
    font-size: 28px;
    color: #e6cb7a;
    margin: 0;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(201, 168, 76, .15);
}

.orc-sel-banner-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, rgba(201, 168, 76, .2));
    margin: 12px 0 0;
    border-radius: 2px;
}

.orc-sel-instruction {
    font-size: 14px;
    color: #a89a80;
    margin: 0 0 24px;
    font-weight: 500;
}

/* Grid de cards */
.orc-prof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 32px 32px;
}

.orc-prof-card {
    background: linear-gradient(180deg, #151008 0%, #0a0804 100%);
    border: 1.5px solid rgba(201, 168, 76, .15);
    border-radius: 16px;
    padding: 28px 16px 20px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.orc-prof-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, .06) 0%, transparent 70%);
    pointer-events: none;
}

.orc-prof-card:hover {
    border-color: #c9a84c;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, .2);
}

.orc-prof-card.orc-prof-disabled {
    opacity: .55;
    cursor: default;
}

.orc-prof-card.orc-prof-disabled:hover {
    border-color: rgba(201, 168, 76, .15);
    transform: none;
    box-shadow: none;
}

.orc-prof-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid rgba(201, 168, 76, .5);
    position: relative;
    z-index: 1;
}

.orc-prof-initials {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

.orc-prof-name {
    font-size: 14px;
    font-weight: 700;
    color: #f5ebd8;
    margin-bottom: 4px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.orc-prof-spec {
    font-size: 10.5px;
    color: #8a7d6b;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 28px;
}

.orc-prof-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.orc-prof-badge.active {
    background: rgba(76, 168, 120, .12);
    color: #4ca878;
    border: 1px solid rgba(76, 168, 120, .3);
}

.orc-prof-badge.pending {
    background: rgba(201, 168, 76, .08);
    color: #8a7d6b;
    border: 1px solid rgba(201, 168, 76, .2);
}

/* PIN Modal */
.orc-pin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(14, 11, 8, .95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.orc-pin-overlay.active { display: flex !important; }

.orc-pin-box {
    background: linear-gradient(180deg, #1a1208 0%, #0e0b08 100%);
    border: 1px solid rgba(201, 168, 76, .4);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

.orc-pin-title {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #c9a84c;
    margin: 0 0 6px;
    font-weight: 700;
}

.orc-pin-name {
    font-size: 14px;
    color: #f5ebd8;
    margin: 0 0 28px;
    font-weight: 600;
}

.orc-pin-input {
    width: 180px;
    text-align: center;
    font-size: 32px;
    letter-spacing: 14px;
    background: #0e0b08;
    border: 1.5px solid rgba(201, 168, 76, .4);
    border-radius: 12px;
    padding: 16px 18px;
    color: #c9a84c;
    font-weight: 700;
    outline: none;
    font-family: Georgia, serif;
}

.orc-pin-input:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, .12);
}

.orc-pin-input::placeholder {
    color: rgba(201, 168, 76, .25);
    letter-spacing: 10px;
    font-size: 22px;
}

.orc-pin-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 14px;
    min-height: 18px;
}

.orc-pin-btn {
    margin-top: 24px;
    background: linear-gradient(135deg, #c9a84c 0%, #a0842b 100%);
    color: #1a1208;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(201, 168, 76, .3);
}

.orc-pin-btn:hover {
    background: linear-gradient(135deg, #e8d48b 0%, #c9a84c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, .4);
}

.orc-pin-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.orc-pin-back {
    margin-top: 18px;
    background: none;
    border: none;
    color: #8a7d6b;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: .5px;
}

.orc-pin-back:hover { color: #c9a84c; }

/* No-Table Modal */
.orc-no-table-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(14, 11, 8, .95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.orc-no-table-overlay.active { display: flex !important; }

.orc-no-table-box {
    background: linear-gradient(180deg, #1a1208 0%, #0e0b08 100%);
    border: 1px solid rgba(201, 168, 76, .3);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

.orc-no-table-icon { font-size: 48px; margin-bottom: 16px; }

.orc-no-table-title {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #f5ebd8;
    margin: 0 0 12px;
    font-weight: 700;
}

.orc-no-table-msg {
    font-size: 13px;
    color: #8a7d6b;
    line-height: 1.7;
    margin: 0 0 24px;
}

.orc-no-table-msg strong { color: #c9a84c; }

.orc-no-table-back {
    background: rgba(201, 168, 76, .1);
    border: 1px solid rgba(201, 168, 76, .3);
    color: #c9a84c;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}

.orc-no-table-back:hover {
    background: rgba(201, 168, 76, .2);
    border-color: #c9a84c;
}

/* Responsive */
@media (max-width: 700px) {
    .orc-prof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin: 0 20px 32px;
    }
    .orc-sel-container { padding: 0 0 32px; }
    .orc-sel-title { font-size: 20px; }
}

@media (max-width: 400px) {
    .orc-prof-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
