:root {
    --bg-main: #03193A;
    --bg-darker: #021128;
    --card: #052049;
    --card-surface: #072a60;
    --card-hover: #083478;
    --text-white: #ffffff;
    --text-light: #f4f4f9;
    --text-muted: #b3c7e6;
    --text-subtle: #8ca3c7;
    --accent: #b3c7e6;
    --accent-dark: #03193A;
    --btn-blue: #5473a2;
    --btn-blue-hover: #172554;
    --border: rgba(179, 199, 230, 0.22);
    --border-focus: #b3c7e6;
    --border-subtle: rgba(179, 199, 230, 0.12);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --nav-height: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========================================================
   CABEÇALHO FIXO GLOBAL (NAVBAR)
======================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(3, 25, 58, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand-logo .logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.logo-text span {
    color: #38bdf8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.btn-top-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: var(--accent);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-top-upload:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* ========================================================
   ESTRUTURA DE TELA PADRONIZADA (FRAME PERSISTENTE)
======================================================== */
.app-screen,
.hero-screen {
    width: 100%;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 24px) 20px 32px;
    background: 
        radial-gradient(circle at 50% 35%, rgba(84, 115, 162, 0.16) 0%, rgba(3, 25, 58, 0.95) 65%),
        linear-gradient(180deg, #021128 0%, #03193A 50%, #021128 100%);
    position: relative;
}

.gradient-text {
    background: linear-gradient(90deg, #f4f4f9 17%, #b3c7e6 125%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================================
   CONTAINER DE FORMULÁRIO / CARD UNIFICADO
======================================================== */
.app-card {
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card.wide {
    max-width: 860px;
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.card-header-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.45));
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #fff;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================================
   CAMPOS DE FORMULÁRIO PADRONIZADOS
======================================================== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.form-group.group-active label,
.form-group:focus-within label {
    color: #38bdf8;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus,
.input-focused {
    border-color: #38bdf8 !important;
    background: rgba(3, 25, 58, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    transform: translateY(-1px);
}

.input-has-value {
    border-color: rgba(56, 189, 248, 0.35);
}

.input-with-action {
    display: flex;
    gap: 8px;
}

.input-with-action input {
    flex: 1;
}

.btn-secondary-action {
    padding: 0 16px;
    background: var(--card-surface);
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-secondary-action:hover {
    background: var(--btn-blue);
    color: #fff;
}

.container {
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.wide {
    max-width: 860px;
}

.btn-submit,
.btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--accent-dark);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover,
.btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-submit:active,
.btn:active {
    transform: scale(0.99);
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btnSpin 0.65s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

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

.btn-loading {
    pointer-events: none !important;
    opacity: 0.85 !important;
    cursor: wait !important;
}

/* ========================================================
   BARRA DE PROGRESSO E OVERLAY DE TROCA DE PÁGINA
======================================================== */
#page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #5473a2, #00e676);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    z-index: 999999;
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#page-progress-bar.active {
    opacity: 1;
    width: 82%;
    transition: width 2s cubic-bezier(0.1, 0.5, 0.1, 1), opacity 0.2s ease;
}

#page-progress-bar.done {
    width: 100%;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.35s ease 0.15s;
}

#page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 17, 40, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

#page-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.overlay-spinner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(5, 32, 73, 0.94);
    border: 1px solid rgba(179, 199, 230, 0.25);
    padding: 24px 32px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: overlayBoxPop 0.2s ease-out;
}

@keyframes overlayBoxPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: btnSpin 0.75s linear infinite;
}

.overlay-spinner-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ========================================================
   HERO DA LANDING PAGE
======================================================== */
.hero-center-content {
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-logo-center {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 180, 255, 0.45));
}

.hero-title {
    font-size: clamp(24px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 auto 20px;
    max-width: 860px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 180px;
}

.btn-bob-secondary {
    background: var(--btn-blue);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(84, 115, 162, 0.35);
}

.btn-bob-secondary:hover {
    background: var(--btn-blue-hover);
    transform: translateY(-2px);
}

.btn-bob-primary {
    background: var(--accent);
    color: var(--accent-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn-bob-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.downloader-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.downloader-hint strong {
    color: #ffffff;
    background: rgba(179, 199, 230, 0.15);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 1px;
}

/* ========================================================
   SHOWCASE DE MOCKUPS (TV + MOBILE)
======================================================== */
.hero-devices-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    position: relative;
    width: 100%;
}

.hero-devices-stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, rgba(3, 25, 58, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.device-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.device-mockup:hover {
    transform: translateY(-8px);
}

.device-mockup picture,
.device-mockup img {
    display: block;
    width: 100%;
    height: auto;
}

.device-tv {
    flex: 1.6;
    max-width: 580px;
}

.device-tv img {
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.6));
}

.device-mobile {
    flex: 0.8;
    max-width: 230px;
}

.device-mobile img {
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7));
}

.mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(7, 42, 96, 0.65);
    border: 1px solid rgba(179, 199, 230, 0.22);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mockup-badge svg {
    color: #38bdf8;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .hero-devices-stage {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        margin-top: 36px;
    }

    .device-tv {
        max-width: 100%;
    }

    .device-mobile {
        max-width: 240px;
    }
}

/* ========================================================
   DISPOSITIVOS E TABELA DE LISTAS (PORTAL)
======================================================== */
.device-badge {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-id {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.status-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-trial { background: #f59e0b; color: #000; }
.status-active { background: var(--success); color: #000; }
.status-expired { background: var(--danger); color: #fff; }
.status-blocked { background: #7f1d1d; color: #fff; }

.playlists-section {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ibo-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--border);
}

.ibo-table thead tr {
    background: var(--card-surface);
    color: #fff;
}

.ibo-table th {
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ibo-table th.th-actions {
    text-align: right;
    width: 180px;
}

.ibo-table tbody tr {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.ibo-table tbody tr:hover {
    background: #041b3d;
}

.ibo-table td {
    padding: 14px 16px;
    font-size: 14px;
    vertical-align: middle;
}

.ibo-table td.td-actions {
    text-align: right;
    white-space: nowrap;
}

.playlist-name-cell {
    font-weight: 600;
    color: #fff;
}

.playlist-protected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-weight: 500;
    font-size: 13px;
}

.playlist-url-text {
    color: var(--text-muted);
    word-break: break-all;
    max-width: 320px;
    display: inline-block;
}

.btn-ibo {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-left: 6px;
}

.btn-ibo:hover { opacity: 0.9; }
.btn-ibo-edit { background: var(--btn-blue); color: #fff; }
.btn-ibo-delete { background: #e2a03f; color: #03193A; }

@media (max-width: 640px) {
    .ibo-table,
    .ibo-table thead,
    .ibo-table tbody,
    .ibo-table tr,
    .ibo-table td {
        display: block;
        width: 100%;
    }
    .ibo-table thead {
        display: none;
    }
    .ibo-table tbody tr {
        border-radius: 8px;
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    .ibo-table td {
        padding: 6px 0;
        border: none;
    }
    .ibo-table td.td-actions {
        text-align: left;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        display: flex;
        gap: 8px;
    }
    .btn-ibo {
        flex: 1;
        text-align: center;
        margin-left: 0;
        padding: 9px 12px;
    }
}

.empty-box {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-darker);
    border-radius: 8px;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Card de Edição/Adição */
.form-card {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    display: none;
}

.form-card.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

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

.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.form-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.btn-close-form {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.btn-close-form:hover { color: #fff; }

.url-test-feedback {
    margin-top: 8px;
    font-size: 13px;
    display: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.url-test-feedback.online {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid var(--success);
}

.url-test-feedback.offline {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid var(--danger);
}

.url-test-feedback.testing {
    display: block;
    background: rgba(179, 199, 230, 0.15);
    color: #b3c7e6;
    border: 1px solid var(--border);
}

/* Modais Padronizados */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 17, 40, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-card {
    background: var(--card);
    color: var(--text-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.modal-icon-delete {
    border-color: var(--danger);
    color: var(--danger);
}

.modal-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.modal-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Floating Contacts */
.floating-contacts {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.contact-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.2s;
}

.contact-bubble:hover { transform: scale(1.08); }

/* Mobile Navigation Toggle Button */
.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle-btn {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(3, 25, 58, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px 22px;
        gap: 12px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }
    .nav-menu.nav-menu-open {
        display: flex;
    }
    .nav-link {
        font-size: 15px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(179, 199, 230, 0.1);
        width: 100%;
    }
    .nav-link.active::after {
        display: none;
    }
    .nav-container {
        padding: 0 16px;
    }
    .brand-logo .logo-img {
        width: 32px;
        height: 32px;
    }
    .logo-text {
        font-size: 17px;
    }
    .nav-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .btn-top-upload {
        padding: 7px 11px;
        font-size: 11px;
        letter-spacing: 0.2px;
    }
    .hero-screen {
        padding: calc(var(--nav-height) + 24px) 16px 64px;
        min-height: auto;
    }
    .hero-title {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 24px;
        padding: 0 6px;
    }
    .hero-title br {
        display: none;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-action {
        width: 100%;
        padding: 13px 20px;
    }
    .app-screen {
        padding: calc(var(--nav-height) + 24px) 14px 64px;
    }
    .app-card {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .card-title {
        font-size: 22px;
    }
    .playlists-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 16px;
    }
    .ibo-table {
        min-width: 520px;
    }
    .input-with-action {
        flex-direction: column;
        gap: 8px;
    }
    .btn-secondary-action {
        padding: 10px 14px;
        text-align: center;
    }
    .device-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .logo-text span {
        display: none;
    }
    .btn-top-upload {
        font-size: 10.5px;
        padding: 6px 9px;
    }
    .hero-title {
        font-size: 19px;
    }
    .device-mobile {
        max-width: 190px;
    }
}

/* =========================================================================
   RODAPÉ GLOBAL FIXO (MESMO MODELO DO HEADER)
   ========================================================================= */
body:has(.site-footer-fixed),
body.has-fixed-footer {
    padding-bottom: 56px;
}

.site-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: rgba(2, 17, 40, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.footer-fixed-container {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-fixed-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-fixed-left .footer-copy strong {
    color: #fff;
}

.footer-fixed-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(179, 199, 230, 0.15);
    font-size: 10.5px;
    color: #cbd5e1;
}

.footer-micro-badge svg {
    color: var(--accent);
}

.footer-fixed-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
}

.footer-fixed-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.footer-fixed-link:hover {
    color: var(--accent);
}

.footer-fixed-link.highlight {
    color: #38bdf8;
    font-weight: 600;
}

.footer-sep {
    color: #334155;
    font-size: 10px;
}

@media (max-width: 900px) {
    body:has(.site-footer-fixed),
    body.has-fixed-footer {
        padding-bottom: 74px;
    }
    .site-footer-fixed {
        height: auto;
        padding: 8px 0;
    }
    .footer-fixed-container {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 0 16px;
        text-align: center;
    }
    .footer-fixed-badges {
        display: none;
    }
    .footer-fixed-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 11.5px;
    }
    .floating-contacts {
        bottom: 84px !important;
    }
}

