/* ==========================================================================
   DRAWK CONTACT & INCOMING INQUIRIES STYLESHEET
   Clean, modern, responsive form design matching the neon / toonish / arcade theme.
   ========================================================================== */

/* Shell & Container */
.contact-page-shell,
.contact-incoming-shell {
    max-width: 68rem;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1rem;
}

/* Hero & Header */
.contact-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--theme-surface-bg, rgba(20, 26, 35, 0.7));
    border: 1px solid var(--theme-accent-color, #62fb43);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--theme-accent-color, #62fb43);
    margin-bottom: 0.75rem;
    box-shadow: 0 0 12px rgba(98, 251, 67, 0.2);
}

.contact-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--theme-accent-color, #62fb43);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--theme-accent-color, #62fb43);
    animation: contactPulse 2s infinite ease-in-out;
}

@keyframes contactPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.contact-hero-title {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 2.2rem;
    color: var(--theme-text, #ffffff);
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.15;
}

.contact-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.8));
    max-width: 48rem;
    margin: 0 auto 1rem auto;
}

.contact-hero-quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.65));
}

.contact-hero-quick-links a {
    color: var(--theme-accent-color, #62fb43);
    text-decoration: none;
    font-weight: 600;
}

.contact-hero-quick-links a:hover {
    text-decoration: underline;
}

.contact-quick-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Card Wrappers */
.contact-form-card,
.contact-success-card,
.auth-shield-card,
.dash-controls-card {
    background: var(--theme-surface-bg, rgba(20, 26, 35, 0.85));
    border: 1.5px solid var(--theme-card-border, rgba(255, 255, 255, 0.15));
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Form Sections & Fieldsets */
.contact-section {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.contact-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.contact-section-legend {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 1.25rem;
    color: var(--theme-text, #ffffff);
    margin-bottom: 0.25rem;
    padding: 0;
    width: 100%;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--theme-accent-color, #62fb43);
    color: #111111;
    font-size: 0.85rem;
    font-weight: 800;
}

.contact-section-desc {
    font-size: 0.9rem;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.7));
    margin: 0 0 1.25rem 0;
}

/* Form Layout Rows */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row-1 > .form-group { flex: 1 1 100%; }
.form-row-2 > .form-group { flex: 1 1 calc(50% - 0.625rem); min-width: 240px; }
.form-row-3 > .form-group { flex: 1 1 calc(33.333% - 0.833rem); min-width: 200px; }

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

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text, #ffffff);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.required-star {
    color: #ff4757;
    margin-left: 0.15rem;
}

/* Inputs, Selects, Textareas */
.form-control {
    background: rgba(10, 14, 20, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--theme-accent-color, #62fb43);
    box-shadow: 0 0 10px rgba(98, 251, 67, 0.35);
    background: rgba(15, 20, 28, 0.9);
}

.form-control.is-invalid {
    border-color: #ff4757 !important;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.35) !important;
}

.form-field-error {
    color: #ff6b81;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.45;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2362fb43' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 10px;
    padding-right: 2rem;
}

/* Category Cards Selector */
.category-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.category-card {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.category-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: rgba(10, 14, 20, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.category-name {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.category-sub {
    font-size: 0.75rem;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.6));
    line-height: 1.25;
}

.category-card:hover .category-card-inner {
    border-color: rgba(98, 251, 67, 0.5);
    background: rgba(20, 26, 36, 0.75);
}

.category-card.active .category-card-inner,
.category-card input[type="radio"]:checked + .category-card-inner {
    border-color: var(--theme-accent-color, #62fb43);
    background: rgba(98, 251, 67, 0.1);
    box-shadow: 0 0 16px rgba(98, 251, 67, 0.25);
}

/* Platform Groups & Chips */
.platform-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-subgroup {
    background: rgba(10, 14, 20, 0.4);
    padding: 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-group-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-accent-color, #62fb43);
    margin-bottom: 0.5rem;
}

.platform-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-checkbox,
.pill-radio {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.pill-checkbox input,
.pill-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-box {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    background: rgba(20, 26, 35, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #e5e5e5;
    transition: all 0.15s ease;
    user-select: none;
}

.pill-checkbox:hover .pill-box,
.pill-radio:hover .pill-box {
    border-color: var(--theme-accent-color, #62fb43);
    color: #ffffff;
}

.pill-checkbox input:checked + .pill-box,
.pill-radio input:checked + .pill-box {
    background: var(--theme-accent-color, #62fb43);
    border-color: var(--theme-accent-color, #62fb43);
    color: #111111;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(98, 251, 67, 0.4);
}

/* Technology Tag Cloud */
.tech-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag-btn {
    background: rgba(20, 26, 35, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #e5e5e5;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tech-tag-btn:hover {
    border-color: var(--theme-accent-color, #62fb43);
    color: #ffffff;
}

.tech-tag-btn.active {
    background: var(--theme-accent-color, #62fb43) !important;
    border-color: var(--theme-accent-color, #62fb43) !important;
    color: #111111 !important;
    box-shadow: 0 0 12px rgba(98, 251, 67, 0.4) !important;
}

/* Budget & Timeline Pill Groups */
.budget-pill-group,
.timeline-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

/* Buttons */
.contact-btn {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 1rem;
    padding: 0.65rem 1.4rem;
    border-radius: 0.65rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.contact-btn-primary,
.contact-btn-submit {
    background: linear-gradient(135deg, #43e5fb 0%, #62fb43 100%);
    color: #111111 !important;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(98, 251, 67, 0.35);
}

.contact-btn-primary:hover,
.contact-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(98, 251, 67, 0.55);
}

.contact-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}

.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.contact-btn-danger {
    background: rgba(255, 71, 87, 0.15);
    border-color: #ff4757;
    color: #ff6b81 !important;
}

.contact-btn-danger:hover {
    background: #ff4757;
    color: #ffffff !important;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #111111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Submit Row */
.contact-submit-row {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-submit-row .contact-btn-submit {
    width: 100%;
    max-width: 24rem;
    padding: 0.85rem 1.5rem;
    font-size: 1.15rem;
}

.contact-privacy-note {
    font-size: 0.8rem;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.6));
    margin-top: 0.75rem;
}

/* Error Banner */
.contact-error-banner,
.auth-error-banner {
    background: rgba(255, 71, 87, 0.15);
    border: 1.5px solid #ff4757;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ff6b81;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Success Card */
.contact-success-card {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(98, 251, 67, 0.15);
    border: 2px solid var(--theme-accent-color, #62fb43);
    border-radius: 50%;
    color: var(--theme-accent-color, #62fb43);
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(98, 251, 67, 0.3);
}

.success-title {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.success-desc {
    font-size: 1.05rem;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.8));
    max-width: 36rem;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}

.success-receipt-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.receipt-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.receipt-id {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--theme-accent-color, #62fb43);
    font-weight: 700;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   AUTH SHIELD & LOGIN VIEW
   ========================================================================== */
.incoming-auth-gate {
    max-width: 30rem;
    margin: 2rem auto;
}

.auth-shield-card {
    text-align: center;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid #ff4757;
    color: #ff6b81;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ff4757;
}

.auth-title {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.auth-desc {
    font-size: 0.85rem;
    color: var(--theme-text-muted, rgba(255, 255, 255, 0.7));
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-toggle-pw {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.auth-divider span {
    padding: 0 0.75rem;
}

.auth-sso-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sso-instructions {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.btn-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sso:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   INCOMING DASHBOARD
   ========================================================================== */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-title {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0.25rem 0 0 0;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    color: #e5e5e5;
}

.user-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--theme-accent-color, #62fb43);
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--theme-surface-bg, rgba(20, 26, 35, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.kpi-card.highlight-kpi {
    border-color: var(--theme-accent-color, #62fb43);
    box-shadow: 0 0 16px rgba(98, 251, 67, 0.15);
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.kpi-val {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 2rem;
    color: #ffffff;
    line-height: 1.1;
    margin: 0.3rem 0;
}

.kpi-card.highlight-kpi .kpi-val {
    color: var(--theme-accent-color, #62fb43);
}

.kpi-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Controls Row */
.dash-controls-card {
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
}

.dash-controls-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0.5rem;
    padding: 0.2rem;
}

.filter-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-tab.active {
    background: var(--theme-accent-color, #62fb43);
    color: #111111;
    font-weight: 700;
}

.dash-select-wrap {
    min-width: 130px;
}

.form-select-sm {
    padding: 0.35rem 1.8rem 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.dash-search-wrap {
    flex: 1 1 200px;
}

.form-search-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Incoming Feed & Cards */
.incoming-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.incoming-card {
    background: var(--theme-surface-bg, rgba(20, 26, 35, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.incoming-card:hover {
    border-color: rgba(98, 251, 67, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.incoming-card.card-new {
    border-left: 4px solid var(--theme-accent-color, #62fb43);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.status-badge.badge-new {
    background: rgba(98, 251, 67, 0.2);
    border: 1px solid #62fb43;
    color: #62fb43;
}

.status-badge.badge-contacted {
    background: rgba(67, 229, 251, 0.2);
    border: 1px solid #43e5fb;
    color: #43e5fb;
}

.status-badge.badge-archived {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.brand-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.category-badge {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.client-name {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0;
}

.client-company {
    font-size: 0.85rem;
    color: var(--theme-accent-color, #62fb43);
    font-weight: 600;
    margin-top: 0.15rem;
}

.client-contacts {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.client-email {
    color: #43e5fb;
    text-decoration: none;
}

.client-email:hover {
    text-decoration: underline;
}

.client-phone {
    color: rgba(255, 255, 255, 0.6);
}

.card-project-info {
    text-align: right;
    max-width: 24rem;
}

@media (max-width: 600px) {
    .card-project-info {
        text-align: left;
    }
}

.project-title {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.project-budget-timeline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .project-budget-timeline {
        justify-content: flex-start;
    }
}

.budget-tag,
.timeline-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.35rem;
    color: #fbc743;
    font-weight: 600;
}

.timeline-tag {
    color: #43e5fb;
}

.card-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.chip {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.chip-platform {
    background: rgba(67, 229, 251, 0.12);
    border: 1px solid rgba(67, 229, 251, 0.35);
    color: #43e5fb;
}

.chip-tech {
    background: rgba(98, 251, 67, 0.1);
    border: 1px solid rgba(98, 251, 67, 0.3);
    color: #62fb43;
}

.card-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.incoming-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   DETAIL MODAL / DRAWER
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-card {
    background: #141a23;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.modal-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: rgba(10, 14, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    padding: 1rem 1.25rem;
}

.detail-h3 {
    font-family: var(--theme-font-heading, 'toonishregular', sans-serif);
    font-size: 1.1rem;
    color: var(--theme-accent-color, #62fb43);
    margin: 0 0 0.75rem 0;
}

.detail-kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem 1rem;
}

.kv-item {
    font-size: 0.85rem;
}

.kv-k {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.35rem;
}

.kv-v {
    color: #ffffff;
    font-weight: 500;
}

.kv-v a {
    color: #43e5fb;
    text-decoration: none;
}

.detail-text-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
    margin-top: 0.35rem;
    white-space: pre-wrap;
}

.detail-link {
    color: #43e5fb;
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-all;
}

.detail-meta-box {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    padding: 0.5rem 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 20, 0.6);
}

.modal-footer-right {
    display: flex;
    gap: 0.65rem;
}
