/* AskFoxy - Core Application Styling (Tailwind / Custom CSS) */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #a1c4fd 50%, #c2e9fb 100%);
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--app-height, 100dvh);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px), var(--safe-bottom, 0px));
    color: #2d3436;
    overflow-x: hidden;
}

.app-header {
    text-align: center;
    margin-top: auto;
    margin-bottom: 12px;
}

.app-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.main-card {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 20px 24px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 4px solid #ffffff;
    margin-bottom: 18px;
}

/* --- Top Navigation & Controls Bar (Clean & Premium Header) --- */
.controls-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    background: transparent;
    padding: 2px 4px 6px 4px;
    border: none;
    font-size: 0.88rem;
    gap: 12px;
    width: 100%;
}

.connection-status-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    flex-shrink: 1;
    min-width: 0;
}

.connection-status-group:hover {
    background: rgba(0, 0, 0, 0.035);
    color: #0f172a;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.status-dot.dot-online {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: pulseStatusDot 2.8s infinite;
}

.status-dot.dot-offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

@keyframes pulseStatusDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-text {
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.icon-btn i {
    transition: transform 0.35s ease;
}

.icon-btn:hover {
    background: #fffdf5;
    border-color: #f6b93b;
    color: #d35400;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.22);
    transform: translateY(-1px);
}

.icon-btn:hover i {
    transform: rotate(45deg);
}

.icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pwa-install-btn {
    background: #fff8eb;
    border-color: #f39c12;
    color: #d35400;
}

.pwa-install-btn:hover {
    background: #f39c12;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.35);
}

.pwa-install-btn:hover i {
    transform: translateY(-2px) !important;
}

/* --- Age Bracket Selector Bar --- */
.age-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    background: #f1f2f6;
    padding: 6px;
    border-radius: 16px;
}

.age-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #57606f;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.age-btn.active {
    background: #ffffff;
    color: #e67e22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* --- Hero Row: 3D SVG Fox + Big Mic Button (Strictly Equal Size & Baseline Aligned) --- */
.hero-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 22px 20px;
    background: linear-gradient(180deg, #f0faff 0%, #e6f7ff 100%);
    border-radius: 28px;
    border: 2px solid #b5e8ff;
    min-height: 225px;
    gap: 18px;
}

.character-box,
.mic-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.character-name,
.mic-label {
    height: 24px;
    line-height: 24px;
    font-size: 0.90rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    user-select: none;
    text-align: center;
}

.character-name {
    color: #e67e22;
}

.mic-label {
    color: #ee5253;
}

.mic-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: #ffffff;
    border: 5px solid #ffffff;
    border-radius: 50%;
    width: 154px;
    height: 154px;
    font-size: 64px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(238, 82, 83, 0.44);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    margin: 0;
}

.mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(238, 82, 83, 0.58);
}

.mic-btn.listening {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    animation: mic-pulse 1.4s infinite;
}

@keyframes mic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 209, 161, 0.7); }
    70% { box-shadow: 0 0 0 22px rgba(29, 209, 161, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 209, 161, 0); }
}

/* --- Dialogue Section --- */
.dialogue-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble {
    border-radius: 16px;
    padding: 10px 14px;
    line-height: 1.45;
}

.child-bubble {
    background-color: #fffde7;
    border: 2px solid #fbc531;
}

.fox-bubble {
    background-color: #eafffc;
    border: 2px solid #48dbfb;
}

.fox-bubble-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.btn-bubble-speak-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(72, 219, 251, 0.18);
    color: #0288d1;
    border: 1.5px solid #48dbfb;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    padding: 0;
    margin-top: -2px;
    margin-right: -2px;
}

.btn-bubble-speak-icon:hover {
    background: #48dbfb;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(72, 219, 251, 0.4);
}

.btn-bubble-speak-icon:active {
    transform: scale(0.92);
}

.btn-bubble-speak-icon.speaking {
    background: #ff7675;
    border-color: #d63031;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(214, 48, 49, 0.35);
}

.btn-bubble-speak-icon.speaking i {
    animation: speakPulse 1.2s infinite ease-in-out;
}

@keyframes speakPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

.bubble-header {
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bubble-content {
    font-size: 0.88rem;
    word-break: break-word;
    min-height: 20px;
    font-weight: 500;
    line-height: 1.45;
    color: #1e293b;
}

.fact-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    background: #e0f2fe;
    color: #0284c7;
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #bae6fd;
    font-weight: 700;
}

/* --- Input Row (Perfect Fit on All Screen Sizes) --- */
.input-row {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.input-row input {
    flex: 1;
    min-width: 0; /* CRITICAL: allows flex item to shrink below content size on mobile */
    padding: 10px 16px;
    font-size: 0.95rem;
    border: 2px solid #fbc531;
    border-radius: 22px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

.input-row input::-webkit-search-decoration,
.input-row input::-webkit-search-cancel-button,
.input-row input::-webkit-search-results-button,
.input-row input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}

.input-row input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
}

.input-row button {
    flex-shrink: 0; /* CRITICAL: prevents Ask button from being pushed out of card */
    background-color: #48dbfb;
    color: #104e5b;
    border: none;
    border-radius: 22px;
    padding: 0 18px;
    font-size: 0.92rem;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(72, 219, 251, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.input-row button:hover {
    transform: scale(1.04);
    background-color: #0abde3;
    color: #ffffff;
}

.input-row button:active {
    transform: scale(0.98);
}

/* --- Modals (Parent & Activation) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    border: 4px solid #fbc531;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-enter 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Roomy vertical layout specifically for Parent Dashboard */
#parent-modal .modal-card {
    max-width: 840px;
    width: 95%;
    padding: 22px 26px;
    max-height: 88vh;
    overflow: hidden;
}

@keyframes modal-enter {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #f6b93b;
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: #d35400;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: #f1f2f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    color: #747d8c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #ff6b6b;
    color: #ffffff;
}

/* ========================================================
   Vertical Tab Navigation (Clean 2-Column Sidebar Layout)
   ======================================================== */
.parent-dashboard-layout {
    display: flex;
    gap: 22px;
    min-height: 440px;
    margin-top: 4px;
    overflow: hidden;
}

.vertical-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 200px;
    flex-shrink: 0;
    border-right: 1.5px solid #f1f2f6;
    padding-right: 14px;
}

.vertical-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    user-select: none;
}

.vertical-tab-btn i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.vertical-tab-btn:hover {
    background: #f8fafc;
    color: #1e293b;
}

.vertical-tab-btn:hover i {
    color: #f59e0b;
    transform: scale(1.1);
}

.vertical-tab-btn.active {
    background: #fff8e7;
    color: #d35400;
    border-color: #ffd700;
    box-shadow: 0 3px 10px rgba(246, 185, 59, 0.16);
}

.vertical-tab-btn.active i {
    color: #d35400;
    transform: scale(1.1);
}

.tab-panels-container {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden !important;
    max-height: calc(88vh - 130px);
    padding-right: 6px;
}

.tab-panels-container::-webkit-scrollbar {
    width: 6px;
}

.tab-panels-container::-webkit-scrollbar-thumb {
    background: #f6b93b;
    border-radius: 4px;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tab-content.active {
    display: block;
}

#tab-history table.dataTable {
    width: 100% !important;
    font-size: 0.85rem;
}

#tab-history .dataTables_wrapper {
    font-size: 0.82rem;
    color: #2d3436;
}

@media (max-width: 680px) {
    #parent-modal .modal-card {
        padding: 16px;
        overflow-y: auto;
    }
    .parent-dashboard-layout {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        overflow: visible;
    }
    .vertical-tabs-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1.5px solid #f1f2f6;
        padding-right: 0;
        padding-bottom: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .vertical-tab-btn {
        flex: 1 1 calc(50% - 6px);
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    .tab-panels-container {
        max-height: none;
        overflow: visible;
    }
}

/* Form controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2f3542;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 2px solid #ffd700;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
}

.btn-secondary {
    background: #f1f2f6;
    color: #57606f;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-danger:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Info Cards */
.info-box {
    background: #fffdf5;
    border: 1px solid #ffeaa7;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.info-box-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f2f6;
}

.info-box-row:last-child {
    border-bottom: none;
}

/* ========================================================
   Child & Content Settings Card & Custom Controls
   ======================================================== */
.settings-card {
    background: #fffdf5;
    border: 1px solid #ffeaa7;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #d35400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-badge {
    background: #e8f8f0;
    color: #27ae60;
    border: 1px solid #2ecc71;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.settings-desc {
    font-size: 0.85rem;
    color: #57606f;
    line-height: 1.45;
}

.settings-age-bar {
    margin-top: 4px;
    background: #f1f2f6;
    border-radius: 14px;
    padding: 4px;
}

.tier-callout-box {
    margin-top: 6px;
    background: #ffffff;
    border-left: 4px solid #f39c12;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #2f3542;
    line-height: 1.45;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tier-callout-box strong {
    color: #d35400;
}

/* Custom iOS/Modern Toggle Switch */
.toggle-setting-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #f1f2f6;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

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

.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dcdde1;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
}

.custom-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-switch input:checked + .custom-slider {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

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

.toggle-setting-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-setting-label strong {
    font-size: 0.9rem;
    color: #2f3542;
}

.toggle-setting-label small {
    font-size: 0.8rem;
    color: #747d8c;
    line-height: 1.35;
}

.saved-toast {
    margin-top: 10px;
    padding: 8px 14px;
    background: #e8f8f0;
    color: #27ae60;
    border: 1px solid #2ecc71;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: fadeIn 0.2s ease-in;
}

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

/* ========================================================
   Searchable Voice Character Dropdown Component
   ======================================================== */
.voice-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

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

.voice-action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.voice-action-icon-btn:hover,
.voice-action-icon-btn:focus {
    background: #fff8e7;
    border-color: #f39c12;
    color: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.15);
}

.voice-action-icon-btn:active {
    transform: scale(0.95);
}

.voice-refresh-msg {
    font-size: 0.8rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 6px;
    padding: 4px 10px;
    background: #e8f8f0;
    border-radius: 6px;
    border: 1px solid #b7eb8f;
    animation: fadeIn 0.2s ease-out;
}

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

.dropdown-trigger {
    background: #ffffff;
    border: 2px solid #ffd700;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    outline: none;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus,
.searchable-dropdown.open .dropdown-trigger {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.dropdown-selected-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2f3542;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    color: #f39c12;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.searchable-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #f6b93b;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    z-index: 10500;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownPop 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.searchable-dropdown.open .dropdown-panel {
    display: flex;
}

.dropdown-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fffdf5;
    border-bottom: 1px solid #ffeaa7;
}

.dropdown-search-box .search-icon {
    color: #f39c12;
    font-size: 0.9rem;
}

.dropdown-search-box .search-input {
    flex: 1;
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: #2d3436;
}

.dropdown-search-box .search-input:focus {
    border-color: #e67e22;
    box-shadow: 0 0 4px rgba(230, 126, 34, 0.3);
}

.btn-search-clear {
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.btn-search-clear:hover {
    color: #e74c3c;
}

.dropdown-items-list {
    max-height: 230px;
    overflow-y: auto;
    padding: 6px 0;
}

.dropdown-items-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-items-list::-webkit-scrollbar-thumb {
    background: #f6b93b;
    border-radius: 4px;
}

.voice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    cursor: pointer;
    transition: background-color 0.12s;
    user-select: none;
    gap: 10px;
}

.voice-item:hover,
.voice-item.highlighted {
    background-color: #fff8e7;
    color: #d35400;
}

.voice-item.selected {
    background-color: #e8f8f0;
    color: #27ae60;
    font-weight: 700;
}

.voice-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

.voice-item-left i {
    font-size: 0.85rem;
    color: #f39c12;
}

.voice-item.selected .voice-item-left i {
    color: #27ae60;
}

.voice-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
}

.voice-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.voice-badge-lang {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    background: #f1f2f6;
    color: #57606f;
}

.voice-badge-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    background: #e1f5fe;
    color: #0288d1;
}

.voice-item-check {
    color: #27ae60;
    font-size: 0.85rem;
    display: none;
}

.voice-item.selected .voice-item-check {
    display: inline-block;
}

.voice-no-results {
    padding: 16px 14px;
    text-align: center;
    color: #747d8c;
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.voice-no-results i {
    font-size: 1.4rem;
    color: #bdc3c7;
}

/* ========================================================
   Dedicated Child-Friendly Q&A History Modal Window
   ======================================================== */
.history-modal-card {
    max-width: 680px;
    width: 95%;
    max-height: 86vh;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 12px;
}

.history-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffdf5;
    border: 1.5px solid #ffd700;
    border-radius: 14px;
    padding: 8px 14px;
    transition: all 0.2s;
}

.history-search-box:focus-within {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.history-search-box .search-icon {
    color: #f39c12;
    font-size: 0.9rem;
}

.history-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    font-family: inherit;
    color: #2d3436;
}

.history-count-pill {
    background: #f1f2f6;
    color: #57606f;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.history-stream-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    min-height: 250px;
}

.history-stream-container::-webkit-scrollbar {
    width: 6px;
}

.history-stream-container::-webkit-scrollbar-thumb {
    background: #f6b93b;
    border-radius: 4px;
}

.history-card {
    background: #ffffff;
    border: 1.5px solid #f1f2f6;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.history-card:hover {
    border-color: #ffd700;
    box-shadow: 0 6px 18px rgba(246, 185, 59, 0.14);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f2f6;
}

.history-timestamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.history-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.history-tier-badge {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.history-web-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.history-msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.history-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.child-msg .history-msg-avatar {
    background: #fff8e7;
    color: #f39c12;
}

.fox-msg .history-msg-avatar {
    background: #eafffc;
    color: #0abde3;
}

.history-msg-bubble {
    flex: 1;
    min-width: 0;
}

.history-bubble-sender {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 2px;
}

.history-bubble-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #1e293b;
    word-break: break-word;
}

.history-bubble-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.btn-replay-audio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f8f0;
    color: #27ae60;
    border: 1px solid #2ecc71;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-replay-audio:hover {
    background: #27ae60;
    color: #ffffff;
    transform: scale(1.04);
}

.history-empty-state {
    text-align: center;
    padding: 40px 16px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.history-empty-state i {
    font-size: 2.4rem;
    color: #fbc531;
}

.history-empty-state h3 {
    color: #2f3542;
    font-size: 1.05rem;
}

.history-loading-spinner {
    text-align: center;
    padding: 32px 16px;
    color: #747d8c;
    font-size: 0.92rem;
}

/* ========================================================
   Application Footer (VAapps Brand & Version Attribution)
   ======================================================== */
.app-footer {
    text-align: center;
    padding: 6px 16px;
    margin-top: auto;
    margin-bottom: max(12px, env(safe-area-inset-bottom, 0px), var(--safe-bottom, 0px));
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    z-index: 10;
}

.footer-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 0.80rem;
    color: #475569;
}

.vaapps-link {
    color: #4338ca;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.88rem;
    transition: transform 0.2s ease;
}

.vaapps-link:hover {
    transform: translateY(-1px);
}

.footer-brand {
    font-weight: 800;
    color: #4338ca;
    letter-spacing: -0.2px;
    font-size: 0.92rem;
}

.footer-by {
    font-weight: 600;
    color: #6366f1;
    font-size: 0.80rem;
}

.footer-vaapps {
    font-weight: 800;
    color: #4338ca;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    letter-spacing: -0.2px;
    font-size: 0.92rem;
}

.footer-vaapps::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.8px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 25%, #d946ef 50%, #ec4899 75%, #4f46e5 100%);
    background-size: 200% 100%;
    animation: vaappsGradientSlide 3s linear infinite;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.45);
}

.vaapps-link:hover .footer-vaapps::after {
    height: 2.2px;
    box-shadow: 0 2px 8px rgba(217, 70, 239, 0.6);
}

@keyframes vaappsGradientSlide {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.footer-sep {
    color: #94a3b8;
    font-size: 0.70rem;
    user-select: none;
}

.footer-version {
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    border: 1px solid rgba(211, 84, 0, 0.25);
    box-shadow: 0 1px 4px rgba(230, 126, 34, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.footer-copy {
    color: #64748b;
    font-weight: 500;
}

/* ========================================================
   Mobile Viewport Responsiveness Optimizations (< 520px)
   ======================================================== */
@media (max-width: 520px) {
    body {
        padding: 8px 6px max(14px, env(safe-area-inset-bottom, 0px), var(--safe-bottom, 0px));
    }

    .main-card {
        padding: 14px 14px;
        border-radius: 22px;
        gap: 10px;
        border-width: 2px;
        margin-bottom: 14px;
    }

    .app-title {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }

    .controls-bar {
        padding: 0 0 2px 0;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 6px;
    }

    .header-actions {
        margin-left: auto;
        flex-shrink: 0;
        gap: 6px;
    }

    .connection-status-group {
        padding: 4px 6px;
        font-size: 0.82rem;
    }

    .hero-row {
        gap: 14px;
        padding: 18px 12px;
        min-height: 192px;
        border-radius: 22px;
    }

    .foxy-stage-wrapper {
        width: 132px !important;
        height: 132px !important;
    }

    .mic-btn {
        width: 132px;
        height: 132px;
        font-size: 56px;
    }

    .character-box,
    .mic-box {
        padding: 0;
        gap: 9px;
    }

    .character-name,
    .mic-label {
        font-size: 0.86rem;
        height: 22px;
        line-height: 22px;
    }

    .dialogue-section {
        gap: 8px;
    }

    .bubble {
        padding: 8px 12px;
        border-radius: 14px;
    }

    .btn-bubble-speak-icon {
        width: 25px;
        height: 25px;
        font-size: 0.76rem;
    }

    .bubble-header {
        font-size: 0.65rem;
        margin-bottom: 2px;
        letter-spacing: 0.02em;
    }

    .bubble-content {
        font-size: 0.78rem;
        line-height: 1.38;
    }

    .input-row {
        gap: 6px;
    }

    .input-row input {
        padding: 9px 12px;
        font-size: 0.88rem;
        border-radius: 18px;
    }

    .input-row button {
        padding: 0 14px;
        font-size: 0.86rem;
        border-radius: 18px;
    }

    .history-modal-card {
        padding: 16px 14px;
    }

    .app-footer {
        padding: 6px 14px;
        margin-top: auto;
        margin-bottom: max(10px, env(safe-area-inset-bottom, 0px), var(--safe-bottom, 0px));
        border-radius: 16px;
        max-width: 95%;
    }

    .footer-content {
        font-size: 0.76rem;
        gap: 6px;
    }

    .vaapps-link {
        font-size: 0.82rem;
    }

    .footer-brand,
    .footer-vaapps {
        font-size: 0.86rem;
    }

    .footer-version {
        font-size: 0.66rem;
        padding: 1px 6px;
    }
}

/* ==========================================================================
   Subscription Plans Grid & Cards (Parent Dashboard)
   ========================================================================== */
/* --- Plans & Upgrade Carousel & Choice Navigation --- */
.plans-email-bar {
    background: #fffdf9;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plans-email-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #d35400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.plans-email-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.plans-email-inputs input {
    padding: 5px 8px;
    font-size: 0.82rem;
    border-radius: 7px;
    border: 1px solid #ced6e0;
}

.plans-email-inputs input[type="email"] {
    flex: 2;
    min-width: 170px;
}

.plans-email-inputs input[type="text"] {
    flex: 1;
    min-width: 120px;
}

.plans-choice-nav {
    display: flex;
    gap: 6px;
    background: #f1f2f6;
    padding: 3px;
    border-radius: 12px;
    margin-top: 2px;
    margin-bottom: 6px;
}

.plan-choice-pill {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #57606f;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    white-space: nowrap;
}

.plan-choice-pill i {
    font-size: 0.80rem;
}

.plan-choice-pill:hover {
    color: #e67e22;
}

.plan-choice-pill.active {
    background: #ffffff;
    color: #d35400;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.plans-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    overflow: hidden !important;
}

.plans-scroll-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 6px 16px 8px 16px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.plans-scroll-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.plans-scroll-track .plan-card {
    flex: 0 0 280px;
    max-width: 86%;
    min-height: auto;
    padding: 12px 14px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #ffd79a;
    color: #e67e22;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 0.86rem;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: #fff8e7;
    color: #d35400;
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:disabled,
.carousel-arrow.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
    transform: translateY(-50%) scale(1);
}

.carousel-prev {
    left: 4px;
}

.carousel-next {
    right: 4px;
}

.plans-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: #dcdde1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.carousel-dot:hover {
    background: #f39c12;
}

.carousel-dot.active {
    width: 20px;
    background: #e67e22;
}

@media (max-width: 600px) {
    .plan-choice-pill {
        font-size: 0.72rem;
        padding: 5px 3px;
        gap: 3px;
    }
    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
    .carousel-prev {
        left: 2px;
    }
    .carousel-next {
        right: 2px;
    }
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.plan-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 14px;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.plan-free {
    border-color: #cbd5e1;
}

.plan-explorer {
    border-color: #f39c12;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.plan-pro {
    border-color: #e67e22;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.12);
}

.plan-badge-top {
    position: absolute;
    top: -10px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #718096;
    color: #ffffff;
}

.plan-badge-popular {
    background: #f39c12;
}

.plan-badge-pro {
    background: #e67e22;
}

.plan-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 2px;
}

.plan-price {
    font-size: 1.30rem;
    font-weight: 800;
    color: #d35400;
    margin-bottom: 6px;
}

.plan-price .price-period {
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 0.78rem;
    color: #4a5568;
    line-height: 1.45;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 3px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-features .check-icon {
    color: #27ae60;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.plan-notice-box {
    background: #f7fafc;
    border-left: 3px solid #cbd5e0;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.69rem;
    color: #718096;
    line-height: 1.35;
    margin-bottom: 6px;
}

.btn-plan-action {
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-plan-current {
    background: #edf2f7;
    color: #4a5568;
    cursor: default;
}

.btn-pro-action {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.25);
}

.btn-pro-action:hover {
    background: linear-gradient(135deg, #d35400, #c0392b);
    transform: translateY(-1px);
}

/* ========================================================
   License & Plan Top Sub-tabs (Details vs Activate/Switch/Deactivate)
   ======================================================== */
.license-subnav-bar {
    display: flex;
    gap: 8px;
    background: #f1f2f6;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.license-subtab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #57606f;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.license-subtab-btn i {
    font-size: 0.88rem;
    color: #747d8c;
    transition: color 0.2s ease, transform 0.2s ease;
}

.license-subtab-btn:hover {
    color: #d35400;
}

.license-subtab-btn:hover i {
    color: #f39c12;
    transform: scale(1.1);
}

.license-subtab-btn.active {
    background: #ffffff;
    color: #d35400;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.license-subtab-btn.active i {
    color: #d35400;
}

.license-subpanel {
    display: none;
    animation: tabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.license-subpanel.active {
    display: block;
}



