/* ════════ CONFIG ════════ */
:root {
    --rx-black: #05060A;
    --rx-yellow: #FFD700;
    --rx-yellow-pop: #FFE55C;
    --rx-ink: #000000;
    --rx-white: #FFFFFF;
    --rx-font-head: 'Bebas Neue', sans-serif;
    --rx-font-body: 'Outfit', sans-serif;
}

/* ════════ CARD FRAME ════════ */
/* Renamed from .rx-card to .cpb-card to avoid
   conflicting with the job detail page's .rx-card */
.cpb-card {
    background: var(--rx-white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.cpb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-color: var(--rx-yellow);
}

/* Shield hover only for cpb-card */
.cpb-card:hover .rx-shield-anchor {
    transform: scale(1.2) rotate(-10deg);
}

/* ════════ HEADER ════════ */
.rx-head {
    background: var(--rx-black);
    padding: 2.5rem 1rem 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--rx-yellow);
}

.rx-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--rx-yellow) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.rx-status {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,215,0,0.15);
    border: 1px solid var(--rx-yellow);
    color: var(--rx-yellow);
    font-family: var(--rx-font-head);
    font-size: 0.9rem; letter-spacing: 1px;
    padding: 4px 10px; border-radius: 4px;
    display: flex; align-items: center; gap: 6px;
    z-index: 2;
}

.rx-pulse {
    width: 6px; height: 6px;
    background: var(--rx-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--rx-yellow);
    animation: rxFlash 1s infinite;
}
@keyframes rxFlash { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.rx-identity { position: relative; z-index: 2; }

.rx-logo-orbit {
    position: relative;
    width: 90px; height: 90px;
    margin: 0 auto 1rem;
}

.rx-logo-box {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rx-yellow), #B8860B);
    padding: 3px;
    box-shadow: 0 0 25px rgba(255,215,0,0.4);
}

.rx-logo-box img,
.rx-logo-box span {
    display: flex;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--rx-black);
    color: var(--rx-yellow);
    object-fit: cover;
    align-items: center;
    justify-content: center;
    font-family: var(--rx-font-head);
    font-size: 2rem;
}

.rx-shield-anchor {
    position: absolute; bottom: -8px; right: -12px;
    width: 38px; height: 44px;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.9));
    transition: transform 0.3s;
}

.rx-title { margin: 0 0 0.5rem; line-height: 1; }
.rx-title a {
    color: var(--rx-yellow);
    font-family: var(--rx-font-head);
    font-size: 1.8rem; letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #FFE55C, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5));
}

.rx-badge {
    display: inline-block;
    font-family: var(--rx-font-body);
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 4px 8px; border-radius: 4px;
}
.v-gold { color: var(--rx-black); background: var(--rx-yellow); }
.v-std  { color: #666; background: rgba(255,255,255,0.1); }

/* ════════ BODY ════════ */
.rx-body {
    background: var(--rx-white);
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rx-grid { display: flex; flex-direction: column; gap: 0.8rem; }

.rx-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.6rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.rx-row:hover    { background: #f4f4f4; }
.rx-row.highlight{ background: #FFF9C4; border-left: 3px solid var(--rx-yellow); }

.rx-icon {
    width: 32px; height: 32px;
    background: var(--rx-black);
    color: var(--rx-yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rx-data { display: flex; flex-direction: column; overflow: hidden; }
.rx-label {
    font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase;
    color: #666; margin-bottom: 2px;
}
.rx-val {
    font-family: var(--rx-font-body);
    font-size: 1rem; font-weight: 700;
    color: var(--rx-ink);
}

.rx-divider {
    height: 2px; background: #EEE;
    margin: 1.2rem 0;
    position: relative;
}
.rx-divider::after {
    content: ''; position: absolute;
    left: 0; top: 0;
    height: 100%; width: 40px;
    background: var(--rx-yellow);
}

.rx-actions {
    margin-top: auto;
    display: flex; flex-direction: column; gap: 1rem;
}

.rx-app-link {
    font-size: 0.85rem; font-weight: 600;
    text-align: center; color: var(--rx-black);
}

.rx-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 0.9rem;
    background: var(--rx-black);
    color: var(--rx-yellow);
    font-family: var(--rx-font-head);
    font-size: 1.1rem; letter-spacing: 1px;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.rx-btn:hover {
    background: var(--rx-yellow);
    color: var(--rx-black);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255,215,0,0.4);
}

.rx-shine {
    position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
}
.rx-btn:hover .rx-shine { animation: rxShine 0.5s forwards; }
@keyframes rxShine { 100% { left: 150%; } }

/* Helpers */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
