/* company/style.css — Dedicated Company Profile Portal Styles */
@import url('../profile/style.css');
@import url('../profile/mobile.css');

/* ─── 1. CORE TOKENS & OVERRIDES ────────────────────────────────────────── */
:root {
    --company-accent: #ff6f00;
    --company-accent-hover: #e65100;
    --company-accent-light: rgba(255, 111, 0, 0.12);
    --company-accent-border: rgba(255, 111, 0, 0.25);
    --company-card-bg: #ffffff;
    --company-border: #e2e8f0;
    --company-border-subtle: #f1f5f9;
    --company-text-main: #0f172a;
    --company-text-body: #334155;
    --company-text-muted: #64748b;
    --company-surface: #f8fafc;
    --company-radius: 16px;
    --company-radius-sm: 10px;
}

/* ─── 2. HERO HEADER, LOGO & IDENTITY ────────────────────────────────────── */
.company-profile-hero {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Full-width panoramic banner */
.company-profile-hero .profile-banner-wrapper {
    width: 100% !important;
    height: 200px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0;
}

.company-profile-hero .profile-banner-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Company logo — floats up over the banner edge like LinkedIn */
.company-logo-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    margin-top: -48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.company-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

/* Identity bar: logo + info side by side, right of logo */
.company-identity-cluster {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* ─── COMPANY HERO CARD BODY: LinkedIn-style column layout ───────────────── */
/* Override profile.css which uses flex justify-content:space-between (puts actions on the right).
   In company hub we want: identity cluster on top, actions below it as a flex-row pill bar. */
.company-profile-hero .creator-hero-card-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 24px 24px !important;
    gap: 16px !important;
}

.company-profile-hero .creator-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding-top: 0 !important;
    align-self: auto !important;
}

.company-profile-hero .creator-hero-actions .hero-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 130px !important;
    justify-content: center !important;
}

/* Public page button visible when set */
.company-profile-hero #btn-view-public-showcase {
    display: inline-flex !important;
}
.company-profile-hero #btn-view-public-showcase[style*="display: none"] {
    display: none !important;
}

/* Company name styling — override dark profile name color for light theme */
.company-profile-hero #company-display-name {
    color: var(--company-text-main, #0f172a) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

/* Creator text info padding adjustment for company hub */
.company-profile-hero .creator-text-info {
    padding-top: 8px !important;
    gap: 4px !important;
}

/* ─── 3. ABOUT TAB (OVERVIEW & CULTURE) ENHANCEMENTS ────────────────────── */
.company-edit-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--company-text-main);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.company-edit-bio-btn:hover {
    border-color: var(--company-accent);
    color: var(--company-accent);
    background: rgba(255, 111, 0, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.12);
}

.about-text-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--company-text-body);
}

.about-text-content p {
    margin-bottom: 14px;
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

.about-text-content h1, 
.about-text-content h2, 
.about-text-content h3, 
.about-text-content h4 {
    color: var(--company-text-main);
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.about-text-content h2 {
    font-size: 1.15rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.about-text-content ul, 
.about-text-content ol {
    margin: 10px 0 16px 20px;
    padding-left: 10px;
}

.about-text-content li {
    margin-bottom: 6px;
}

.about-text-content blockquote {
    margin: 14px 0;
    padding: 12px 18px;
    background: rgba(255, 111, 0, 0.05);
    border-left: 3.5px solid var(--company-accent);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.about-text-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--company-accent);
}

/* Tech Stack Chips */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--company-text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.tech-chip:hover {
    border-color: rgba(255, 111, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 0, 0.08);
    background: #fff8f2;
}

.tech-chip i {
    color: var(--company-accent);
    font-size: 0.9rem;
}

/* Perks & Benefits Grid */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.perk-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--company-text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.perk-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 111, 0, 0.35);
    box-shadow: 0 8px 22px rgba(255, 111, 0, 0.08);
}

.perk-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.16), rgba(255, 111, 0, 0.04));
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 111, 0, 0.18);
}

/* Fast Facts Items */
.company-fast-facts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fast-fact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fast-fact-item:hover {
    background: #ffffff;
    border-color: rgba(255, 111, 0, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.fast-fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 111, 0, 0.1);
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fast-fact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fast-fact-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.fast-fact-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--company-text-main);
    margin-top: 2px;
}

/* ─── 4. ULTRA-MODERN MODALS DESIGN SYSTEM ───────────────────────────────── */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100020 !important;
    padding: 20px !important;
    animation: modalBackdropFade 0.25s ease !important;
}

.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"] {
    display: none !important;
}

/* ── Element Picker & Form Modal Stacking ── */
#add-element-modal {
    z-index: 100020 !important;
}

#add-element-modal[style*="display: none"],
#add-element-modal[style*="display:none"] {
    display: none !important;
}

#aem-form-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 100050 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
    animation: modalBackdropFade 0.25s ease !important;
}

#aem-form-modal[style*="display: none"],
#aem-form-modal[style*="display:none"] {
    display: none !important;
}

#aem-form-modal[style*="display: flex"],
#aem-form-modal[style*="display:flex"] {
    display: flex !important;
}

#aem-form-modal .aem-form-dialog {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
    position: relative !important;
    width: 100% !important;
    max-width: 580px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 2rem !important;
    animation: modalScaleIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#close-aem-form-btn {
    cursor: pointer !important;
    z-index: 50 !important;
    transition: all 0.2s ease !important;
}

#close-aem-form-btn:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    transform: scale(1.08) !important;
}

.close-modal-btn:hover,
#close-aem-btn:hover {
    color: #ef4444 !important;
}

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

.modal-overlay .modal {
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    width: 100% !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    animation: modalScaleIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 22px 28px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.modal-title-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 111, 0, 0.12);
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 111, 0, 0.18);
}

.modal-title-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.modal-title-text p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 3px 0 0;
    line-height: 1.4;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.modal-body-form {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

/* Modal Form Fields & Inputs */
.form-field-group {
    margin-bottom: 18px;
}

.form-field-group label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-field-group label i {
    color: var(--company-accent);
    font-size: 0.85rem;
}

.form-field-group input[type="text"],
.form-field-group input[type="email"],
.form-field-group input[type="url"],
.form-field-group input[type="number"],
.form-field-group select,
.form-field-group textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    padding: 11px 15px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-field-group input:focus,
.form-field-group select:focus,
.form-field-group textarea:focus {
    background: #ffffff;
    border-color: #ff6f00;
    box-shadow: 0 0 0 3.5px rgba(255, 111, 0, 0.14);
    outline: none;
}

.form-field-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-field-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.55;
}

.form-field-hint {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-actions-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.btn-modal-cancel {
    padding: 10px 20px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-modal-submit {
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6f00, #f59e0b);
    border: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-modal-submit:hover {
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.42);
    transform: translateY(-1px);
}

/* ─── 5. PORTFOLIO BUILDER TAB STYLING ───────────────────────────────────── */

/* Studio Top Bar inside Company Portfolio Tab */
#tab-portfolio .studio-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    padding: 14px 20px !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    border-radius: 14px !important;
    position: static !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

#tab-portfolio .studio-top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#tab-portfolio .studio-top-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#tab-portfolio .studio-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--company-text-main, #0f172a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.25;
}

#tab-portfolio .studio-modal-title i {
    color: var(--primary, #ff6f00);
}

#tab-portfolio .studio-modal-subtitle {
    font-size: 0.74rem;
    color: var(--company-text-muted, #64748b);
    line-height: 1.25;
}

#tab-portfolio .studio-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Showcase URL info row */
.company-showcase-url-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.86rem;
    color: var(--company-text-muted, #64748b);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.company-showcase-url-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    color: var(--primary, #ff6f00);
    background: rgba(255, 111, 0, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 111, 0, 0.2);
    word-break: break-all;
    max-width: 100%;
}

/* Portfolio KPI Metrics Bar */
.portfolio-kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
    min-width: 0;
}

.portfolio-kpi-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    min-width: 0;
}

.portfolio-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 111, 0, 0.1);
    color: var(--company-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.portfolio-kpi-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--company-text-main);
    line-height: 1.15;
}

.portfolio-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--company-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

/* Category Filter Pills */
.company-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.company-cat-pill {
    padding: 7px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--company-text-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.company-cat-pill:hover {
    border-color: rgba(255, 111, 0, 0.4);
    color: var(--company-accent);
}

.company-cat-pill.active {
    background: var(--company-accent);
    color: #ffffff;
    border-color: var(--company-accent);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.25);
}

/* Portfolio Elements Grid */
.company-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
    margin-top: 10px;
    width: 100%;
    min-width: 0;
}

.company-element-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.company-element-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 111, 0, 0.3);
}

.company-element-card-body {
    padding: 18px;
    min-width: 0;
}

.company-element-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.company-element-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.company-element-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
}

.company-element-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--company-text-main);
    line-height: 1.35;
    margin-bottom: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.company-element-desc {
    font-size: 0.83rem;
    color: var(--company-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.company-element-footer {
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Quick Element Starter Grid */
.company-quick-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
}

.company-quick-starter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    color: var(--company-text-main);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-quick-starter-btn:hover {
    border-color: var(--company-accent);
    border-style: solid;
    color: var(--company-accent);
    background: rgba(255, 111, 0, 0.04);
    transform: translateY(-2px);
}

/* Preset Themes Grid (Templates & Aesthetics in side column) */
.preset-themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
    padding: 4px 4px 10px 2px;
    margin-top: 10px;
    min-width: 0;
}

.theme-tile {
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 12px;
}

.theme-tile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
}

.theme-tile-name {
    font-size: 0.84rem;
    line-height: 1.25;
    word-break: break-word;
    min-width: 0;
}

.theme-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    flex-shrink: 0;
}

.theme-archetype-tag {
    font-size: 0.68rem;
    line-height: 1.25;
    word-break: break-word;
}

.theme-tile-desc {
    font-size: 0.68rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Hex Color Pickers */
.color-pickers-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.color-picker-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-picker-item input[type="color"] {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    padding: 2px 4px;
    cursor: pointer;
    background: #ffffff;
    box-sizing: border-box;
}

/* ─── 6. TALENTX ENABLER & TALENT INBOX TAB STYLING ──────────────────────── */
.talentx-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.talentx-switch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 20px;
}

.talentx-status-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.talentx-status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.talentx-status-pill.inactive {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Role Selector Badges */
.role-pills-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.role-select-chip {
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--company-text-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.role-select-chip.selected {
    background: rgba(255, 111, 0, 0.1);
    border-color: var(--company-accent);
    color: var(--company-accent);
}

/* Pipeline Candidate Cards */
.candidate-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.candidate-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.candidate-card:hover {
    border-color: rgba(255, 111, 0, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.candidate-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.candidate-info-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1.5px solid var(--border);
}

.candidate-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--company-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.candidate-role {
    font-size: 0.8rem;
    color: var(--company-text-muted);
}

.candidate-pitch {
    font-size: 0.85rem;
    color: var(--company-text-body);
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 14px;
}

.candidate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

/* ─── 7. FOUNDER & JOB CARDS POLISH ──────────────────────────────────────── */
.founder-card-box {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.founder-card-box:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.founder-preview-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.founder-preview-badge-row {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #ff6f00), #f59e0b);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 111, 0, 0.3);
}

.job-card:hover::before {
    opacity: 1;
}

.job-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.job-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.job-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.job-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-surface, #f8fafc);
    color: var(--text-body);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-tag.primary {
    background: rgba(255, 111, 0, 0.1);
    color: #ff6f00;
    border-color: rgba(255, 111, 0, 0.2);
}

.job-tag.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.job-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}

.job-salary {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.job-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── 8. RESPONSIVE BREAKPOINTS & MOBILE FIXES ──────────────────────────── */
html {
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
}

body {
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch;
}

.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    height: auto !important;
    overflow: visible !important;
}

/* ─── CRITICAL: COMPANY SETTINGS TAB IS A STANDARD INLINE TAB ───────────── */
/* profile/mobile.css enforces position: fixed !important; inset: 0 !important; on #tab-settings.active.
   In Company Hub, #tab-settings is a standard inline tab, NOT a modal drawer!
   This override keeps it in the normal document flow and prevents scroll trapping. */
#tab-company-settings,
#tab-company-settings.active,
#tab-settings,
#tab-settings.active {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    background: transparent !important;
    z-index: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    animation: tabFade 0.25s ease !important;
}

/* Ensure no nested containers trap scrolling on mobile touch screens */
#tab-company-settings .activity-timeline,
#tab-settings .activity-timeline,
.activity-timeline {
    max-height: none !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
}

#tab-company-settings .item-list-container,
#tab-settings .item-list-container,
.item-list-container {
    max-height: none !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
}

/* ─── TAB NAV — always horizontal flex, scrollable, override profile.css grid ── */
.tab-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    grid-template-columns: unset !important;
}
.tab-nav::-webkit-scrollbar {
    display: none !important;
}
.tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 10px 18px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    border-radius: 10px !important;
}
.tab-btn i {
    font-size: 1rem !important;
    margin: 0 !important;
    flex-shrink: 0;
}
/* hide sub-label always for company hub to keep tabs compact */
.tab-sub-label {
    display: none !important;
}
.tab-main-label {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* 2-column layout utilities */
.company-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Custom Specialty Input Row */
.custom-specialty-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.custom-specialty-input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--text-main);
    background: #ffffff;
}

.custom-specialty-input:focus {
    border-color: var(--company-accent);
    outline: none;
}

.chip.custom-chip {
    padding-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.remove-chip-btn {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.remove-chip-btn:hover {
    opacity: 1;
}

/* Company Metrics Bar (4-item structure) */
.company-profile-hero .creator-metrics-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    background: #f8fafc !important;
}

.company-profile-hero .creator-metrics-bar .metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}

.company-profile-hero .creator-metrics-bar .metric-item:last-child {
    border-right: none;
}

.company-profile-hero .creator-metrics-bar .metric-item:hover {
    background: rgba(255, 111, 0, 0.05);
}

/* ─── 8. RESPONSIVE MEDIA QUERIES ────────────────────────────────────────── */

/* TABLET / SMALL LAPTOP BREAKPOINT (<= 1024px) */
@media (max-width: 1024px) {
    /* Stack the main column and side column on tablets / smaller laptops */
    .profile-tab-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .profile-main-column,
    .profile-side-column {
        width: 100% !important;
        max-width: 100% !important;
    }
    .company-elements-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 16px !important;
    }
}

/* NARROW TABLET BREAKPOINT (<= 900px) */
@media (max-width: 900px) {
    .talentx-hub-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-kpi-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }
    .portfolio-kpi-card {
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .company-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .company-showcase-url-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 16px !important;
    }
    .company-showcase-url-bar > div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .company-showcase-url-bar > div:last-child {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .company-showcase-link {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px 14px !important;
    }
}

/* MOBILE / TABLET PORTRAIT BREAKPOINT (<= 768px) */
@media (max-width: 768px) {
    .main-layout {
        padding: 0 12px 30px;
    }
    .top-nav {
        padding: 8px 12px !important;
    }
    .top-nav .nav-btn-text {
        display: none !important;
    }
    .top-nav .btn-secondary.small {
        padding: 7px 10px !important;
        font-size: 0.85rem !important;
    }
    .nav-page-title {
        font-size: 1.05rem !important;
    }
    .creator-hero-card-body {
        padding: 0 16px 20px !important;
    }
    .company-identity-cluster {
        flex-direction: row !important;
        align-items: flex-end !important;
        gap: 12px !important;
    }
    .company-logo-wrapper {
        width: 76px !important;
        height: 76px !important;
        margin-top: -38px !important;
        border-radius: 14px !important;
    }
    .creator-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    /* Hero action buttons: always side by side */
    .creator-hero-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 16px !important;
    }
    .creator-hero-actions .hero-btn {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        justify-content: center !important;
        padding: 10px 14px !important;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    /* ── PORTFOLIO BUILDER RESPONSIVENESS (<= 768px) ── */
    #tab-portfolio .studio-top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        margin-top: 0 !important;
        position: static !important;
    }
    #tab-portfolio .studio-top-bar-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    #tab-portfolio .studio-top-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    #tab-portfolio .studio-top-actions .btn-secondary,
    #tab-portfolio .studio-top-actions .btn-primary {
        flex: 1 1 auto !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }

    /* KPI Bar: Keep as compact 2x2 grid on mobile */
    .portfolio-kpi-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    .portfolio-kpi-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
    }
    .portfolio-kpi-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }
    .portfolio-kpi-val {
        font-size: 1.15rem !important;
    }
    .portfolio-kpi-label {
        font-size: 0.68rem !important;
    }

    /* Swipeable category filter pills */
    .company-cat-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        margin-bottom: 16px !important;
        scrollbar-width: none !important;
    }
    .company-cat-pills::-webkit-scrollbar {
        display: none !important;
    }
    .company-cat-pill {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Elements grid: clean 1 column on mobile */
    .company-elements-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .company-element-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .company-element-card-body {
        padding: 16px !important;
        min-width: 0 !important;
    }
    .company-element-title {
        font-size: 1rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    .company-element-desc {
        font-size: 0.82rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    .company-element-thumb {
        width: 100% !important;
        height: 135px !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }
    .company-element-footer {
        padding: 12px 16px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Presets Theme Grid in Templates card */
    .preset-themes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        max-height: 420px !important;
    }
    .theme-tile {
        padding: 8px !important;
        gap: 6px !important;
        min-width: 0 !important;
    }
    .theme-tile-preview {
        height: 46px !important;
    }
    .theme-tile-pill {
        font-size: 0.66rem !important;
        padding: 2px 6px !important;
    }
    .theme-tile-name-row {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .theme-tile-name {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    .theme-badge {
        font-size: 0.62rem !important;
        padding: 2px 5px !important;
    }
    .theme-archetype-tag {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
    .theme-tile-desc {
        font-size: 0.66rem !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    .company-profile-hero .creator-metrics-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0 !important;
    }
    .company-profile-hero .creator-metrics-bar .metric-item {
        padding: 12px 14px !important;
        border-bottom: 1px solid var(--border) !important;
        border-right: 1px solid var(--border) !important;
    }
    .company-profile-hero .creator-metrics-bar .metric-item:nth-child(2n) {
        border-right: none !important;
    }
    .company-profile-hero .creator-metrics-bar .metric-item:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
    .modal-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* SMARTPHONE BREAKPOINT (<= 640px) */
@media (max-width: 640px) {
    .profile-info-card,
    .profile-edit-card,
    .panel-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }
    .profile-info-card .info-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .profile-info-card .info-card-header > div {
        width: 100% !important;
    }
    .profile-info-card .info-card-header .btn-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 9px 14px !important;
        font-size: 0.86rem !important;
    }
    .profile-info-card .info-card-body {
        padding: 10px 0 0 0 !important;
    }

    .company-quick-starters {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .company-quick-starter-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }

    .color-pickers-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
    }
    .color-picker-item {
        flex: 1 !important;
        min-width: 0 !important;
    }
    .color-picker-item input[type="color"] {
        width: 100% !important;
        height: 38px !important;
    }

    #empty-company-elements-state {
        padding: 26px 14px !important;
    }

    .company-modal-content {
        max-width: 95% !important;
        margin: 16px auto !important;
        border-radius: 16px !important;
    }
    .modal-header,
    .modal-body-form,
    .modal-actions-footer {
        padding: 16px 18px !important;
    }
    .modal-body-form {
        max-height: 75vh !important;
    }
    .modal-actions-footer {
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }
    .modal-actions-footer button {
        width: 100% !important;
    }
    .creator-hero-actions {
        grid-template-columns: 1fr !important;
    }
    .candidate-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .candidate-actions-row {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .candidate-actions-row button,
    .candidate-actions-row a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* COMPACT MOBILE BREAKPOINT (<= 480px) */
@media (max-width: 480px) {
    .portfolio-kpi-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .portfolio-kpi-card {
        padding: 10px 8px !important;
        gap: 8px !important;
        border-radius: 10px !important;
    }
    .portfolio-kpi-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }
    .portfolio-kpi-val {
        font-size: 1.1rem !important;
    }
    .portfolio-kpi-label {
        font-size: 0.64rem !important;
    }
    .studio-modal-title {
        font-size: 0.95rem !important;
    }
    .studio-modal-subtitle {
        font-size: 0.68rem !important;
    }
    .studio-top-actions button,
    .studio-top-actions a {
        font-size: 0.76rem !important;
        padding: 7px 10px !important;
    }
}

/* SMALL MOBILE / IPHONE SE BREAKPOINT (<= 380px) */
@media (max-width: 380px) {
    .company-profile-hero .creator-metrics-bar .metric-item {
        padding: 10px 8px !important;
        gap: 8px !important;
    }
    .company-profile-hero .creator-metrics-bar .metric-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    .company-profile-hero .creator-metrics-bar .metric-val {
        font-size: 0.9rem !important;
    }
    .company-profile-hero .creator-metrics-bar .metric-lbl {
        font-size: 0.68rem !important;
    }
    .preset-themes-grid {
        grid-template-columns: 1fr !important;
    }
    .company-quick-starters {
        grid-template-columns: 1fr !important;
    }
}

/* ─── 9. TOGGLE SWITCH COMPONENT ─────────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
    background-color: #ff6f00 !important;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* ─── 10. COMPANY PROFILE RESTRUCTURE: NEW CLASSES ──────────────────────── */

/* Studio-card for company portfolio showcase settings */
.studio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.studio-card > .card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.studio-card > .card-body {
    padding: 20px 22px;
}

/* Ensure info-card-body inside company has proper padding for forms */
.profile-info-card .info-card-body {
    padding: 16px 22px;
}

/* TalentX switch header inside profile-info-card */
.profile-info-card .talentx-switch-header {
    border-radius: 10px;
    margin-bottom: 0;
}

/* Override bio-text for company about section */
.profile-info-card .bio-text {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-main);
}

/* Skills container for company tech stack chips */
.profile-info-card .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Studio cards and form controls in company profile portfolio */
.studio-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    margin-bottom: 24px;
}

.studio-card:hover {
    border-color: rgba(255, 111, 0, 0.2);
    box-shadow: 0 8px 28px -4px rgba(15, 23, 42, 0.08);
}

.studio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.studio-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 111, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.studio-icon-circle.talentx-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.studio-card-title h4 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.studio-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.studio-header-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-status-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.studio-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.studio-desc-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.studio-card-body .form-group {
    margin-bottom: 0;
}

.studio-card-body .form-group label {
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--text-main);
    margin-bottom: 6px;
    display: block;
}

.studio-card-body input[type="text"],
.studio-card-body input[type="number"],
.studio-card-body select,
.studio-card-body textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
}

.studio-card-body input:focus,
.studio-card-body select:focus,
.studio-card-body textarea:focus {
    background: #ffffff;
    border-color: #ff6f00;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.12);
    outline: none;
}

.studio-card-body select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.studio-card-body textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}

.input-with-prefix {
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-prefix:focus-within {
    border-color: #ff6f00;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.12);
    background: #ffffff;
}

.prefix-badge, .suffix-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: monospace;
    height: 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.input-with-prefix input {
    border: none !important;
    background: transparent !important;
    padding: 10px 12px !important;
    height: 40px;
    flex: 1;
    font-size: 0.88rem;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Validation msg */
.validation-msg {
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 600;
}
.validation-msg.valid {
    color: #16a34a;
}
.validation-msg.invalid {
    color: #ef4444;
}

/* Premium Switch toggle */
.premium-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}
.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.premium-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .25s ease;
    border-radius: 24px;
}
.premium-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.premium-switch input:checked + .premium-slider {
    background-color: #ff6f00;
}
.premium-switch input:checked + .premium-slider:before {
    transform: translateX(20px);
}
