/* =========================================================================
   GuinRank V7 — YouTube Outline Generator & Script Architect
   Standard: Theme Variables, Fluid Layout, RTL/LTR Mirroring & Bento Grid
   ========================================================================= */

#outline-generator-app {
    width: 100%;
}

.tool-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 60px 20px;
}

.tool-content-state.none {
    display: none;
}

.tool-content-state.show {
    display: block;
    animation: fadeInTool 0.25s ease-in-out;
}

@keyframes fadeInTool {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.da-wrapper {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.da-panel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    border-radius: 28px;
    padding: clamp(20px, 3.5vw, 44px);
    overflow: hidden;
    box-sizing: border-box;
}

#outline-generator-app.is-wide-mode,
#outline-generator-app.is-wide-mode .da-panel {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: clamp(12px, 2vw, 36px) !important;
    padding-right: clamp(12px, 2vw, 36px) !important;
}

#outline-generator-app.is-wide-mode .forge-grid,
#outline-generator-app.is-wide-mode .rw-hero,
#outline-generator-app.is-wide-mode .cw-panel {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ---------- AMBIENT GLOW ---------- */
.hero-ambient-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(350px, 60vw, 750px);
    height: 380px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- PRESENTATION HERO ---------- */
.rw-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}

.rw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.hero-badge-icon {
    width: 14px;
    height: 14px;
}

.rw-hero-title {
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin: 0 0 16px;
}

.rw-hero-title em.gradient-text,
.rw-hero-title .gradient-text,
.gradient-text {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 65%, #6366f1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rw-hero-desc {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features-belt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hfb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
}

.hfb-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* ---------- FORGE GRID ---------- */
.forge-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .forge-grid {
        grid-template-columns: 1fr;
    }
}

.cw-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
    position: relative;
}

.cw-panel.blueprint-panel {
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body);
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
}

.ph-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph-title i, .ph-title span svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.ph-title-light {
    color: var(--text-main);
}

.ep-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ep-btn i, .ep-btn span svg {
    width: 13px;
    height: 13px;
}

.ep-btn:hover:not(:disabled) {
    background: var(--border-color);
    color: var(--text-main);
}

.ep-btn.primary {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.ep-btn.primary:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.ep-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.panel-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-lbl {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-lbl i, .input-lbl span svg {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
}

.c-input {
    width: 100%;
    background: var(--bg-body);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.c-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

textarea.c-input {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* Radio Grid for Depth */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rg-input {
    display: none;
}

.rg-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-body);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.rg-label i, .rg-label span svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rg-input:checked + .rg-label {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

.rg-input:checked + .rg-label i,
.rg-input:checked + .rg-label span svg {
    opacity: 1;
    color: var(--primary-color);
}

/* Custom Dropdown */
#duration-dropdown-wrapper {
    position: relative;
    z-index: 50;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown.active {
    z-index: 100;
}

.cd-header {
    background: var(--bg-body);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}

.cd-header:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
}

.custom-dropdown.active .cd-header {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.cd-chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
    pointer-events: none;
}

.custom-dropdown.active .cd-chevron-icon {
    transform: rotate(180deg);
}

.cd-body {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    z-index: 1000;
    overflow: hidden;
    animation: cdFadeIn 0.15s ease-out;
}

@keyframes cdFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cd-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
}

.cd-item {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cd-item:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

.cd-item.active {
    background: var(--primary-color);
    color: #fff;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 45%, transparent);
}

.generate-btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.gen-btn-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gen-btn-content i, .gen-btn-content span svg {
    width: 18px;
    height: 18px;
}

.generate-btn.loading .ri {
    animation: spin 1s linear infinite;
}

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

/* ---------- BLUEPRINT ROADMAP UI ---------- */
.blueprint-panel {
    min-height: 520px;
}

.bp-header-actions {
    display: flex;
    gap: 8px;
}

.blueprint-container {
    flex-grow: 1;
    padding: 28px 24px;
    background: var(--bg-body);
    overflow-y: auto;
    max-height: 800px;
    position: relative;
    box-sizing: border-box;
}

.empty-blueprint {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.empty-blueprint-icon {
    width: 48px;
    height: 48px;
    opacity: 0.35;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.eb-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
}

.eb-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin: 0;
}

/* Nodes & Connected Timeline */
.rm-node {
    display: flex;
    margin-bottom: 28px;
    position: relative;
    animation: slideInNode 0.4s var(--ease-spring) forwards;
    opacity: 0;
    transform: translateY(18px);
}

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

.rm-node::before {
    content: '';
    position: absolute;
    top: 32px;
    bottom: -28px;
    left: 24px;
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

.rm-node:last-child::before {
    display: none;
}

/* RTL Timeline Mirroring */
[dir="rtl"] .rm-node::before,
html[lang="ar"] .rm-node::before {
    left: auto;
    right: 24px;
}

.rm-dot-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    margin-right: 20px;
    flex-shrink: 0;
}

[dir="rtl"] .rm-dot-wrap,
html[lang="ar"] .rm-dot-wrap {
    margin-right: 0;
    margin-left: 20px;
}

.rm-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rm-dot i, .rm-dot svg {
    width: 18px;
    height: 18px;
}

.rm-dot.hook {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rm-dot.outro {
    background: color-mix(in srgb, #10b981 12%, transparent);
    border-color: #10b981;
    color: #10b981;
}

.rm-time-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    white-space: nowrap;
}

.rm-card {
    flex-grow: 1;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.rm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 16.5px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.4;
    gap: 12px;
}

.rm-badge {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.rm-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
}

.rm-bullets {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

[dir="rtl"] .rm-bullets,
html[lang="ar"] .rm-bullets {
    padding-left: 0;
    padding-right: 20px;
}

.rm-bullets li {
    position: relative;
    margin-bottom: 10px;
}

.rm-bullets li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

[dir="rtl"] .rm-bullets li::before,
html[lang="ar"] .rm-bullets li::before {
    left: auto;
    right: -15px;
}

.streaming-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary-color);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ---------- LUXURY STATS STRIP & KPI METRIC CARDS ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0 40px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .stats-strip {
        grid-template-columns: 1fr;
    }
}

.kpi-stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.kpi-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.kpi-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.ksc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-stat-card:hover .ksc-icon {
    transform: scale(1.08) rotate(4deg);
}

.ksc-icon i, .ksc-icon svg {
    width: 22px;
    height: 22px;
}

.ksc-blue {
    background: color-mix(in srgb, #3b82f6 14%, transparent);
    color: #3b82f6;
    border: 1px solid color-mix(in srgb, #3b82f6 25%, transparent);
}

.ksc-purple {
    background: color-mix(in srgb, #8b5cf6 14%, transparent);
    color: #8b5cf6;
    border: 1px solid color-mix(in srgb, #8b5cf6 25%, transparent);
}

.ksc-green {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: #10b981;
    border: 1px solid color-mix(in srgb, #10b981 25%, transparent);
}

.ksc-pink {
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.ksc-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}

.ksc-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ksc-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ksc-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ksc-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 2px;
}

[dir="rtl"] .ksc-unit,
html[lang="ar"] .ksc-unit {
    margin-left: 0;
    margin-right: 2px;
}

.ksc-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-blue {
    background: color-mix(in srgb, #3b82f6 10%, transparent);
    color: #3b82f6;
}

.badge-purple {
    background: color-mix(in srgb, #8b5cf6 10%, transparent);
    color: #8b5cf6;
}

.badge-green {
    background: color-mix(in srgb, #10b981 10%, transparent);
    color: #10b981;
}

.badge-pink {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

/* Backward compatibility for legacy .sc */
.sc {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.sc:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.sc-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-ico i, .sc-ico svg {
    width: 20px;
    height: 20px;
}

.sc-ico.r { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.sc-ico.b { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.sc-ico.g { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.sc-ico.p { background: color-mix(in srgb, var(--primary-color) 10%, transparent); color: var(--primary-color); }

.sc-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}

.sc-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* =========================================================================
   BENTO FEATURES CLUSTER (GuinRank V7 Benchmark — Matching subscriber-journey)
   ========================================================================= */
.console-features {
    margin-top: 10px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.bento-features-cluster {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    grid-auto-flow: dense !important;
}

.bento-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 200px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.bc-wide-top { grid-column: span 2 !important; }
.bc-tall { grid-row: span 2 !important; min-height: 420px !important; }
.bc-wide-mid { grid-column: span 2 !important; }

@media (max-width: 900px) {
    .bento-features-cluster { grid-template-columns: repeat(2, 1fr) !important; }
    .bc-wide-top, .bc-wide-mid { grid-column: span 2 !important; }
    .bc-tall { grid-row: span 1 !important; grid-column: span 1 !important; min-height: 200px !important; }
}

@media (max-width: 600px) {
    .bento-features-cluster { grid-template-columns: 1fr !important; }
    .bc-wide-top, .bc-wide-mid, .bc-tall { grid-column: span 1 !important; }
}

.bento-decor-icon {
    position: absolute;
    top: 16px;
    left: 18px;
    right: auto;
    opacity: 0.12;
    transition: all 0.4s ease;
    pointer-events: none;
}

[dir="ltr"] .bento-decor-icon {
    right: 18px;
    left: auto;
}

[dir="rtl"] .bento-decor-icon,
html[lang="ar"] .bento-decor-icon {
    left: 18px;
    right: auto;
}

.bento-decor-icon i,
.bento-decor-icon svg {
    width: 64px !important;
    height: 64px !important;
    color: var(--primary-color);
}

.bento-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.dashed-ring-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px dashed color-mix(in srgb, var(--primary-color) 40%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: border-color 0.3s;
}

.bento-card:hover .dashed-ring-wrapper {
    border-color: var(--primary-color);
}

.bc-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.bc-icon-wrapper i,
.bc-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
}

.bc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.bc-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Bento Keyframe Animations */
.anim-float { animation: bentoFloat 3s ease-in-out infinite; }
.anim-pulse { animation: bentoPulse 2.4s ease-in-out infinite; }
.anim-spin { animation: bentoSpin 8s linear infinite; }
.anim-tilt { animation: bentoTilt 4s ease-in-out infinite; }
.anim-bounce { animation: bentoBounce 2s ease-in-out infinite; }
.anim-glow { animation: bentoGlow 2.5s ease-in-out infinite; }

@keyframes bentoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bentoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes bentoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bentoTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } }
@keyframes bentoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bentoGlow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.28; } }

/* ---------- COMPLIANCE FOOTER CARD ---------- */
.compliance-footer-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: color-mix(in srgb, var(--card-bg) 95%, var(--primary-color) 5%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, var(--border-color));
    border-radius: 18px;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}

.cfc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfc-icon i, .cfc-icon svg {
    width: 22px;
    height: 22px;
}

.cfc-content {
    flex: 1;
    min-width: 0;
}

.cfc-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px;
}

.cfc-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

.cfc-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.75;
    font-style: italic;
    margin: 0 0 14px;
}

.cfc-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    flex-wrap: wrap;
}

.cfc-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.cfc-links a:hover {
    text-decoration: underline;
}

.cfc-links span {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Toast Notification Feedback */
.gr-quick-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    padding: 12px 20px;
    background: var(--card-bg, #181c24);
    color: var(--text-main, #fff);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: grToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[dir="rtl"] .gr-quick-toast {
    right: auto;
    left: 28px;
}

.gr-quick-toast.gr-toast-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.gr-quick-toast.gr-toast-error {
    border-color: #ef4444;
    color: #ef4444;
}

.gr-quick-toast.gr-toast-success {
    border-color: #10b981;
    color: #10b981;
}

.gr-quick-toast.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

.c-input.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
