/* ============================================
   APP-PAGES.CSS â€” Sandbox-specific page styles
   Uses think's design tokens from variables.css
   Glassmorphism patterns inherited from components.css
============================================ */

#centered_block {
    padding-top: 0;
}


/* ============================================
   SHARED PAGE LAYOUT
============================================ */
.app-page-container {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

/* ============================================
   DASHBOARD â€” Tool Cards
============================================ */
.card-icon-emoji {
    font-size: 2rem;
    display: block;
}

.admin-card {
    border: 1px solid var(--accent-cyan, #00d4ff) !important;
}

.admin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent);
    pointer-events: none;
}

/* ============================================
   SCHEDULING
============================================ */
.portal-scheduling-container {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.scheduling-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.week-label {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1rem;
    color: var(--text-primary, #ffffff);
    min-width: 200px;
    text-align: center;
}

.scheduling-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.schedule-grid-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.schedule-table th,
.schedule-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, #a0a0b0);
    font-weight: 500;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-label {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
}

.sched-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #ffffff);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}

.sched-select:hover:not(:disabled) {
    border-color: var(--accent-cyan, #00d4ff);
}

.sched-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.capacity-indicator {
    display: block;
    font-size: 0.65rem;
    margin-top: 2px;
    font-family: monospace;
}

.capacity-ok { color: var(--accent-cyan, #00d4ff); }
.capacity-full { color: #ff6b6b; }

/* Scheduling view toggle (admin) */
.sched-view-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.sched-toggle-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.sched-toggle-btn.is-active {
    background: var(--accent-cyan, #00d4ff);
    color: #000;
    font-weight: 600;
}

/* Team overview */
.sched-overview-table, .sched-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.sched-overview-table th, .sched-summary-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    color: var(--text-secondary, #a0a0b0);
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 500;
}

.sched-overview-slot, .sched-summary-row td, .sched-summary-totals-row td {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

/* Dashboard Badges */
.portal-option-card {
    position: relative;
}
.tool-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-danger);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Inbox History & UI */
.history-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.history-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    max-width: 80%;
}
.history-item.outgoing {
    background: rgba(52, 152, 219, 0.1);
    align-self: flex-end;
    margin-left: auto;
    border-left: 3px solid var(--color-primary);
}
.history-item.incoming {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-left: 3px solid var(--color-secondary);
}

/* Outreach Table */
.outreach-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
}
.outreach-table th, .outreach-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.outreach-table th {
    background: rgba(255,255,255,0.02);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

.reveal {
    animation: reveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
var(--text-primary, #fff);
*/

.sched-summary-remote { color: var(--text-primary, #fff); opacity: 0.8; }
.sched-summary-onprem { color: var(--accent-cyan, #00d4ff); font-weight: 600; }
.sched-summary-total { color: var(--text-primary, #fff); font-weight: 700; }
.sched-summary-zero { opacity: 0.4; }

.sched-overview-time-cell {
    font-weight: 600;
    color: var(--text-secondary, #a0a0b0);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sched-overview-person {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin: 2px;
    font-size: 0.7rem;
    color: #fff;
    white-space: nowrap;
}

.sched-overview-onprem { background: var(--accent-cyan, #00d4ff); color: #000; }
.sched-overview-remote { background: rgba(255, 255, 255, 0.1); }
.sched-overview-empty { color: rgba(255, 255, 255, 0.1); }

/* ============================================
   INBOX
============================================ */
.inbox-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.inbox-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.inbox-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.inbox-platform-badge {
    background: var(--accent-cyan, #00d4ff);
    color: #000;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-aiparel { background: #8b5cf6; color: #fff; }
.badge-kloe { background: #10b981; color: #fff; }
.badge-thinkbubble { background: #037cc7; color: #fff; }
.badge-default { background: #4b5563; color: #fff; }

.inbox-sender {
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.inbox-date {
    margin-left: auto;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
}

.inbox-card-body {
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.inbox-card-actions {
    display: flex;
    gap: 0.5rem;
}

.inbox-reply-form {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.inbox-reply-form textarea {
    flex: 1;
    min-height: 60px;
    resize: vertical;
}

.inbox-history {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.history-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0b0);
}

.history-entry em {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ============================================
   ADMIN PANEL
============================================ */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.admin-tab {
    padding: 0.6rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 500;
    transition: all 0.2s;
}

.admin-tab.is-active {
    background: var(--accent-cyan, #00d4ff);
    color: #000;
    font-weight: 600;
}

.admin-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
    color: var(--text-secondary, #a0a0b0);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    color: var(--text-primary, #fff);
}

.admin-table code {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-cyan, #00d4ff);
}

.role-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.role-user {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan, #00d4ff);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-surface, #0a0a12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display, 'Outfit', sans-serif);
    color: var(--text-primary, #fff);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.perm-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.perm-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============================================
   ALERTS
============================================ */
.alert-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-filters select {
    max-width: 200px;
}

.alert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.alert-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.alert-type-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.alert-status-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-approved { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.status-denied { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.alert-date {
    margin-left: auto;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
}

.alert-message {
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.9rem;
}

.alert-diff {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0b0);
    overflow-x: auto;
    margin: 0.75rem 0;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Alert badge in navbar */
.alert-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.3rem;
    vertical-align: super;
}

/* ============================================
   CREATOR OUTREACH
============================================ */
.outreach-stats {
    margin-bottom: 1.5rem;
}

.outreach-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan, #00d4ff), #7c3aed);
    border-radius: 4px;
    transition: width 0.3s;
}

.outreach-controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.outreach-upload {
    flex: 1;
    min-width: 250px;
}

.outreach-upload h3 {
    margin: 0 0 0.5rem;
}

.batch-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.batch-header label {
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.creator-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.creator-name {
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.creator-platform {
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.8rem;
    margin-left: auto;
}

/* ============================================
   VIDEO GEN (Stub)
============================================ */
.video-gen-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.video-gen-upload {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* ============================================
   CHANGE PASSWORD
============================================ */
.password-change-form {
    max-width: 400px;
    margin: 0 auto;
}

.password-requirements {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.req {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0b0);
    transition: color 0.2s;
}

.req-ok {
    color: #34d399 !important;
}

.req-fail {
    color: #ef4444 !important;
}

/* ============================================
   LEGAL PAGES
============================================ */
.legal-page {
    padding-top: 140px;
}

.legal-content h2 {
    margin: 2rem 0 0.75rem;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.2rem;
    color: var(--text-primary, #fff);
}

.legal-content p {
    color: var(--text-secondary, #a0a0b0);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ============================================
   CONTACT FORM SUCCESS
============================================ */
.contact-success {
    text-align: center;
    padding: 3rem 2rem;
}

.contact-success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan, #00d4ff), #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

/* ============================================
   BUTTON SIZES
============================================ */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ============================================
   ADMIN PANEL â€” additions for restored CRUD
============================================ */
.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 0.75rem;
    flex-wrap: wrap;
}

.admin-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-perms-cell {
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    max-width: 280px;
    word-break: break-word;
}

.admin-status {
    margin: 0.5rem 0 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
.admin-status-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.admin-status-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.admin-status-info {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan, #00d4ff);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.admin-error {
    color: #ef4444;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.admin-form > label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-top: 0.25rem;
}

.admin-permissions-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-perm-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.admin-perm-label:hover {
    background: rgba(255, 255, 255, 0.04);
}
.admin-perm-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan, #00d4ff);
    cursor: pointer;
}

.admin-modal-inner {
    padding: 1rem 1.25rem;
    max-width: 560px;
    width: 100%;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-card, #0f1115);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-width: 600px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ALERTS â€” additions
============================================ */
.alerts-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    align-items: center;
}
.alerts-filter-select {
    max-width: 220px;
    padding: 0.5rem 0.75rem;
}

.alert-detail {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-diff-table {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    border-collapse: collapse;
}
.alert-diff-table th,
.alert-diff-table td {
    padding: 0.35rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.alert-diff-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.alert-resolution {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.alerts-type-badge {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-cyan, #00d4ff);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.alert-data-brief {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    overflow-x: auto;
    max-height: 160px;
}

/* ============================================
   NAV BELL BADGE
============================================ */
.nav-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem;
}
.nav-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg, #030305);
}

/* Generic tag colors used by alerts/admin badges */
.tag-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.tag-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.tag-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================
   RESPONSIVE OVERRIDES
============================================ */
@media (max-width: 768px) {
    .scheduling-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .scheduling-actions {
        flex-wrap: wrap;
    }

    .admin-tabs {
        width: 100%;
    }

    .admin-tab {
        flex: 1;
        text-align: center;
    }

    .alert-filters {
        flex-direction: column;
    }

    .alert-filters select {
        max-width: 100%;
    }

    .outreach-controls {
        flex-direction: column;
    }

    .inbox-card-header {
        flex-wrap: wrap;
    }

    .admin-table {
        font-size: 0.75rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* ============================================
   CSS RESET & BASE
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
}

/* ============================================
   ACCESSIBILITY
============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--accent-cyan);
    color: #000;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   LAYOUT & UTILITIES
============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Spacing Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-12vh { padding-top: 12vh; }
.pt-15vh { padding-top: 15vh; }
.min-h-100vh { min-height: 100vh; }
.min-h-85vh { min-height: 85vh; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-4 { gap: 1rem; }

/* ============================================
   TYPOGRAPHY SYSTEM
============================================ */
.text-hero {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.text-h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.text-h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
}

.text-secondary {
    color: var(--text-secondary);
}

/* ============================================
   ANIMATION SYSTEM (Reveal)
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ============================================
   MAIN CONTENT
============================================ */
#page-content {
    opacity: 1;
}

/* ============================================
   COMPONENTS - NAVBAR
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.is-scrolled {
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 42px;
    width: 65px;
    flex-shrink: 0;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: brightness(1.1);
    transition: transform var(--transition-fast);
    border-radius: 30%;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}

.nav-brand-tagline {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-cta:hover {
    background: #fff;
    color: #000;
}

/* Mobile Menu Overlay — hidden by default, shown on mobile via responsive.css */
.nav-mobile-overlay {
    display: none;
}

/* Mobile Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    background: none;
    border: none;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    z-index: 201;
    transition: all var(--transition-fast);
}

.nav-close:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-close:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ============================================
   COMPONENTS - BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    background: var(--accent-cyan);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-save {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-save:hover {
    background: #00e8ff;
    transform: translateY(-2px);
}

.btn-copy {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: rgba(249, 115, 22, 0.3);
}

.btn-paste {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-paste:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* ============================================
   COMPONENTS - HERO CTA
============================================ */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 232, 0.15),
        0 0 40px rgba(0, 212, 232, 0.05);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}

.hero-cta .cta-arrow {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.6;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ============================================
   COMPONENTS - GLOSSY 3D CARDS
============================================ */
.glossy-wrap {
    perspective: 1000px;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glossy-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    background-color: var(--bg-elevated);
    box-shadow: 0 -10px 100px 10px rgba(0, 212, 232, 0.05), 0 0 10px 0 rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    --hover-intensity: 0;
    --rot-x: 0deg;
    --rot-y: 0deg;
    transform: translateY(calc(-5px * var(--hover-intensity))) rotateX(var(--rot-x)) rotateY(var(--rot-y));
    will-change: transform;
}

.glossy-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glossy-glass {
    z-index: 35;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(2px);
    opacity: calc(0.5 + 0.2 * var(--hover-intensity));
    transform: rotateX(calc(var(--rot-x) * -0.2)) rotateY(calc(var(--rot-y) * -0.2)) translateZ(1px);
}

.glossy-bg {
    z-index: 0;
    background: linear-gradient(180deg, #0b1222 0%, var(--bg-surface) 70%);
    transform: translateZ(-1px);
}

.glossy-noise {
    z-index: 10;
    opacity: 0.3;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    transform: translateZ(-0.5px);
}

.glossy-smudge {
    z-index: 11;
    opacity: 0.1;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='smudge'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23smudge)'/%3E%3C/svg%3E");
    backdrop-filter: blur(1px);
    transform: translateZ(-0.25px);
}

.glossy-glow-1 {
    bottom: 0;
    left: 0;
    right: 0;
    height: 66%;
    top: auto;
    z-index: 20;
    background: radial-gradient(ellipse at bottom right, rgba(0, 212, 232, 0.4) -10%, transparent 70%),
        radial-gradient(ellipse at bottom left, rgba(74, 144, 217, 0.4) -10%, transparent 70%);
    filter: blur(40px);
    opacity: calc(0.8 + 0.1 * var(--hover-intensity));
    transform: translateZ(0);
}

.glossy-glow-2 {
    bottom: 0;
    left: 0;
    right: 0;
    height: 66%;
    top: auto;
    z-index: 21;
    background: radial-gradient(circle at bottom center, rgba(0, 212, 232, 0.5) -20%, transparent 60%);
    filter: blur(45px);
    opacity: calc(0.75 + 0.1 * var(--hover-intensity));
    transform: translateY(calc(10% + var(--rot-x) * 0.3)) translateZ(0);
}

.glossy-border {
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    top: auto;
    z-index: 25;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.05) 100%);
    opacity: calc(0.9 + 0.1 * var(--hover-intensity));
    box-shadow: 0 0 calc(15px + 5px * var(--hover-intensity)) calc(3px + 1px * var(--hover-intensity)) rgba(0, 212, 232, 0.8);
    transform: translateZ(0.5px);
}

.glossy-content {
    position: relative;
    z-index: 40;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transform: translateZ(2px);
    pointer-events: none;
}

.glossy-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: linear-gradient(225deg, #14213d 0%, #0b1222 100%);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.25), inset 1px 1px 3px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    transform: translateZ(calc(5px + 5px * var(--hover-intensity))) rotateX(calc(var(--rot-x) * -0.5)) rotateY(calc(var(--rot-y) * -0.5));
    transition: transform 0.1s ease-out;
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
}

.glossy-icon-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 66%;
    height: 66%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 80%);
    filter: blur(10px);
    opacity: 0.4;
}

.glossy-text-wrap {
    margin-top: auto;
    transform: translateZ(calc(2px + 3px * var(--hover-intensity))) rotateX(calc(var(--rot-x) * -0.3)) rotateY(calc(var(--rot-y) * -0.3));
    transition: transform 0.1s ease-out;
}

.glossy-cat {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.glossy-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 calc(2px * var(--hover-intensity)) calc(4px * var(--hover-intensity)) rgba(0, 0, 0, 0.5);
}

.glossy-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 0 calc(1px * var(--hover-intensity)) calc(2px * var(--hover-intensity)) rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   COMPONENTS - BACK LINK
============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--accent-cyan);
}

/* ============================================
   RESPONSIVE STYLES - Tablet & Desktop
============================================ */

/* Widen narrative text sections on larger screens */
@media (min-width: 1024px) {
    .narrative-text {
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    }
}

/* Grid responsive */
@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        display: grid;
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .portal-form-title {
        font-size: 2.25rem;
    }

    .portal-form-header {
        gap: 1.5rem;
    }

    .grid-stagger .card-motion:nth-child(even) {
        transform: translateY(40px);
    }

    .grid-stagger .card-motion:nth-child(even):hover {
        transform: translateY(30px);
    }
}

@media (min-width: 900px) {
    .company-showcase {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        padding: 4rem;
    }

    .company-showcase:nth-child(even) {
        flex-direction: row-reverse;
    }

    .company-showcase .showcase-content {
        flex: 1.2;
    }

    .company-showcase .showcase-visual {
        flex: 0.8;
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .portal-form-side {
        width: 50%;
    }

    .portal-split-card {
        max-width: 70%;
    }

    .portal-hero-content {
        padding: 3.5rem;
    }

    .portal-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   RESPONSIVE STYLES - Mobile (768px and below)
============================================ */
@media (max-width: 1023px) {
    .portal-split-card {
        max-width: 90%;
    }

    .portal-hero-side {
        display: none;
    }

    .portal-form-side {
        border-right: none;
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav links on mobile */
    .nav-links-desktop {
        display: none !important;
    }

    /* Mobile Navigation Overlay — direct child of body for correct z-index */
    .nav-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #030305;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        z-index: 9999;
        /* Animate open/close */
        opacity: 0;
        visibility: hidden;
        display: flex;
        transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Stagger animate each link on open */
    .nav-mobile-overlay .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease, color var(--transition-fast);
    }

    .nav-mobile-overlay.is-open .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-mobile-overlay.is-open .nav-link:nth-child(2) { transition-delay: 0.05s; }
    .nav-mobile-overlay.is-open .nav-link:nth-child(3) { transition-delay: 0.1s; }
    .nav-mobile-overlay.is-open .nav-link:nth-child(4) { transition-delay: 0.15s; }
    .nav-mobile-overlay.is-open .nav-link:nth-child(5) { transition-delay: 0.2s; }

    .nav-link-cta {
        padding: 1rem 2rem;
    }

    .nav-hamburger {
        display: flex;
    }

    /* JS adds .is-hidden when menu is open */
    .nav-hamburger.is-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .nav-mobile-overlay.is-open .nav-close {
        display: block;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 0;
    }

    .navbar.is-scrolled {
        padding: 0.75rem 0;
    }

    .nav-logo {
        width: 40px !important;
        height: 40px !important;
    }

    /* Hide tagline on mobile */
    .nav-brand-tagline {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-logo-large {
        height: 56px;
        margin-bottom: 2rem;
    }

    .text-hero {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0;
    }

    .hero-actions .hero-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-cta {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    /* ========================================
       TITLE VISIBILITY FIXES - Clear navbar
    ======================================== */
    /* Projects section - ensure title clears navbar */
    .projects-section {
        padding-top: 80px;
    }

    /* Portal containers - use fixed px instead of vh */
    .portal-dashboard-container {
        padding-top: 80px;
    }

    .portal-scheduling-container {
        padding-top: 80px;
    }

    /* Portal login page layout */
    .portal-layout-full {
        padding-top: 80px;
    }

    /* Portal page title container */
    .portal-page-title {
        padding-top: 20px;
    }

    /* Narrative */
    .narrative {
        padding: 4rem 0;
    }

    .narrative-text {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        line-height: 1.6;
        text-align: center;
    }

    .narrative-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Cards */
    .grid-4 {
        gap: 1.5rem;
    }

    .glossy-wrap {
        height: auto;
        min-height: 380px;
    }

    .glossy-content {
        padding: 1.75rem;
    }

    .glossy-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
    }

    .glossy-title {
        font-size: 1.25rem;
    }

    .glossy-desc {
        font-size: 0.9rem;
    }

    /* Company Showcase */
    .company-showcase {
        padding: 1.5rem;
        border-radius: 24px;
        gap: 2rem;
        text-align: center;
    }

    .showcase-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .showcase-header {
        flex-direction: column;
        align-items: center;
    }

    .showcase-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .showcase-desc {
        font-size: 1rem;
        text-align: center;
    }

    /*
    .showcase-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin: 1rem auto 1.25rem;
    }
    */
    .showcase-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin: 1rem auto 1.25rem;
        transform: none !important;
    }

    .showcase-visual {
        aspect-ratio: 16/9;
        min-height: 180px;
    }

    .showcase-logo {
        width: 50%;
    }

    /* Metrics */
    .metrics-wrap {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .metric-num {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .metric-item {
        text-align: center;
    }

    /* Portal */
    #portal-container {
        height: auto !important;
        min-height: 500px;
    }

    #portal-container .portal-hero-side {
        display: none !important;
    }

    #portal-container .portal-form-side {
        width: 100% !important;
        border-right: none !important;
    }

    #portal-container {
        margin: 1rem;
        border-radius: 24px !important;
    }

    #portal-container .portal-form-side {
        padding: 2rem 1.5rem !important;
    }

    #portal-container .portal-form-title {
        font-size: 1.75rem !important;
    }

    /* Portal Dashboard */
    .portal-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portal-option-card {
        padding: 2rem 1.5rem;
    }

    .portal-option-card .card-icon {
        width: 60px;
        height: 60px;
    }

    .portal-option-card h3 {
        font-size: 1.25rem;
    }

    /* Scheduling */
    .scheduling-container {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .scheduling-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .week-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .scheduling-grid {
        font-size: 0.8rem;
    }

    .scheduling-grid th,
    .scheduling-grid td {
        padding: 0.5rem;
    }

    .schedule-select {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .scheduling-actions {
        flex-direction: column;
    }

    .scheduling-actions button {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 4rem 0 2rem 0;
        margin-top: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-heading {
        padding-top: 50px;
        font-size: 1rem;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* ========================================
       SECTION CENTERING
    ======================================== */
    /* Projects section centering */
    .projects-section {
        text-align: center;
    }

    .projects-section .text-h2 {
        text-align: center;
    }

    .showcase-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* What We Build section centering */
    .build-section {
        text-align: center;
    }

    .build-description {
        text-align: center;
    }

    /* Contact section centering */
    .contact-section {
        text-align: center;
    }

    .contact-form {
        margin: 0 auto;
    }

    /* Philosophy section centering */
    .philosophy-toggle-wrap {
        display: flex;
        justify-content: center;
    }

    .philosophy-display {
        text-align: center;
    }

    /* General touch targets */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .btn-secondary {
        padding: 0.75rem 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .text-h2 {
        font-size: clamp(1.75rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }

    .text-h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .text-lead {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }
}


/* Content — on top of everything */
.philosophy-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
    min-height: 150vh;
    width: 100%;
}

/* ============================================
   PHILOSOPHY SECTION - Responsive Styles
============================================ */
/* Mobile Navigation - Show on mobile, hide desktop arrows */
@media (max-width: 768px) {
    .philosophy-nav {
        display: none;
    }

    .philosophy-nav-mobile {
        display: flex;
    }

    .philosophy-content {
        padding: 4rem 1.25rem;
        min-height: 100vh;
    }

    .philosophy-toggle-wrap {
        margin-bottom: 2rem;
    }

    .philosophy-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .philosophy-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .philosophy-description {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .philosophy-display {
        min-height: 260px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .philosophy-toggle-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .philosophy-label {
        font-size: 0.75rem;
    }

    .philosophy-title {
        font-size: clamp(1.25rem, 7vw, 2rem);
        margin-bottom: 1rem;
    }

    .philosophy-description {
        font-size: 0.9rem;
    }

    .philosophy-nav-mobile {
        margin-top: 2rem;
        gap: 1rem;
    }

    .philosophy-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .philosophy-card {
        height: 470px;
    }
}

/* ============================================
   RESPONSIVE STYLES - Extra Small Mobile (480px and below)
============================================ */
@media (max-width: 480px) {
    /* Title visibility fixes - slightly less padding on smaller screens */
    .projects-section,
    .philosophy-content,
    .portal-dashboard-container,
    .portal-scheduling-container,
    .portal-layout-full {
        padding-top: 70px;
    }

    .nav-brand-name {
        font-size: 1.1rem !important;
    }

    .hero {
        min-height: 85vh;
    }

    .text-hero {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.15;
    }

    .narrative-text {
        font-size: 1rem;
    }

    .glossy-wrap {
        min-height: 340px;
    }

    .glossy-content {
        padding: 1.5rem;
    }

    .glossy-icon-wrap {
        width: 44px;
        height: 44px;
    }

    .company-showcase {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .showcase-cat {
        font-size: 0.8rem;
    }

    .showcase-title {
        font-size: 1.35rem;
    }

    .showcase-desc {
        font-size: 0.95rem;
    }

    .metrics-wrap {
        gap: 1.5rem;
    }

    .metric-num {
        font-size: 2.5rem;
    }

    #portal-container {
        margin: 0.5rem;
        border-radius: 20px !important;
    }

    #portal-container .portal-form-side {
        padding: 1.5rem 1rem !important;
    }

    .scheduling-grid th,
    .scheduling-grid td {
        padding: 0.35rem;
    }

    .scheduling-grid .time-cell {
        width: 70px;
        font-size: 0.75rem;
    }

    .schedule-select {
        padding: 0.3rem;
        font-size: 0.7rem;
    }

    .capacity-indicator {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-actions .hero-cta {
        max-width: 100%;
    }
}



/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-logo-large {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-sub,
    .hero-actions {
        animation: none;
        opacity: 1;
    }

    /* Philosophy section - disable transitions */
    .philosophy-video {
        transition: none;
    }

    .philosophy-toggle-slider {
        transition: none;
    }

    .philosophy-display.is-animating-out .philosophy-label,
    .philosophy-display.is-animating-out .philosophy-title,
    .philosophy-display.is-animating-out .philosophy-description,
    .philosophy-display.is-animating-in .philosophy-label,
    .philosophy-display.is-animating-in .philosophy-title,
    .philosophy-display.is-animating-in .philosophy-description {
        transition: none;
    }

    .philosophy-nav,
    .philosophy-nav-btn,
    .philosophy-toggle-btn {
        transition: none;
    }
}

/* ============================================
   SECTIONS - HERO
============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    padding-top: clamp(60px, 8vh, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    will-change: transform, opacity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(3, 3, 5, 0.1) 0%,
            rgba(3, 3, 5, 0.7) 60%,
            var(--bg-base) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    will-change: transform, opacity;
}

.hero-logo-large {
    height: 72px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.1);
    margin-bottom: 3rem;
    animation: heroLogoIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.hero-headline-wrap {
    overflow: hidden;
}

.hero-sub {
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

@keyframes heroLogoIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   SECTIONS - NARRATIVE (Purpose)
============================================ */
.narrative {
    position: relative;
    z-index: 5;
    background: var(--bg-base);
}

.narrative-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    color: var(--text-muted);
}

.narrative-text strong,
.narrative-text .highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   SECTIONS - PHILOSOPHY
   Video is the absolute background of the wrapper.
   Starts at opacity:0. JS adds .video-visible via
   IntersectionObserver when section scrolls into view,
   which fades the active video in. Content sits on top.
============================================ */

.philosophy-wrapper {
    position: relative;
    overflow: hidden;
}

/* Both videos sit as absolute background */
.philosophy-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
    z-index: 0;
}

/* Active video fades in only when section is in viewport */
.philosophy-wrapper.video-visible .philosophy-video.is-active {
    opacity: 0.55;
}

/* Overlay — above video, below content */
.philosophy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3,3,5,0.55) 0%, rgba(3,3,5,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}



/* ============================================
   PHILOSOPHY TEXT GROUP
============================================ */

.philosophy-text-group {
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}



/* Smooth transition to next section */
.philosophy-wrapper+section,
.philosophy-wrapper+.section,
.what-we-build-section {
    position: relative;
    z-index: 5;
    background: var(--bg-base);
}

/* Toggle Wrapper */
.philosophy-toggle-wrap {
    margin-bottom: 3.5rem;
}

.philosophy-toggle {
    display: inline-flex;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.25rem;
}

.philosophy-toggle-btn {
    position: relative;
    z-index: 2;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.philosophy-toggle-btn.is-active {
    color: #000;
}

.philosophy-toggle-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    height: calc(100% - 0.5rem);
    background: #fff;
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.philosophy-toggle[data-mode="philosophy"] .philosophy-toggle-slider {
    transform: translateX(100%);
}

/* Content Display */
.philosophy-display {
    max-width: 720px;
    margin: 0 auto;
}

.philosophy-label {
    color: var(--accent-cyan);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.philosophy-description {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 720px;
}

/* Desktop Navigation Arrows */
.philosophy-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
}

.philosophy-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.philosophy-nav-prev {
    left: 5vw;
}

.philosophy-nav-next {
    right: 5vw;
}

/* Mobile Navigation */
.philosophy-nav-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

.philosophy-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.philosophy-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.philosophy-pagination {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: center;
}

/* Content Animation States */
.philosophy-display.is-animating-out .philosophy-label,
.philosophy-display.is-animating-out .philosophy-title,
.philosophy-display.is-animating-out .philosophy-description {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.philosophy-display.is-animating-in .philosophy-label,
.philosophy-display.is-animating-in .philosophy-title,
.philosophy-display.is-animating-in .philosophy-description {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.philosophy-display.is-animating-in .philosophy-title {
    transition-delay: 0.1s;
}

.philosophy-display.is-animating-in .philosophy-description {
    transition-delay: 0.2s;
}

/* ============================================
   SECTIONS - METRICS
============================================ */
.metrics-wrap {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.metric {
    text-align: center;
}

.metric-num {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   SECTIONS - COMPANIES SHOWCASE
============================================ */
.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.company-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.company-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 212, 232, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.company-showcase:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.company-showcase:hover::after {
    opacity: 1;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.showcase-cat {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.showcase-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.showcase-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.showcase-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.showcase-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 232, 0.15);
}

.showcase-btn-arrow {
    margin-left: 8px;
    font-size: 1.1em;
}

.showcase-visual {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-smooth);
    z-index: 2;
}

.company-showcase:hover .showcase-visual {
    border-color: rgba(255, 255, 255, 0.08);
}

.showcase-logo {
    width: 75%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.company-showcase:hover .showcase-logo {
    transform: scale(1.05);
}

.showcase-icon {
    font-size: 6rem;
    font-family: var(--font-display);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #52525b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    transition: opacity var(--transition-smooth);
}

.showcase-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    z-index: 1;
}

/* In-development badge */
.in-development-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: customPulse 2s ease-in-out infinite;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

@keyframes customPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* ============================================
   SECTIONS - CONTACT
============================================ */
.contact-layout {
    min-height: 85vh;
    padding-top: 20vh;
    display: flex;
    justify-content: center;
}

.floating-group {
    position: relative;
    margin-bottom: 2rem;
}

.floating-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: #fff;
    font-size: 1.1rem;
    transition: border-color var(--transition-fast);
}

.floating-input:focus {
    outline: none;
    border-color: #fff;
}

.floating-label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.floating-input::placeholder {
    color: transparent;
}

/* ============================================
   SECTIONS - PORTAL LOGIN
============================================ */
.portal-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    padding: 2rem;
}

.portal-layout-full {
    min-height: 100vh;
    width: 100%;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0;
}

.portal-split-card {
    width: 100%;
    max-width: 70%;
    display: flex;
    justify-content: space-between;
    height: 600px;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.portal-form-side {
    width: 100%;
    padding: 1rem 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--color-border);
}

.portal-hero-side {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #021a22;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 232, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(13, 27, 42, 0.9) 0%, transparent 70%),
        linear-gradient(135deg, #021a22 0%, #060b13 100%);
}

.portal-orb {
    position: absolute;
    pointer-events: none;
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, rgba(103, 232, 249, 0.1), rgba(147, 197, 253, 0.1), rgba(196, 181, 253, 0.1));
    border-radius: 50%;
    filter: blur(80px);
    transition: opacity 0.3s;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.portal-form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 2rem;
}

.portal-form {
    text-align: center;
    display: grid;
    gap: 0.5rem;
}

.portal-form-header {
    display: grid;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.portal-form-title {
    font-size: 1.875rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.portal-form-fields {
    display: grid;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}

.portal-input-wrapper {
    position: relative;
    width: 100%;
}

.portal-input {
    position: relative;
    z-index: 10;
    border: 1px solid var(--color-border);
    height: 3rem;
    width: 100%;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
    transition: all 0.2s ease-in-out;
    color: white;
}

.portal-input::placeholder {
    font-weight: 500;
    color: var(--text-muted);
}

.portal-input:focus {
    background: #000;
}

.portal-gradient-line {
    position: absolute;
    pointer-events: none;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 20;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

.portal-gradient-top {
    top: 0;
    border-radius: 0.375rem 0.375rem 0 0;
}

.portal-gradient-bottom {
    bottom: 0;
    border-radius: 0 0 0.375rem 0.375rem;
}

.portal-app-input:hover .portal-gradient-line,
.portal-app-input:focus-within .portal-gradient-line {
    opacity: 1;
}

.portal-error {
    font-size: 0.75rem;
    color: #ef4444;
    text-align: center;
    margin: 0;
    height: 1rem;
}

.portal-help-link {
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    margin-top: 0.5rem;
}

.portal-help-link:hover {
    color: white;
}

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.portal-submit-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0.375rem;
    background: white;
    width: 100%;
    height: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: black;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    outline: none;
    border: none;
}

.portal-submit-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.portal-submit-btn .btn-shine {
    position: absolute;
    inset: 0;
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    transform: skew(-13deg) translateX(-100%);
}

.portal-submit-btn:hover .btn-shine {
    transition: transform 1s;
    transform: skew(-13deg) translateX(100%);
}

.portal-submit-btn .btn-shine-inner {
    position: relative;
    height: 100%;
    width: 2rem;
    background: rgba(0, 0, 0, 0.1);
}

/* Portal hero side content */
.portal-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 20s linear;
    opacity: 0.7;
}

.portal-hero-image:hover {
    transform: scale(1.1);
}

.portal-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(0, 212, 232, 0.2) 100%);
}

.portal-hero-overlay-blue {
    position: absolute;
    inset: 0;
    background: rgba(29, 78, 216, 0.3);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 10;
}

.portal-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 45%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 2.5rem;
    pointer-events: none;
    color: white;
    overflow: hidden;
}

.portal-badge-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.portal-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.portal-badge-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.portal-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.portal-hero-main {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.portal-hero-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, var(--accent-cyan), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.portal-hero-icon-inner {
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}

.portal-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
}

.portal-hero-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 18rem;
    line-height: 1.4;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Portal Dashboard */
.dashboard-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   SECTIONS - PORTAL DASHBOARD CARDS
============================================ */
.portal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.portal-option-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.portal-option-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 232, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

.portal-option-card .card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 232, 0.1), rgba(74, 144, 217, 0.1));
    border: 1px solid rgba(0, 212, 232, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.portal-option-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.portal-option-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.portal-option-card .coming-soon {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SECTIONS - SCHEDULING GRID
============================================ */
.scheduling-container {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.scheduling-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.scheduling-title h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.scheduling-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.week-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.week-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.week-range {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 200px;
    text-align: center;
}

.scheduling-grid {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.scheduling-grid th,
.scheduling-grid td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    text-align: center;
}

.scheduling-grid th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.scheduling-grid td {
    background: rgba(0, 0, 0, 0.2);
    vertical-align: top;
}

.scheduling-grid .time-cell {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    width: 100px;
}

.schedule-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.schedule-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.schedule-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.schedule-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.schedule-select.status-off {
    background: rgba(82, 82, 91, 0.3);
}

.schedule-select.status-remote {
    background: rgba(0, 212, 232, 0.15);
    border-color: rgba(0, 212, 232, 0.3);
}

.schedule-select.status-onprem {
    background: rgba(74, 144, 217, 0.15);
    border-color: rgba(74, 144, 217, 0.3);
}

.capacity-indicator {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.capacity-ok {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.capacity-full {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.scheduling-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS - FOOTER
============================================ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0 3rem 0;
    margin-top: 6rem;
    background: linear-gradient(to top, rgba(3, 3, 5, 0.9) 0%, rgba(10, 10, 15, 0.4) 100%);
    position: relative;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.footer-brand-logo img {
    height: 42px;
    width: 65px;
    flex-shrink: 0;
    border-radius: 30%;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: brightness(1.1);
    display: block;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}

.footer-brand-tagline {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 0.15rem;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill var(--transition-fast);
}

.social-link.github:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.social-link.linkedin:hover {
    background: #0A66C2;
    color: #ffffff;
    border-color: #0A66C2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 102, 194, 0.3);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.external-arrow {
    font-size: 0.8em;
    margin-left: 6px;
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-link:hover .external-arrow {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.legal-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: var(--text-secondary);
}

/* ============================================
   SECTIONS - ANIMATED THINKBUBBLE CLOUD
============================================ */
.character-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 340px;
    z-index: 5;
}

/* --- Particles Array --- */
.cloud-particles {
    position: absolute;
    inset: -50px;
    pointer-events: none;
    z-index: 1;
}

.cloud-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 20px 4px var(--accent-cyan);
    opacity: 0;
    animation: sparkleFade 4s infinite ease-in-out;
}

.cloud-sparkle.s-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.cloud-sparkle.s-2 {
    top: 80%;
    left: 80%;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
}

.cloud-sparkle.s-3 {
    top: 20%;
    left: 85%;
    animation-delay: 2s;
}

.cloud-sparkle.s-4 {
    top: 75%;
    left: 15%;
    animation-delay: 0.5s;
    width: 5px;
    height: 5px;
}

.cloud-sparkle.s-5 {
    top: 40%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes sparkleFade {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* --- Cloud Wrapper --- */
.cloud-wrapper {
    position: absolute;
    inset: 0;
    animation: cloudDrift 6s infinite ease-in-out;
    z-index: 2;
}

@keyframes cloudDrift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- Main Cloud & Bubbles --- */
.main-cloud {
    position: absolute;
    width: 280px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 218, 245, 0.6) 25%, rgba(180, 220, 255, 0.4) 50%, rgba(230, 200, 255, 0.3) 80%);
    box-shadow:
        inset -5px -5px 15px rgba(255, 140, 240, 0.2),
        inset -10px -10px 25px rgba(100, 190, 255, 0.25),
        inset 6px 10px 18px rgba(255, 255, 255, 0.95),
        inset -3px 3px 12px rgba(255, 255, 255, 0.7),
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 50px rgba(200, 120, 255, 0.25);
    /* Subtle internal nebula glow */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: bubbleOscillate 4s infinite ease-in-out alternate;
}

@keyframes bubbleOscillate {
    from {
        transform: scale(0.98) translate(0, 0);
    }

    to {
        transform: scale(1.02) translate(1px, -2px);
    }
}

/* Individual Bubble Placements with varied iridescent tints */
.bubble.b-main {
    width: 190px;
    height: 180px;
    top: 0;
    left: 45px;
    z-index: 5;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 1), rgba(255, 210, 250, 0.7) 40%, rgba(190, 230, 255, 0.4) 70%, rgba(220, 190, 255, 0.3));
}

.bubble.b-left {
    width: 130px;
    height: 130px;
    top: 40px;
    left: -15px;
    z-index: 4;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 190, 210, 0.5) 50%, rgba(180, 200, 255, 0.2));
}

.bubble.b-right {
    width: 140px;
    height: 140px;
    top: 30px;
    right: -25px;
    z-index: 4;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(180, 240, 255, 0.5) 50%, rgba(230, 200, 255, 0.2));
}

.bubble.b-top {
    width: 100px;
    height: 100px;
    top: -25px;
    left: 65px;
    z-index: 3;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 230, 255, 0.5) 60%, transparent);
}

.bubble.b-top-right {
    width: 85px;
    height: 85px;
    top: -5px;
    left: 165px;
    z-index: 3;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 240, 190, 0.4) 60%, transparent);
}

.bubble.b-bottom-left {
    width: 75px;
    height: 75px;
    bottom: -15px;
    left: 25px;
    z-index: 6;
}

.bubble.b-bottom-right {
    width: 90px;
    height: 90px;
    bottom: -20px;
    right: 15px;
    z-index: 6;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(210, 210, 255, 0.5) 60%, transparent);
}

/* Secondary Glossy Overlays for Depth */
.bubble-highlight {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    z-index: 7;
    pointer-events: none;
}

.bubble-highlight.h-1 {
    width: 40px;
    height: 40px;
    top: 15px;
    left: 80px;
}

.bubble-highlight.h-2 {
    width: 25px;
    height: 25px;
    top: 45px;
    left: 15px;
}

/* --- Trailing Bubbles --- */
.tail-bubbles {
    position: absolute;
    bottom: -5px;
    right: -10px;
    z-index: 3;
}

.tail-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(230, 240, 255, 0.4) 70%);
    box-shadow: inset 3px 3px 8px rgba(255, 255, 255, 0.9), inset -2px -2px 6px rgba(200, 150, 255, 0.2), 0 5px 12px rgba(0, 0, 0, 0.1), 0 0 20px rgba(180, 220, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: tailDrift 3s infinite ease-in-out alternate;
    backdrop-filter: blur(4px);
}

.tail-bubble.t-1 {
    width: 45px;
    height: 45px;
    top: 0;
    left: 0;
    animation-delay: 0.2s;
}

.tail-bubble.t-2 {
    width: 28px;
    height: 28px;
    top: 50px;
    left: 20px;
    animation-delay: 0.5s;
}

.tail-bubble.t-3 {
    width: 16px;
    height: 16px;
    top: 85px;
    left: 45px;
    animation-delay: 0.8s;
}

.tail-bubble.t-4 {
    width: 8px;
    height: 8px;
    top: 105px;
    left: 65px;
    animation-delay: 1.1s;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes tailDrift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(10px, 8px);
    }
}

/* --- Face --- */
.cloud-face {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 70px;
    z-index: 10;
}

.cloud-eyes {
    display: flex;
    justify-content: space-between;
    width: 70px;
    margin: 0 auto;
}

.cloud-eye {
    width: 22px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 50%;
    position: relative;
    /* Removed overflow: hidden so eyelashes can be rendered using ::before/after */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tiny Eyelashes */
.cloud-eye::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -4px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #1a1a1a;
    border-left: 2px solid #1a1a1a;
    border-radius: 50%;
    transform: rotate(45deg);
}

.cloud-eye::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -4px;
    width: 5px;
    height: 5px;
    border-top: 2px solid #1a1a1a;
    border-right: 2px solid #1a1a1a;
    border-radius: 50%;
    transform: rotate(20deg);
}

/* Main Pupil / Catchlight */
.cloud-pupil {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 5px;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Second Tiny Catchlight for soulful look */
.cloud-pupil::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    top: 8px;
    left: 6px;
    opacity: 0.8;
}

.cloud-cheeks {
    position: absolute;
    top: 18px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.cloud-cheek {
    width: 22px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 130, 150, 0.7) 0%, rgba(255, 130, 150, 0) 70%);
    border-radius: 50%;
    filter: blur(1.5px);
}

.cloud-cheek.left {
    transform: translateX(-8px);
}

.cloud-cheek.right {
    transform: translateX(8px);
}

.cloud-smile {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border-bottom: 3.5px solid #1a1a1a;
    border-radius: 0 0 20px 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reactions --- */
.cloud-stage.is-success .main-cloud {
    transform: translate(-50%, -60%);
}

.cloud-stage.is-success .cloud-smile {
    width: 24px;
    height: 14px;
    border-bottom-width: 4px;
    bottom: 6px;
}

.cloud-stage.is-success .cloud-eye {
    border-radius: 50% 50% 20% 20%;
}

.cloud-stage.is-error .cloud-smile {
    transform: translateX(-50%) scaleY(-1) translateY(-6px);
}

.cloud-stage.is-error .cloud-eye {
    height: 16px;
    margin-top: 6px;
    border-radius: 40% 40% 50% 50%;
}

/* --- Portal page title --- */
.portal-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* --- Password toggle button --- */
.portal-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.portal-pass-toggle:hover {
    color: var(--text-primary);
}

/* ============================================
   PAGE-SPECIFIC UTILITY CLASSES
============================================ */

/* What We Build section description */
.what-we-build-desc {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
}

/* Projects section background */
.projects-section {
    background: var(--bg-surface);
}

/* Badge wrapper centered */
.badge-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Portal scheduling container */
.portal-scheduling-container {
    padding-top: 12vh;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Portal dashboard container */
.portal-dashboard-container {
    padding-top: 15vh;
    min-height: 100vh;
}

/* Dashboard title sizes */
.dashboard-title-sm {
    font-size: 2rem;
    margin-bottom: 0;
}

.dashboard-title-lg {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* Dashboard intro */
.dashboard-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-intro .text-h3 {
    margin-bottom: 0.5rem;
}

/* Disabled card state */
.portal-option-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact form styles */
.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.contact-lead {
    margin-bottom: 4rem;
}

.contact-message-group {
    margin-top: 3rem;
}

.contact-textarea {
    height: 100px;
    resize: none;
}

.contact-submit {
    margin-top: 2rem;
}

/* Projects screen wrapper */
.projects-screen {
    min-height: 85vh;
}

/* Showcase header without subtitle spacing */
.showcase-header-no-subtitle {
    margin-bottom: 1.5rem;
}

/* Showcase title inline */
.showcase-title-inline {
    margin-bottom: 0;
}

/* Showcase description inline */
.showcase-desc-inline {
    margin-bottom: 0;
}

/* Showcase button compact */
.showcase-btn-compact {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Scheduling table wrapper */
.scheduling-table-wrap {
    overflow-x: auto;
}

/* ============================================
   CSS SYSTEM - Design Tokens & Variables
============================================ */
:root {
    /* Palette */
    --bg-base: #030305;
    --bg-surface: #0a0a0f;
    --bg-elevated: #11111a;
    --bg-glass: rgba(10, 10, 15, 0.6);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-cyan: #00d4e8;
    --accent-blue: #4a90d9;
    --accent-glow: rgba(0, 212, 232, 0.15);

    /* Employee Portal Specific */
    --color-bg: var(--bg-base);
    --color-surface: var(--bg-surface);
    --color-muted-surface: var(--bg-elevated);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text-secondary: var(--text-secondary);
    --color-text-primary: var(--text-primary);
    --color-bg-2: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --navbar-height: 90px;

    /* Transitions */
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
}