/* ===================================================
   Triad Synchronization Page Styles
   Dark-Bio-Tech / HUD / Orbital UI Aesthetic
   =================================================== */

body.triad-page {
    font-family: 'Noto Sans Georgian', sans-serif;
    background: #020208;
    color: rgba(255, 255, 255, 0.92);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* --- Navigation --- */
.triad-nav {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 100;
    padding: 20px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.triad-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 18px;
    background: rgba(0, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.triad-nav a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* ===================================================
   SYNAPTIC CANVAS — Fixed full-viewport neural network
   =================================================== */
#synaptic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.triad-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.triad-hero a,
.triad-hero button {
    pointer-events: auto;
}

/* ===================================================
   CLINICAL NEURAL RADAR — CSS Orbital UI
   Concentric rings with perspective tilt,
   orbiting satellite dots, and sweep line.
   =================================================== */
.neural-radar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    z-index: 15;
    pointer-events: none;
    perspective: 800px;
    opacity: 0.55;
}

.radar-plane {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotateX(60deg);
    transform-style: preserve-3d;
}

/* --- Radar Rings --- */
.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}

.ring-1 {
    width: 140px;
    height: 140px;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-style: solid;
    transform: translate(-50%, -50%);
    animation: radar-cw 28s linear infinite;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(0, 180, 212, 0.18);
    border-style: dashed;
    transform: translate(-50%, -50%);
    animation: radar-ccw 42s linear infinite;
}

.ring-3 {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(138, 43, 226, 0.12);
    border-style: dotted;
    transform: translate(-50%, -50%);
    animation: radar-cw 58s linear infinite;
}

.ring-4 {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-style: solid;
    transform: translate(-50%, -50%);
    animation: radar-ccw 72s linear infinite;
}

.ring-5 {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(0, 180, 212, 0.05);
    border-style: dashed;
    transform: translate(-50%, -50%);
    animation: radar-cw 95s linear infinite;
}

/* --- Radar Core Dot --- */
.radar-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow:
        0 0 6px rgba(0, 229, 255, 0.9),
        0 0 16px rgba(0, 229, 255, 0.4),
        0 0 30px rgba(0, 229, 255, 0.15);
    animation: core-pulse 3s ease-in-out infinite;
}

/* --- Radar Sweep Line --- */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.25), transparent);
    transform-origin: 0% 50%;
    animation: sweep 10s linear infinite;
}

/* --- Orbiting Satellite Dots --- */
.sat-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.sat-dot {
    position: absolute;
    border-radius: 50%;
}

.orbit-1 {
    animation: orbit 18s linear infinite;
}
.orbit-1 .sat-dot {
    width: 4px;
    height: 4px;
    top: -70px;
    left: -2px;
    background: #00e5ff;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.9), 0 0 14px rgba(0, 229, 255, 0.3);
}

.orbit-2 {
    animation: orbit 28s linear infinite reverse;
}
.orbit-2 .sat-dot {
    width: 3px;
    height: 3px;
    top: -110px;
    left: -1.5px;
    background: #8a2be2;
    box-shadow: 0 0 6px rgba(138, 43, 226, 0.9), 0 0 12px rgba(138, 43, 226, 0.3);
}

.orbit-3 {
    animation: orbit 38s linear infinite;
}
.orbit-3 .sat-dot {
    width: 3px;
    height: 3px;
    top: -160px;
    left: -1.5px;
    background: #00b8d4;
    box-shadow: 0 0 5px rgba(0, 184, 212, 0.8), 0 0 12px rgba(0, 184, 212, 0.3);
}

.orbit-4 {
    animation: orbit 48s linear infinite reverse;
}
.orbit-4 .sat-dot {
    width: 2px;
    height: 2px;
    top: -200px;
    left: -1px;
    background: #00e5ff;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.7), 0 0 10px rgba(0, 229, 255, 0.2);
}

/* --- Radar Keyframes --- */
@keyframes radar-cw {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes radar-ccw {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes core-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.4); }
}

/* ===================================================
   HERO CONTENT — Glassmorphic Typography
   =================================================== */
.triad-hero-content {
    position: relative;
    z-index: 5;
    max-width: 720px;
    margin: 0 auto;
    padding: 200px 24px 80px;
    text-align: center;
    pointer-events: none;
}

.triad-hero-content a,
.triad-hero-content button {
    pointer-events: auto;
}

.triad-hero-title {
    font-size: 2.0rem;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #e0f7ff 0%, #00e5ff 35%, #00bcd4 60%, #b388ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.45;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3))
            drop-shadow(0 0 40px rgba(0, 200, 255, 0.15));
}

.title-accent {
    background: linear-gradient(135deg, #00ffff 0%, #7c4dff 50%, #e040fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}

.triad-hero-subtitle {
    font-size: 1.0rem;
    font-weight: 400;
    color: rgba(0, 230, 255, 0.65);
    margin: 0 0 32px;
    letter-spacing: 0.04em;
    text-shadow: 0 0 30px rgba(0, 200, 255, 0.15);
}

/* Glassmorphic description box — near-transparent so radar shows through */
.triad-hero-desc {
    font-size: 0.93rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(5, 5, 12, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 229, 255, 0.06);
    border-radius: 20px;
    padding: 32px 36px;
    pointer-events: auto;
}

.triad-hero-desc strong {
    color: #00e5ff;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

/* ===================================================
   MAIN CONTAINER — Content over fixed particles
   =================================================== */
.triad-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
    pointer-events: auto;
}

/* --- Section Headers --- */
.triad-section-header {
    text-align: center;
    margin: 0 0 48px;
}

.triad-section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #b2ebf2;
    margin: 0 0 8px;
}

.triad-section-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    margin: 12px auto 0;
    border: none;
}

/* ===================================================
   PROCESS TIMELINE (3 Phases)
   =================================================== */
.triad-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin-bottom: 80px;
}

/* Vertical line connecting phases */
.triad-phases::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(0, 255, 255, 0.5),
        rgba(120, 60, 255, 0.5),
        rgba(140, 60, 255, 0.3)
    );
}

.phase-card {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    position: relative;
}

/* Phase number circle */
.phase-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.phase-card:nth-child(1) .phase-number {
    background: rgba(0, 255, 255, 0.08);
    border: 2px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}

.phase-card:nth-child(2) .phase-number {
    background: rgba(120, 60, 255, 0.08);
    border: 2px solid rgba(120, 60, 255, 0.4);
    color: #7c3cff;
    box-shadow: 0 0 25px rgba(120, 60, 255, 0.15);
}

.phase-card:nth-child(3) .phase-number {
    background: rgba(180, 80, 255, 0.08);
    border: 2px solid rgba(180, 80, 255, 0.4);
    color: #b450ff;
    box-shadow: 0 0 25px rgba(180, 80, 255, 0.15);
}

.phase-content {
    flex: 1;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    padding: 24px 28px;
    transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.phase-content:hover {
    border-color: rgba(0, 255, 255, 0.2);
    transform: translateX(4px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.05);
}

.phase-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #b2ebf2;
}

.phase-content p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ===================================================
   FEEDBACK SECTION
   =================================================== */
.triad-feedback-section {
    margin-bottom: 80px;
}

/* --- Feedback Form --- */
.triad-form-wrapper {
    background: rgba(10, 10, 15, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 229, 255, 0.06);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 60px;
}

.triad-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 230, 255, 0.55);
    letter-spacing: 0.03em;
}

.form-group select,
.form-group textarea {
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: 'Noto Sans Georgian', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300e5ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #0a0a18;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.08);
}

/* Radio group for privacy */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: rgba(0, 255, 255, 0.25);
    background: rgba(0, 255, 255, 0.03);
}

.radio-option input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: #00e5ff;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.radio-option span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Name field (conditional) */
.name-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.name-field.visible {
    max-height: 100px;
    opacity: 1;
    margin-top: 16px;
}

.name-field input {
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: 'Noto Sans Georgian', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.name-field input:focus {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.08);
}

/* Submit button */
.triad-submit-btn {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(120, 60, 255, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #b2ebf2;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.04em;
    align-self: center;
    min-width: 200px;
}

.triad-submit-btn:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(120, 60, 255, 0.35));
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15), 0 0 80px rgba(120, 60, 255, 0.08);
    transform: translateY(-2px);
    color: #fff;
}

.triad-submit-btn:active {
    transform: translateY(0);
}

.triad-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Form messages */
.form-message {
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 180, 0.06);
    border: 1px solid rgba(0, 255, 180, 0.2);
    color: rgba(0, 255, 180, 0.9);
}

.form-message.error {
    display: block;
    background: rgba(255, 60, 60, 0.06);
    border: 1px solid rgba(255, 60, 60, 0.2);
    color: rgba(255, 120, 120, 0.9);
}

/* --- Stats strip --- */
.fb-stats-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.fb-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.fb-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    flex-shrink: 0;
}

/* --- Masonry Grid --- */
.fb-masonry {
    columns: 3;
    column-gap: 18px;
}

.fb-masonry .fb-card {
    break-inside: avoid;
    margin-bottom: 18px;
}

@media (max-width: 1100px) {
    .fb-masonry { columns: 2; }
}

@media (max-width: 640px) {
    .fb-masonry { columns: 1; }
}

/* --- Feedback Card — glassmorphism --- */
.fb-card {
    background: rgba(10, 10, 15, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 229, 255, 0.05);
    border-radius: 16px;
    padding: 22px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.08), rgba(167, 139, 250, 0.06), transparent);
}

.fb-card:hover {
    transform: translateY(-3px);
    background: rgba(10, 10, 15, 0.15);
    border-color: rgba(0, 229, 255, 0.12);
    box-shadow:
        0 12px 40px rgba(0, 229, 255, 0.04),
        0 4px 16px rgba(167, 139, 250, 0.02);
}

/* Card header */
.fb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.fb-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fb-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: #80deea;
}

.fb-author.anonymous {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    font-weight: 400;
}

.fb-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.22);
    font-family: monospace;
    letter-spacing: 0.3px;
}

/* State pills — PRE / POST clinical data */
.fb-states {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.fb-pill-label {
    color: rgba(255, 255, 255, 0.3);
}

.fb-pill-value {
    color: rgba(255, 255, 255, 0.72);
}

.fb-pill.pre {
    background: rgba(138, 43, 226, 0.04);
    border: 1px solid rgba(138, 43, 226, 0.08);
}

.fb-pill.post {
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.07);
}

.fb-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    flex-shrink: 0;
}

/* Reflection text — left accent border */
.fb-reflection {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.85;
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(0, 229, 255, 0.18);
}

/* No feedback message */
.no-feedback {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 60px 0;
}

/* ===================================================
   CREDITS FOOTER — Full-width on Triad page
   =================================================== */
.triad-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding: 40px 20px;
    border-radius: 0;
    background: rgba(2, 2, 8, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 229, 255, 0.06);
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.triad-footer:hover {
    background: rgba(2, 2, 8, 0.5);
    transform: none;
    box-shadow: 0 -4px 30px rgba(0, 229, 255, 0.04);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
    .triad-hero {
        min-height: 100vh;
    }

    .triad-hero-content {
        padding: 160px 16px 50px;
    }

    .triad-hero-title {
        font-size: 1.5rem;
    }

    .triad-hero-subtitle {
        font-size: 0.88rem;
    }

    .triad-hero-desc {
        padding: 22px 20px;
        font-size: 0.88rem;
        background: rgba(10, 10, 15, 0.55);
    }

    .neural-radar {
        transform: translate(-50%, -50%) scale(0.55);
        opacity: 0.35;
    }

    .triad-container {
        padding: 0 16px 60px;
    }

    .triad-phases::before {
        left: 20px;
    }

    .phase-card {
        gap: 16px;
        padding: 24px 0;
    }

    .phase-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .phase-content {
        padding: 18px 20px;
    }

    .phase-content h3 {
        font-size: 1rem;
    }

    .triad-form-wrapper {
        padding: 24px 18px;
    }

    .fb-card {
        padding: 18px 18px;
    }

    .fb-states {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .triad-nav {
        padding: 12px;
        gap: 8px;
    }

    .triad-nav a {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .triad-hero-title {
        font-size: 1.25rem;
    }

    .triad-hero-content {
        padding: 130px 16px 30px;
    }

    .neural-radar {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0.25;
    }
}

/* ================================================================
   ADMIN — Triad Feedback Clinical Dashboard
   Used in admin panel for managing triad feedback entries.
   ================================================================ */

/* Stats strip */
.triad-stats-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.triad-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(15, 20, 25, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.triad-stat-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.triad-stat-pill.pending .dot {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

.triad-stat-pill.pending {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.15);
}

.triad-stat-pill.approved .dot {
    background: #00e5ff;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

.triad-stat-pill.approved {
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.15);
}

.triad-stat-pill.total .dot {
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.5);
}

.triad-stat-pill.total {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.15);
}

/* Masonry grid */
.triad-masonry {
    columns: 3;
    column-gap: 16px;
}

.triad-masonry .triad-card {
    break-inside: avoid;
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .triad-masonry { columns: 2; }
}

@media (max-width: 640px) {
    .triad-masonry { columns: 1; }
}

/* Card — glassmorphism */
.triad-card {
    background: rgba(15, 20, 25, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.triad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), rgba(167, 139, 250, 0.15), transparent);
}

.triad-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 229, 255, 0.06),
        0 2px 12px rgba(167, 139, 250, 0.04);
}

/* Card header row */
.triad-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.triad-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.triad-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.triad-badge .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.triad-badge.approved {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.18);
}

.triad-badge.approved .indicator {
    background: #00e5ff;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.triad-badge.pending {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.triad-badge.pending .indicator {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.triad-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    letter-spacing: 0.3px;
}

.triad-author {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* State data pills */
.triad-states {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.triad-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.triad-state-pill .state-label {
    color: rgba(255, 255, 255, 0.35);
}

.triad-state-pill .state-value {
    color: rgba(255, 255, 255, 0.75);
}

.triad-state-pill.pre {
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.15);
}

.triad-state-pill.post {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.triad-state-pill.post .glow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    flex-shrink: 0;
}

/* Reflection text */
.triad-reflection {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    line-height: 1.85;
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 2px solid rgba(0, 229, 255, 0.2);
}

/* Action buttons */
.triad-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.triad-btn {
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid;
    transition: opacity 0.15s, transform 0.15s;
    background: transparent;
}

.triad-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.triad-btn.approve {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
    background: rgba(74, 222, 128, 0.08);
}

.triad-btn.reject {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.08);
}

.triad-btn.delete {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
}
