/* TETO MASCOT & HERO (RESPONSIVE) */
.teto-mascot {
    filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.2));
    object-fit: contain;
    transition: 0.3s;
}

@media (min-width: 992px) {
    .teto-mascot {
        max-height: 86vh;
        transform: scale(1.2);
    }
}

@media (max-width: 991px) {
    #teto-view {
        min-height: auto !important;
        display: block !important;
        padding-top: 0 !important;
    }
    #teto-view .hero-wrapper {
        padding-top: 135px !important;
        padding-bottom: 30px !important;
        min-height: auto !important;
        display: block !important;
    }
    .teto-mascot {
        max-height: 275px !important;
        height: auto !important;
        width: auto !important;
        max-width: 100% !important;
        transform: none !important;
        margin: 0 auto 16px auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    #teto-view .hero-wrapper {
        padding-top: 145px !important;
        padding-bottom: 25px !important;
    }
    .teto-mascot {
        max-height: 230px !important;
        margin: 0 auto 14px auto !important;
    }
}

/* FREE WINDOWS LICENSE TROLL BUTTON */
.btn-license-teto {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 9px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-license-teto:hover {
    border-color: #ef4444;
    color: #fff;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

body.light-mode .btn-license-teto {
    border: 1px dashed rgba(0, 0, 0, 0.25);
    color: #475569;
}

body.light-mode .btn-license-teto:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

@media (max-width: 991px) {
    .btn-license-teto {
        width: 100%;
        text-align: center;
        margin-top: 4px;
        margin-bottom: 10px;
    }
}

/* TETO DOWNLOAD MODAL (KERNELOS STYLE) */
.teto-modal {
    background-color: #121212;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    padding: 24px;
    color: white;
    border: 1px solid #2a2a2a;
    position: relative;
}

.modal-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(239, 68, 68, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.modal-icon-box svg {
    width: 22px;
    height: 22px;
    color: #ef4444;
}

.teto-modal-title h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.teto-modal-title p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

.btn-close-custom {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
    position: absolute;
    right: 24px;
    top: 24px;
}

.btn-close-custom:hover {
    background: #2a2a2a;
    color: white;
    border-color: #444;
}

.modal-divider-h {
    width: 100%;
    height: 1px;
    background-color: #2a2a2a;
    margin-bottom: 24px;
}

.modal-body-split {
    display: flex;
    gap: 24px;
}

.modal-left-pane {
    width: 30%;
    border-right: 1px solid #2a2a2a;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
}

.modal-right-pane {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.pane-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 16px;
}

.teto-btn-outline {
    width: 100%;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #333;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.teto-btn-outline.active {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: white;
}

.teto-btn-outline:not(.active):not(:disabled):hover {
    border-color: #555;
    background: rgba(255, 255, 255, 0.03);
}

.teto-btn-outline:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #222;
    color: #64748b;
}

.teto-build-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.teto-pill-btn {
    background: #161616;
    border: 1px solid #2a2a2a;
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.teto-pill-btn:hover {
    border-color: #444;
    color: #fff;
}

.teto-pill-btn.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.alert-notice-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

.alert-notice-box.alert-warning-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teto-link-help {
    background: none;
    border: none;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    width: fit-content;
}

.teto-link-help:hover {
    color: #ef4444;
    text-decoration: underline;
}

.teto-link-help svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.teto-link-archive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.teto-link-archive:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

.teto-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0;
}

.teto-tab {
    background: none;
    border: none;
    color: #64748b;
    padding-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.teto-tab:hover {
    color: #94a3b8;
}

.teto-tab.active {
    color: white;
}

.teto-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ef4444;
}

.ed-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.ed-btn {
    flex: 1;
    min-width: 0;
    background: #161616;
    border: 1px solid #2a2a2a;
    color: white;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.ed-btn:not(:disabled):hover {
    background-color: #1e1e1e;
    border-color: #333;
}

.ed-btn.selected {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

.ed-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #0d0d0d;
    border-color: #1a1a1a;
    color: #555;
}

.ed-changelog-btn {
    background: #161616;
    border: 1px solid #2a2a2a;
    color: #94a3b8;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.ed-changelog-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.changelog-content-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.changelog-list {
    margin: 0;
    padding-left: 20px;
}

.changelog-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.changelog-list li:last-child {
    margin-bottom: 0;
}

.helper-text {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 8px;
}

.modal-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.footer-status {
    color: #64748b;
    font-size: 0.9rem;
}

.download-final-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.05);
    color: #fca5a5;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.download-final-btn:not(.disabled):hover {
    background: rgba(239, 68, 68, 0.25);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
}

.download-final-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.download-final-btn svg {
    width: 16px;
    height: 16px;
}

/* LIGHT MODE OVERRIDES */
body.light-mode .teto-modal {
    background-color: #f8fafc;
    color: #1e293b;
    border-color: rgba(239, 68, 68, 0.3);
}

body.light-mode .btn-close-custom {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .teto-btn-outline {
    color: #475569;
    border-color: #cbd5e1;
}

body.light-mode .teto-btn-outline.active {
    color: #fff;
    background-color: #ef4444;
    border-color: #ef4444;
}

body.light-mode .ed-btn {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
}

body.light-mode .ed-btn.selected {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

body.light-mode .modal-divider-h, 
body.light-mode .modal-left-pane, 
body.light-mode .teto-tabs, 
body.light-mode .modal-footer-custom {
    border-color: #e2e8f0;
}

body.light-mode .teto-link-help {
    color: #64748b;
}

body.light-mode .teto-link-help:hover {
    color: #ef4444;
}

body.light-mode .ed-changelog-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

body.light-mode .ed-changelog-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

body.light-mode .changelog-content-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-mode .changelog-list li {
    color: #334155;
}

body.light-mode .alert-notice-box.alert-warning-box {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

/* Responsive Modal Split */
@media (max-width: 768px) {
    .modal-body-split {
        flex-direction: column;
        gap: 0;
    }
    .modal-left-pane {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .modal-right-pane {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ed-changelog-btn span {
        display: none;
    }
    .ed-changelog-btn {
        padding: 0 10px;
    }
}
