:root {
    --ig-navy: #101154;
    --ig-navy-dark: #0a0b38;
    --ig-green: #6ac94b;
    --ig-green-dark: #57a83c;
    --ig-primary: #101154;
    --ig-primary-dark: #0a0b38;
    --ig-accent: #6ac94b;
    --ig-border: #dde3ec;
    --ig-text: #0f172a;
    --ig-muted: #64748b;
    --ig-bg: #eef1f6;
    --ig-surface: #ffffff;
    --ig-radius: 12px;
    --ig-radius-sm: 8px;
    --ig-shadow: 0 1px 3px rgba(16, 17, 84, 0.06), 0 8px 24px rgba(16, 17, 84, 0.06);
    --ig-shadow-lg: 0 12px 40px rgba(16, 17, 84, 0.12);
}

/* Layout — largura total */
.ig-partner--fullbleed {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
}

.ig-partner {
    margin: 0;
    font-family: inherit;
    color: var(--ig-text);
    background: var(--ig-bg);
    min-height: calc(100vh - 32px);
    width: 100%;
}

.ig-partner__body {
    width: 100%;
    max-width: none;
    margin: -18px 0 40px;
    padding: 0 clamp(16px, 3vw, 40px);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.ig-partner--login {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px);
    box-sizing: border-box;
}

/* Hero */
.ig-partner-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(118deg, var(--ig-navy-dark) 0%, var(--ig-navy) 55%, #1a5c3a 88%, var(--ig-green) 100%);
    color: #fff;
}

.ig-partner-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(106, 201, 75, 0.28), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.ig-partner-hero__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px clamp(16px, 3vw, 40px) 32px;
    box-sizing: border-box;
}

.ig-partner-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.ig-partner-hero__inner--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 8px;
}

.ig-partner-hero__greeting {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.ig-partner-hero__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.ig-partner .ig-partner-hero__title,
.ig-partner-hero h1.ig-partner-hero__title {
    margin: 0;
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

.ig-partner-hero__subtitle {
    margin: 8px 0 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.55;
}

.ig-partner-hero__inner--center .ig-partner-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.ig-partner-hero__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--ig-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.ig-partner-hero__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--ig-green);
    color: var(--ig-navy-dark);
    font-size: 15px;
    font-weight: 800;
}

.ig-partner-hero__user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ig-partner-hero__user-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ig-partner-hero__user-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ig-partner-hero__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ig-partner-hero__logout:hover,
.ig-partner-hero__logout:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    outline: none;
}

/* Hero stats strip */
.ig-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ig-hero-stats__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: var(--ig-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-hero-stats__item--accent {
    background: rgba(106, 201, 75, 0.14);
    border-color: rgba(106, 201, 75, 0.35);
}

.ig-hero-stats__value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}

.ig-hero-stats__item--accent .ig-hero-stats__value {
    color: #b8f0a0;
}

.ig-hero-stats__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.62);
}

/* Cards */
.ig-card {
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    background: var(--ig-surface);
    box-shadow: var(--ig-shadow);
}

.ig-card--picker {
    margin-bottom: 16px;
}

.ig-card--primary {
    border-color: rgba(16, 17, 84, 0.12);
    box-shadow: var(--ig-shadow-lg);
}

.ig-picker-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ig-border);
}

.ig-picker-head__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ig-navy) 0%, #2a2d8a 100%);
    position: relative;
}

.ig-picker-head__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dashboard */
.ig-dashboard {
    margin-bottom: 16px;
}

/* Stats */
.ig-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ig-stat {
    padding: 20px;
    border-radius: var(--ig-radius);
    background: var(--ig-surface);
    border: 1px solid var(--ig-border);
    box-shadow: var(--ig-shadow);
    text-align: center;
}

.ig-stat--embed {
    border-color: rgba(106, 201, 75, 0.4);
    background: linear-gradient(180deg, #f7fdf4 0%, #fff 100%);
}

.ig-stat__value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--ig-navy);
    letter-spacing: -0.03em;
}

.ig-stat--embed .ig-stat__value {
    color: var(--ig-green-dark);
}

.ig-stat__label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ig-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sections */
.ig-section {
    margin-bottom: 20px;
}

.ig-section__head {
    margin-bottom: 16px;
}

.ig-section__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ig-text);
}

.ig-section__desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--ig-muted);
    line-height: 1.5;
}

/* Course grid */
.ig-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.ig-course-card {
    padding: 18px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius-sm);
    background: var(--ig-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ig-course-card:hover {
    border-color: rgba(106, 201, 75, 0.5);
    box-shadow: 0 4px 16px rgba(16, 17, 84, 0.06);
}

.ig-course-card__title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ig-text);
}
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ig-course-card__metric {
    font-size: 13px;
    color: var(--ig-muted);
}

.ig-course-card__metric--highlight {
    color: var(--ig-navy);
    font-weight: 700;
}

.ig-course-card__metric--muted {
    font-size: 12px;
}

.ig-course-card--locked {
    background: #f8fafc;
    border-style: dashed;
}

.ig-course-card--locked:hover {
    border-color: var(--ig-border);
    box-shadow: none;
}

.ig-course-card__locked {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
}

.ig-course-card__metrics {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
}

.ig-lock-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-7 8.73V17h2v-.27a2 2 0 1 0-2 0zM9 8V6a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-7 8.73V17h2v-.27a2 2 0 1 0-2 0zM9 8V6a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ig-lock-icon--card {
    margin-top: 2px;
    color: #b45309;
}

.ig-lock-icon--inline {
    margin-top: 1px;
    color: #b45309;
}

.ig-lock-icon--notice {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: #b45309;
}

/* Course bar (selected) */
.ig-course-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px 24px;
    border-radius: var(--ig-radius);
    background: var(--ig-surface);
    border: 1px solid var(--ig-border);
    box-shadow: var(--ig-shadow);
    border-left: 4px solid var(--ig-green);
}

.ig-course-bar__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ig-muted);
}

.ig-course-bar__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--ig-navy);
    line-height: 1.25;
}

.ig-course-bar__badge {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(106, 201, 75, 0.15);
    color: var(--ig-green-dark);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* Tip */
.ig-tip {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: var(--ig-radius-sm);
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
}

.ig-tip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ig-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
}

.ig-tip__body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--ig-navy);
}

.ig-tip__body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1e40af;
}

/* Lessons */
.ig-lessons-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ig-border);
}

/* Table */
.ig-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius-sm);
}

.ig-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ig-surface);
}

.ig-table th,
.ig-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ig-border);
    text-align: left;
    vertical-align: top;
}

.ig-table thead th {
    background: var(--ig-bg);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ig-muted);
    white-space: nowrap;
}

.ig-table tbody tr:last-child td {
    border-bottom: 0;
}

.ig-table tbody tr:hover {
    background: #fafbfc;
}

.ig-table td:first-child {
    color: var(--ig-muted);
    font-size: 13px;
    max-width: 160px;
}

.ig-table td:nth-child(2) strong {
    color: var(--ig-text);
    font-size: 14px;
}

/* Code field */
.ig-code-field {
    min-width: 280px;
}

.ig-code-field__textarea,
.ig-table textarea.ig-code-field__textarea {
    width: 100%;
    min-height: 88px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    background: #f8fafc;
    font-family: ui-monospace, Consolas, Monaco, monospace;
    font-size: 11px;
    line-height: 1.45;
    color: var(--ig-text);
    resize: vertical;
}

.ig-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--ig-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ig-copy-btn:hover {
    background: var(--ig-navy-dark);
}

.ig-copy-btn__icon {
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buttons & links */
.ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--ig-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ig-btn--primary,
.ig-btn--primary:visited {
    background: var(--ig-green);
    color: var(--ig-navy-dark) !important;
    border-color: var(--ig-green);
}

.ig-btn--primary:hover {
    background: var(--ig-green-dark);
    border-color: var(--ig-green-dark);
}

.ig-btn--outline {
    background: transparent;
    color: var(--ig-navy) !important;
    border-color: var(--ig-border);
}

.ig-btn--outline:hover {
    border-color: var(--ig-navy);
    background: var(--ig-bg);
}

.ig-btn--block {
    width: 100%;
}

.ig-link-btn,
.ig-link-btn:visited {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--ig-bg);
    color: var(--ig-navy) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ig-link-btn:hover {
    background: #e2e8f0;
    color: var(--ig-navy-dark) !important;
}

/* Login */
.ig-login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius);
    background: var(--ig-surface);
    box-shadow: var(--ig-shadow-lg);
}

.ig-login-card__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--ig-navy);
    text-align: center;
}

.ig-login-card__subtitle {
    margin: 0 0 28px;
    color: var(--ig-muted);
    text-align: center;
    font-size: 14px;
}

.ig-field {
    margin-bottom: 16px;
}

.ig-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ig-text);
}

.ig-field input[type="text"],
.ig-field input[type="password"],
.ig-field input[type="email"],
.ig-partner select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius-sm);
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ig-field input:focus,
.ig-partner select:focus {
    outline: none;
    border-color: var(--ig-green);
    box-shadow: 0 0 0 3px rgba(106, 201, 75, 0.2);
}

/* Course combobox */
.ig-panel__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--ig-text);
}

.ig-course-combobox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ig-course-combobox__current {
    padding: 14px 16px;
    border: 1px solid rgba(106, 201, 75, 0.4);
    border-radius: var(--ig-radius-sm);
    background: #f7fdf4;
}

.ig-course-combobox__current-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ig-muted);
}

.ig-course-combobox__current-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ig-text);
}

.ig-course-combobox__field {
    position: relative;
}

.ig-course-combobox__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    opacity: 0.45;
    pointer-events: none;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ig-course-combobox__input {
    display: block;
    width: 100%;
    padding: 13px 14px 13px 42px !important;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius-sm);
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

.ig-course-combobox__input:focus {
    outline: none;
    border-color: var(--ig-green);
    box-shadow: 0 0 0 3px rgba(106, 201, 75, 0.2);
}

.ig-course-combobox__meta {
    display: flex;
    align-items: center;
}

.ig-course-combobox__count {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ig-bg);
    color: var(--ig-muted);
    font-size: 13px;
    font-weight: 600;
}

.ig-course-combobox__panel {
    max-height: 300px;
    overflow: auto;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius-sm);
    background: #fff;
    box-shadow: var(--ig-shadow);
}

.ig-partner .ig-course-combobox__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px !important;
}

.ig-partner .ig-course-combobox__item {
    display: block !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
}

.ig-partner .ig-course-combobox__item.is-hidden {
    display: none !important;
}

.ig-partner .ig-course-combobox__item.is-selected .ig-course-combobox__option {
    border-color: rgba(106, 201, 75, 0.5);
    background: #f7fdf4;
    font-weight: 700;
}

.ig-partner .ig-course-combobox__item.is-locked .ig-course-combobox__option {
    color: var(--ig-muted) !important;
}

.ig-partner .ig-course-combobox__option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--ig-bg);
    color: var(--ig-text) !important;
    font-size: 14px;
    text-align: left !important;
    cursor: pointer;
    box-sizing: border-box;
}

.ig-partner .ig-course-combobox__option:hover,
.ig-partner .ig-course-combobox__option:focus {
    border-color: rgba(106, 201, 75, 0.4);
    background: #f7fdf4;
    outline: none;
}

.ig-course-combobox__empty {
    margin: 0;
    padding: 14px 16px;
    color: var(--ig-muted);
}

.ig-course-access-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.ig-course-access-filters--cards {
    margin-top: 4px;
}

.ig-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--ig-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ig-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ig-filter-tab:hover,
.ig-filter-tab.is-active {
    border-color: rgba(106, 201, 75, 0.55);
    background: #f7fdf4;
    color: var(--ig-navy);
}

.ig-filter-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(16, 17, 84, 0.08);
    font-size: 11px;
    font-weight: 800;
}

.ig-filter-tab.is-active .ig-filter-tab__count {
    background: rgba(106, 201, 75, 0.22);
    color: var(--ig-green-dark);
}

.ig-course-card.is-filter-hidden {
    display: none !important;
}

/* Misc */
.ig-muted {
    color: var(--ig-muted);
    font-size: 13px;
}

.ig-empty-state {
    padding: 32px 24px;
    text-align: center;
    color: var(--ig-muted);
    font-size: 15px;
    line-height: 1.5;
}

.ig-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--ig-radius-sm);
    font-size: 14px;
    line-height: 1.5;
}

.ig-notice--warning {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.ig-notice--locked {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ig-notice--locked p {
    margin: 4px 0 0;
}

.ig-notice--info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.ig-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    padding: 14px 18px;
    border-radius: var(--ig-radius-sm);
    background: var(--ig-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--ig-shadow-lg);
}

.ig-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Página inteira — Astra + Gutenberg */
body.ig-partner-page {
    background: var(--ig-bg) !important;
}

body.ig-partner-page #page,
body.ig-partner-page .site,
body.ig-partner-page #content,
body.ig-partner-page .site-content,
body.ig-partner-page .ast-container,
body.ig-partner-page #primary,
body.ig-partner-page .site-main,
body.ig-partner-page article,
body.ig-partner-page .hentry,
body.ig-partner-page .entry-content,
body.ig-partner-page .wp-block-post-content,
body.ig-partner-page .wp-block-shortcode,
body.ig-partner-page .content-area,
body.ig-partner-page .content-bg,
body.ig-partner-page .page-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.ig-partner-page.ast-separate-container .site-content > .ast-container,
body.ig-partner-page.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.ig-partner-page.ast-separate-container #primary,
body.ig-partner-page.ast-separate-container .site-main > article {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.ig-partner-page .wp-block-cover,
body.ig-partner-page .wp-block-cover.alignfull {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.ig-partner-page .entry-header,
body.ig-partner-page .page-header,
body.ig-partner-page .wp-block-post-title {
    display: none !important;
}

body.ig-partner-page #content,
body.ig-partner-page .site-content {
    padding-top: 0 !important;
}

body.ig-partner-page .entry-content > .ig-partner,
body.ig-partner-page .wp-block-shortcode > .ig-partner {
    margin-top: 0;
}

body.ig-partner-page #secondary,
body.ig-partner-page .sidebar,
body.ig-partner-page .widget-area {
    display: none !important;
}

/* Login — centralizado na tela */
body.ig-login-page,
body.ig-login-page #page {
    min-height: 100vh;
    min-height: 100dvh;
}

body.ig-login-page #page {
    display: flex;
    flex-direction: column;
}

body.ig-login-page #content,
body.ig-login-page .site-content,
body.ig-login-page #primary,
body.ig-login-page .site-main,
body.ig-login-page article,
body.ig-login-page .hentry,
body.ig-login-page .entry-content,
body.ig-login-page .wp-block-shortcode {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.ig-login-page .entry-header,
body.ig-login-page .page-header,
body.ig-login-page .wp-block-post-title,
body.ig-login-page .site-header,
body.ig-login-page #masthead,
body.ig-login-page .site-footer,
body.ig-login-page #colophon {
    display: none !important;
}

body.ig-login-page #content,
body.ig-login-page .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 900px) {
    .ig-partner-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ig-partner-hero__user {
        width: 100%;
        flex-wrap: wrap;
    }

    .ig-partner-hero__logout {
        margin-left: auto;
    }

    .ig-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ig-hero-stats__value {
        font-size: 18px;
    }

    .ig-stats {
        grid-template-columns: 1fr;
    }

    .ig-course-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ig-lessons-head {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ig-partner__body {
        margin-top: -12px;
        padding: 0 14px 28px;
    }

    .ig-partner-hero__shell {
        padding: 22px 14px 24px;
    }

    .ig-hero-stats {
        grid-template-columns: 1fr;
    }

    .ig-card {
        padding: 18px;
    }

    .ig-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
