:root {
    --bg-1: #f6f7ef;
    --bg-2: #d8f0ea;
    --text: #11211f;
    --muted: #456260;
    --card: rgba(255, 255, 255, 0.94);
    --border: rgba(17, 33, 31, 0.12);
    --brand: #0f766e;
    --brand-2: #f59e0b;
    --danger: #b91c1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
    color: var(--text);
    background: var(--bg-1);
    position: relative;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, #fff3c4 0%, transparent 35%),
        radial-gradient(circle at 90% 15%, #cff2ff 0%, transparent 35%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
    z-index: -1;
}

.container {
    width: min(960px, 92vw);
    margin: 1.2rem auto 3rem;
}

.hero {
    padding: 0.5rem 0 1rem;
}

.label {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin: 0 0 0.5rem;
    color: var(--brand);
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 6vw, 3rem);
    margin: 0 0 0.5rem;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 700px;
    line-height: 1.55;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.15rem;
    margin-top: 1rem;
    box-shadow: 0 14px 30px rgba(17, 33, 31, 0.06);
}

.muted {
    color: var(--muted);
}

.steps {
    padding-left: 1.2rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.top-header {
    width: min(960px, 92vw);
    margin: 1rem auto 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.2);
    color: #084944;
    font-weight: 700;
}

.header-link {
    text-decoration: none;
    color: #0b4f4a;
    font-weight: 600;
}

.hero-card {
    margin-top: 0.8rem;
}

.hero-chips {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.16);
    color: #0f4f4a;
    font-size: 0.84rem;
    font-weight: 600;
}

.compact-card h2 i,
.field-title i {
    color: #0f766e;
}

.compact-card .steps {
    margin-top: 0.6rem;
}

.hint-accordion {
    margin-top: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 0.2rem 0.75rem;
}

.hint-accordion summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.7rem 0;
}

.field-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.field-hint {
    margin-top: -0.5rem;
    border-left: 3px solid rgba(15, 118, 110, 0.38);
    padding: 0.2rem 0 0.2rem 0.75rem;
}

.field-hint summary {
    cursor: pointer;
    color: #0b4f4a;
    font-weight: 600;
    font-size: 0.9rem;
}

.field-hint p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='url'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='time'],
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 0.85rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

input:focus {
    outline: 2px solid rgba(15, 118, 110, 0.25);
    border-color: var(--brand);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 500;
}

.check-row input {
    margin-top: 0.2rem;
}

button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: linear-gradient(90deg, var(--brand), #0ea5a1);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.resume-link {
    display: inline-block;
    margin-top: 0.7rem;
    color: #0b4f4a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(11, 79, 74, 0.2);
}

.resume-link:hover {
    border-bottom-color: rgba(11, 79, 74, 0.7);
}

.progress-meta {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #dfeceb;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width 0.6s ease;
}

.progress-fill-daily {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.progress-fill-total {
    background: linear-gradient(90deg, #0f766e, #f59e0b);
}

.progress-fill-animated {
    position: relative;
    background-image: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
    background-size: 200% 100%;
    animation: progressFillShift 1.8s linear infinite;
}

.progress-fill-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.08) 0 10px,
        rgba(255, 255, 255, 0.22) 10px 20px
    );
    animation: progressStripeMove 1.2s linear infinite;
}

.tester-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.tester-chip {
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    display: grid;
    gap: 0.2rem;
}

.tester-chip strong {
    font-size: 0.82rem;
}

.tester-chip span {
    font-size: 0.85rem;
}

.tester-chip-done {
    background: rgba(15, 107, 44, 0.1);
    border-color: rgba(15, 107, 44, 0.3);
    color: #0f6b2c;
}

.tester-chip-pending {
    background: rgba(69, 98, 96, 0.08);
    color: #2b4d4b;
}

.admin-container {
    width: min(1420px, 96vw);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(209, 241, 236, 0.38), rgba(255, 255, 255, 0.92));
}

table {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
}

th,
td {
    padding: 0.72rem 0.56rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    font-size: 0.87rem;
}

th {
    background: #0f4f4a;
    color: #d8fffb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.72);
}

tbody tr:hover {
    background: rgba(255, 239, 206, 0.42);
}

td a {
    color: #115e59;
    font-weight: 700;
}

.success-text {
    color: #0f6b2c;
    font-weight: 600;
    margin-bottom: 0;
}

.error-list {
    color: var(--danger);
}

.error-text {
    color: var(--danger);
    font-weight: 600;
}

.admin-top {
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-email {
    margin: 0;
}

.admin-logout-form {
    margin: 0;
}

.button-secondary {
    background: #203b38;
    padding: 0.55rem 0.9rem;
}

.admin-summary {
    margin: 0.9rem 0 1rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.summary-pill {
    border-radius: 13px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.64rem 0.72rem;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.84rem;
}

.summary-pill i {
    font-size: 0.95rem;
}

.summary-pill strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #123a37;
}

.summary-pill span {
    justify-self: end;
    font-weight: 700;
    color: #0f172a;
}

.summary-pill-total {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.65), rgba(255, 255, 255, 0.95));
    border-color: rgba(22, 163, 74, 0.26);
}

.summary-pill-install {
    background: linear-gradient(180deg, rgba(254, 249, 195, 0.68), rgba(255, 255, 255, 0.95));
    border-color: rgba(217, 119, 6, 0.26);
}

.summary-pill-testing {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.72), rgba(255, 255, 255, 0.95));
    border-color: rgba(37, 99, 235, 0.26);
}

.summary-pill-time {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.7), rgba(255, 255, 255, 0.95));
    border-color: rgba(79, 70, 229, 0.25);
}

.alert-settings {
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(199, 210, 254, 0.55), transparent 45%),
        #fff;
    padding: 0.9rem;
    margin: 0.25rem 0 1rem;
}

.alert-settings-head h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.alert-settings-head p {
    margin: 0.35rem 0 0.72rem;
    font-size: 0.88rem;
}

.alert-settings-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.alert-toggle {
    align-self: end;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.toggle-row input[type='checkbox'] {
    margin: 0;
    width: 1rem;
    height: 1rem;
}

.alert-volume-value {
    display: inline-flex;
    justify-content: flex-end;
    font-size: 0.82rem;
    color: #0f172a;
    font-weight: 800;
}

.alert-live-status {
    margin: 0.78rem 0 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.alert-status-ok {
    color: #0f766e;
}

.alert-status-warn {
    color: #b45309;
}

.alert-status-muted {
    color: #475569;
}

.date-window-form {
    margin: 0;
    display: grid;
    gap: 0.35rem;
    min-width: 186px;
}

.window-end-date {
    background: #ecf5ff;
    color: #1f3d7a;
    font-weight: 700;
}

.window-note {
    color: #5a6b80;
    font-size: 0.72rem;
    font-weight: 600;
}

.table-btn {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.48rem 0.62rem;
    font-size: 0.8rem;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(90deg, #0f766e, #0ea5a1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22);
}

.admin-actions {
    display: grid;
    gap: 0.45rem;
    min-width: 88px;
}

.delete-form {
    margin: 0;
}

.button-view {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.button-danger {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
}

.completed-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.36);
    background: rgba(254, 243, 199, 0.88);
    color: #9a3412;
    font-weight: 700;
}

.tester-state {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 1rem;
}

.tester-state-pending {
    background: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #64748b;
}

.tester-state-done {
    background: linear-gradient(135deg, #d1fae5, #bbf7d0);
    border-color: rgba(34, 197, 94, 0.45);
    color: #047857;
}

.tester-state-check {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
}

.footer-links {
    margin-top: 1rem;
    text-align: center;
}

.footer-links a {
    color: #0b4f4a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(11, 79, 74, 0.2);
    padding-bottom: 2px;
}

.footer-links a:hover {
    border-bottom-color: rgba(11, 79, 74, 0.7);
}

.policy-content h2 {
    margin-top: 1.2rem;
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
}

.policy-content p {
    line-height: 1.65;
    margin: 0.55rem 0;
}

.policy-content ul {
    margin: 0.35rem 0 0.7rem;
    padding-left: 1.2rem;
    line-height: 1.65;
}

.whatsapp-float {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #128c7e;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.72rem 0.9rem;
    box-shadow: 0 12px 24px rgba(18, 140, 126, 0.32);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
}

.whatsapp-float:hover {
    background: #0f7a6e;
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #fff;
    color: #128c7e;
}

.whatsapp-icon i {
    font-size: 1.1rem;
}

.iti {
    width: 100%;
}

.app-shell {
    width: min(760px, 94vw);
}

.app-hero-card {
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 237, 213, 0.8), transparent 48%),
        radial-gradient(circle at 15% 0%, rgba(191, 219, 254, 0.7), transparent 42%),
        #fff;
}

.app-hero-chips span {
    background: rgba(30, 64, 175, 0.09);
    border-color: rgba(30, 64, 175, 0.18);
    color: #1d4ed8;
}

.app-tabs-card {
    padding: 0.6rem;
}

.app-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.app-tab-button {
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: rgba(255, 255, 255, 0.85);
    color: #0f4f4a;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-tab-button.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, #0f766e, #0ea5a1);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.app-tab-panel {
    display: none;
}

.app-tab-panel.is-active {
    display: block;
}

.submit-callout {
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.6), rgba(255, 255, 255, 0.95));
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.95rem;
}

.submit-callout p {
    margin: 0;
}

.package-helper {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.package-helper.is-valid {
    color: #047857;
}

.my-app-list {
    display: grid;
    gap: 0.75rem;
}

.my-app-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(254, 243, 199, 0.55), transparent 45%),
        #fff;
    padding: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.my-app-meta h3 {
    margin: 0;
    font-size: 1rem;
}

.my-app-meta p {
    margin: 0.24rem 0 0;
    color: #475569;
    font-size: 0.86rem;
}

.my-app-progress {
    color: #9a3412;
    font-weight: 700;
}

.my-app-view-btn {
    max-width: 180px;
}

.progress-summary-top {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    margin-bottom: 0.95rem;
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    background: rgba(240, 249, 255, 0.96);
    color: #0f4f63;
    font-size: 0.88rem;
    font-weight: 600;
}

.progress-summary-top strong {
    font-size: 1rem;
    color: #0369a1;
}

.dashboard-progress-grid {
    display: grid;
    gap: 0.85rem;
}

.dashboard-progress-panel {
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 0.9rem;
    background: #fff;
}

.dashboard-progress-panel-daily {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
    border-color: rgba(37, 99, 235, 0.18);
}

.dashboard-progress-panel-total {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
    border-color: rgba(15, 118, 110, 0.18);
}

.dashboard-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.dashboard-progress-head h3 {
    margin: 0 0 0.18rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

.dashboard-progress-head p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.dashboard-progress-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: #123a37;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-progress-stats {
    margin-top: 0.72rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    color: #244744;
    font-size: 0.88rem;
}

.dashboard-progress-stats strong {
    color: #0f172a;
}

.dashboard-progress-note {
    margin: 0.68rem 0 0;
    font-size: 0.84rem;
}

.dashboard-notice {
    border: 1px solid rgba(37, 99, 235, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(191, 219, 254, 0.72), transparent 38%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-notice-progress {
    border-color: rgba(14, 116, 144, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(186, 230, 253, 0.76), transparent 38%),
        linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-notice-complete {
    border-color: rgba(22, 163, 74, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(187, 247, 208, 0.72), transparent 38%),
        linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.dashboard-notice-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
}

.dashboard-notice-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.dashboard-notice-progress .dashboard-notice-icon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    box-shadow: 0 10px 22px rgba(14, 116, 144, 0.16);
}

.dashboard-notice-complete .dashboard-notice-icon {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.16);
}

.dashboard-notice-icon i {
    font-size: 1.05rem;
}

.dashboard-notice-label {
    margin-bottom: 0.32rem;
}

.dashboard-notice h2 {
    margin-bottom: 0;
}

.dashboard-notice p:last-child {
    margin: 0;
    color: #1e3a5f;
    line-height: 1.65;
    max-width: 720px;
}

.dashboard-history-wrap table.dashboard-history-table {
    min-width: 0;
    table-layout: fixed;
}

.dashboard-history-table th,
.dashboard-history-table td {
    white-space: normal;
    padding: 0.56rem 0.42rem;
    font-size: 0.78rem;
    vertical-align: middle;
}

.dashboard-history-table th {
    letter-spacing: 0.01em;
    font-size: 0.72rem;
}

.dashboard-history-table th:nth-child(1),
.dashboard-history-table td:nth-child(1) {
    width: 56px;
    text-align: center;
}

.dashboard-history-table th:nth-child(3),
.dashboard-history-table td:nth-child(3) {
    width: 90px;
    text-align: center;
}

.dashboard-history-table th:nth-child(4),
.dashboard-history-table td:nth-child(4) {
    width: 102px;
}

.user-phone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.user-phone-col-1 {
    --user-rgb: 66, 133, 244;
    --user-text: #1a73e8;
}

.user-phone-col-2 {
    --user-rgb: 234, 67, 53;
    --user-text: #d93025;
}

.user-phone-col-3 {
    --user-rgb: 251, 188, 5;
    --user-text: #b26a00;
}

.user-phone-col-4 {
    --user-rgb: 52, 168, 83;
    --user-text: #188038;
}

.user-phone-card {
    border-radius: 14px;
    border: 1px solid rgba(var(--user-rgb, 148, 163, 184), 0.35);
    padding: 0.72rem 0.68rem;
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    text-align: center;
}

.user-phone-card strong {
    font-size: 0.85rem;
    line-height: 1.25;
}

.user-phone-card span {
    font-size: 0.76rem;
    font-weight: 600;
}

.user-phone-card-progress {
    background: rgba(var(--user-rgb, 148, 163, 184), 0.11);
    color: var(--user-text, #475569);
}

.user-phone-card-done {
    background: rgba(var(--user-rgb, 148, 163, 184), 0.2);
    color: var(--user-text, #047857);
}

.user-phone-icon-wrap {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.user-phone-card-progress .user-phone-icon-wrap {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(var(--user-rgb, 148, 163, 184), 0.23);
    animation: phonePulse 1.5s ease-in-out infinite;
}

.user-phone-card-done .user-phone-icon-wrap {
    background: rgba(var(--user-rgb, 148, 163, 184), 0.18);
}

.user-phone-icon {
    font-size: 1.18rem;
}

.user-phone-badge-check,
.user-phone-badge-testing {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid #fff;
}

.user-phone-badge-check {
    background: rgba(var(--user-rgb, 22, 163, 74), 1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.user-phone-badge-testing {
    background: rgba(var(--user-rgb, 37, 99, 235), 1);
    box-shadow: 0 0 0 rgba(var(--user-rgb, 37, 99, 235), 0.6);
    animation: testingPulse 1.4s ease-out infinite;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dashboard-action-btn {
    gap: 0.45rem;
    min-height: 42px;
}

@keyframes phonePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes progressStripeMove {
    0% {
        transform: translateX(-18px);
    }
    100% {
        transform: translateX(18px);
    }
}

@keyframes testingPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--user-rgb, 37, 99, 235), 0.5);
    }
    70% {
        transform: scale(1.18);
        box-shadow: 0 0 0 8px rgba(var(--user-rgb, 37, 99, 235), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--user-rgb, 37, 99, 235), 0);
    }
}

@media (min-width: 760px) {
    .card {
        padding: 1.6rem;
    }

    .progress-meta {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tester-status-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .whatsapp-float {
        right: 22px;
        bottom: calc(22px + env(safe-area-inset-bottom, 0px));
        font-size: 0.9rem;
    }

    .user-phone-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .admin-container {
        width: min(100%, 95vw);
    }

    table {
        min-width: 980px;
    }

    th,
    td {
        padding: 0.62rem 0.45rem;
        font-size: 0.8rem;
    }

    .table-btn {
        font-size: 0.74rem;
    }

    .app-shell {
        width: min(100%, 95vw);
    }

    .my-app-view-btn {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 640px) {
    table {
        min-width: 920px;
    }

    .date-window-form {
        min-width: 170px;
    }

    .tester-state {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.92rem;
    }

    .app-tab-button {
        font-size: 0.9rem;
        padding: 0.66rem 0.5rem;
    }

    .user-phone-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .user-phone-card {
        padding: 0.62rem 0.44rem;
    }

    .user-phone-card strong {
        font-size: 0.74rem;
    }

    .user-phone-card span {
        font-size: 0.72rem;
    }

    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .progress-summary-top {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .dashboard-progress-head {
        flex-direction: column;
    }

    .dashboard-progress-pill {
        width: 100%;
    }

    .dashboard-notice-head {
        gap: 0.7rem;
    }

    .dashboard-notice-icon {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 12px;
    }

}
