:root{
    --primary:#1a1d23;
    --accent:#ffc107;
    --bg:#f4f7f6;
    --white:#ffffff;
    --slate-text:#475569;
    --slate-bg:#f1f5f9;
    --success-green:#16a34a;
    --alert-red:#dc2626;
    --link-blue:#3b82f6;
}

*{
    box-sizing:border-box;
}

body{
    background:var(--bg);
    font-family:-apple-system,BlinkMacSystemFont,sans-serif;
    margin:0;
    padding:20px 15px 150px;
    text-align:center;
    color:#1e293b;
}

.container{
    max-width:800px;
    margin:0 auto;
}

.profile-card{
    background:#fff;
    border-radius:30px;
    padding:40px 20px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    border:1px solid #eef2f3;
}

.hero-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:25px;
}

.alert-pill,
.top-action-btn{
    padding:10px 20px;
    border-radius:50px;
    font-weight:900;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.5px;
    text-decoration:none;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:150px;
    box-sizing:border-box;
}

.is-usdot-profile{
    background:var(--primary);
    color:var(--accent);
}

.otr411-topmark{
    flex:1;
    font-weight:900;
    letter-spacing:2px;
    font-size:24px;
    color:#0f172a;
    line-height:1;
}

.otr411-topmark span{
    color:var(--accent);
}

.status-alert-link-row{
    margin-bottom:22px;
}

.status-alert-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:9px 16px;
    border-radius:50px;
    background:#f8fafc;
    border:1px solid #dbe4ee;
    color:#50657f;
    text-decoration:none;
    font-weight:900;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.45px;
    box-shadow:0 3px 10px rgba(15,23,42,.04);
}

.status-alert-link:hover{
    background:#f1f5f9;
}

.status-alert-active {
    background: var(--alert-red) !important;
    color: #fff !important;
    border-color: var(--alert-red) !important;
    animation: pulse 2s infinite;
}

.company-title{
    font-size:clamp(24px,5vw,32px);
    font-weight:900;
    margin:10px 0 5px;
    line-height:1.1;
    color:#0f172a;
}

.address-text{
    max-width:520px;
    margin:0 auto 25px;
    color:#94a3b8;
    font-weight:700;
    font-size:14px;
    text-transform:uppercase;
    line-height:1.45;
}

.chip-row{
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:14px;
    flex-wrap:nowrap;
    margin-bottom:30px;
}

.chip{
    width:300px;
    min-height:74px;
    background:var(--slate-bg);
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:12px 16px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    line-height:1.15;
}

.chip-label{
    font-size:10px;
    font-weight:900;
    letter-spacing:.4px;
    text-transform:uppercase;
    margin-bottom:6px;
    color:#6b7b91;
}

.chip-value{
    font-size:13px;
    font-weight:900;
    letter-spacing:.2px;
    color:#334155;
}

.active-status,
.good{
    background:#f0fdf4 !important;
    border:1px solid #bbf7d0;
}

.bad-status,
.danger{
    background:#fef2f2 !important;
    border:1px solid #fecaca;
}

.active-status .chip-label,
.active-status .chip-value,
.good .chip-label,
.good .chip-value{
    color:#15803d;
}

.bad-status .chip-label,
.bad-status .chip-value,
.danger .chip-label,
.danger .chip-value{
    color:#dc2626;
}

textarea,
.input-mini{
    width:100%;
    max-width:600px;
    border-radius:15px;
    border:2px solid #f1f5f9;
    background:#f8fafc;
    padding:15px;
    font-size:16px;
    margin-bottom:15px;
    font-family:inherit;
    outline:none;
}

textarea{
    height:120px;
}

.security-container{
    background:#f8fafc;
    padding:20px;
    border-radius:20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    border:1px solid #f1f5f9;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.btn-submit-modern{
    background:var(--primary);
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:12px;
    font-weight:900;
    font-size:13px;
    text-transform:uppercase;
    cursor:pointer;
}

.btn-submit-modern:active{
    transform:scale(.96);
}

.comment-item{
    background:#fff;
    border-radius:20px;
    padding:25px;
    margin-bottom:20px;
    text-align:left;
    border:1px solid #eef2f3;
    border-left:6px solid var(--accent);
}

/* =========================================================
   SHARE EXPERIENCE TOGGLE BUTTON 
========================================================= */
.toggle-experience-btn {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 25px;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 50px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    transition: all 0.2s ease;
}

.toggle-experience-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

.toggle-experience-btn .experience-label {
    flex: 1;
    text-align: center;
    padding-left: 28px;
}

.toggle-experience-btn .experience-label strong {
    color: #ca8a04;
}

.toggle-experience-btn .arrow {
    background: #64748b;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.collapsible-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-wrapper.active {
    max-height: 1000px;
}

/* =========================================================
   UI CONTROLS, TABS, FILTERS & MINI CARDS 
========================================================= */
.honeypot-field { 
    display: none !important; 
}

.not-found-card { 
    padding: 40px 20px; 
    text-align: center; 
    border: 2px dashed #cbd5e1; 
    border-radius: 20px; 
    margin-top: 20px; 
}

.similar-profiles-container { 
    margin: 30px 0 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* BIGGER TABS */
.tab-btn {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    color: #475569;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #f1f5f9;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--accent);
    border-color: var(--primary);
}

/* GUARANTEED YELLOW WARNING TAB */
.warning-tab {
    background: #fef08a !important;
    color: #854d0e !important;
    border-color: #fde047 !important;
}

.warning-tab:hover {
    background: #fde047 !important;
}

.warning-tab.active {
    background: #eab308 !important;
    color: #ffffff !important;
    border-color: #ca8a04 !important;
}

.tab-content {
    display: none;
    margin-top: 15px;
}

.tab-content.active {
    display: block;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* BIGGER FILTERS */
.filter-btn {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    color: #475569;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}

.filter-btn.active {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

.duck-test-badge {
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-tab-msg {
    padding: 25px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 13px;
}

.profile-card-mini {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.profile-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.profile-card-mini .badge-mini {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-card-mini .title {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.profile-card-mini .meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.profile-card-mini .meta span {
    color: #334155;
    font-weight: 800;
}

.profile-card-mini .address {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.profile-card-mini .highlight {
    background-color: #fef08a;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 3px;
}

.blink{
    animation:pulse 2s infinite;
}

@keyframes pulse{
    0%,100%{opacity:1;}
    50%{opacity:.5;}
}

@media(max-width:700px){
    .controls-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Keep buttons robust but fitted 3-by-3 for mobile screens */
    .tab-btn, .filter-btn {
        font-size: 11px;
        padding: 10px 14px;
    }

    .tabs-container, .filter-container {
        justify-content: center;
        gap: 6px;
    }

    .chip-row{
        flex-wrap:nowrap;
        gap:10px;
        padding:0 6px;
    }

    .chip{
        width:48%;
        min-width:0;
        max-width:none;
        padding:10px 8px;
        min-height:68px;
    }

    .chip-label{
        font-size:9px;
        margin-bottom:4px;
    }

    .chip-value{
        font-size:12px;
        line-height:1.15;
    }
}

@media(max-width:500px){
    body{
        padding-left:10px;
        padding-right:10px;
    }

    .profile-card{
        padding:28px 14px;
        border-radius:24px;
    }

    .hero-top{
        gap:5px;
    }

    .alert-pill,
    .top-action-btn{
        font-size:9px;
        padding:8px 12px;
        min-width:120px;
    }

    .otr411-topmark{
        font-size:18px;
    }

    .address-text{
        font-size:13px;
        max-width:92%;
    }

    .status-alert-link{
        font-size:10px;
        padding:8px 14px;
    }
}