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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #faf7f0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#app {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
}

.screen {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 80px;
}

.screen.hidden {
    display: none;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.brand-header .subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #334155;
}

.description strong {
    font-weight: 600;
}

.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-dark {
    background: #1f2937;
    color: white;
}

.btn-dark:hover {
    background: #111827;
}

.btn-dark:active {
    background: #000000;
}

.btn-gold {
    background: #c6a24d;
    color: white;
}

.btn-gold:hover {
    background: #b28f40;
}

.btn-gold:active {
    background: #a27f35;
}

.btn-outline {
    background: white;
    color: #334155;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}

.btn-outline:hover {
    background: #f1f5f9;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #475569;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.demo-info {
    padding: 0.75rem;
    background: #e0f2fe;
    border-radius: 0.5rem;
    border: 1px solid #bae6fd;
    margin-top: 0.5rem;
}

.demo-info small {
    font-size: 0.75rem;
    color: #0369a1;
    line-height: 1.5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #dc2626;
}

.dashboard-content {
    padding: 1rem;
}

.dashboard-content h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard-card h3 {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.dashboard-number {
    font-size: 2rem;
    font-weight: 700;
    color: #c6a24d;
    margin: 0.5rem 0;
}

.dashboard-card .btn {
    margin-top: 0.75rem;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.copyright {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    color: #94a3b8;
    text-align: center;
}

@media (min-width: 768px) {
    #app {
        max-width: 480px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 375px;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    z-index: 10;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #a7f3d0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    border-color: #475569;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.file-upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.file-upload-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-upload-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.file-name {
    font-size: 0.75rem;
    color: #64748b;
}

.btn-file-select {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: #c6a24d;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.btn-file-select:hover {
    background: #b28f40;
}

.btn-file-select:active {
    background: #a27f35;
}

.btn-file-select input[type="file"] {
    display: none;
}

/* Dashboard Sections */
.brand-header {
    position: relative;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 0.25rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    color: #334155;
    cursor: pointer;
    font-size: 1rem;
}

.btn-logout {
    position: absolute;
    right: 0;
    top: 0.25rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    color: #991b1b;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.dashboard-card {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 1.25rem;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #c6a24d 0%, #d4b166 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-icon {
    font-size: 2.25rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #faf7f0 0%, #f5f0e6 100%);
    border-radius: 1rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.card-arrow {
    font-size: 1.25rem;
    color: #cbd5e1;
    transition: all 0.3s;
    flex-shrink: 0;
}

.dashboard-card:hover .card-arrow {
    color: #c6a24d;
    transform: translateX(4px);
}

.dashboard-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Offers & Academy Lists */
#offers-list, #academy-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #faf7f0 100%);
    border: 1px solid #e5dcc8;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(198, 162, 77, 0.15);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 162, 77, 0.25);
}

.offer-card-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.offer-logo {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 0.25rem;
}

.academy-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.academy-card-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.academy-logo {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.academy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 0.25rem;
}

.offer-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.offer-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.offer-qr-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #f8f9fa;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offer-qr-btn:hover {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

.academy-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.academy-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.academy-enroll-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #c6a24d;
    color: white;
    border: 1px solid #c6a24d;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.academy-enroll-btn:hover {
    background: #b8964a;
    border-color: #b8964a;
}

.academy-enrolled-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: not-allowed;
}

/* genomeXlab Styles */
.genomex-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.genomex-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.genomex-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.genomex-buttons .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.75rem;
    text-align: center;
}

.flex-1 {
    flex: 1;
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover {
    background: #a93226;
}

.audio-player {
    width: 100%;
    margin: 0.5rem 0;
}

.genomex-report {
    background: #f8f9fa;
    border-radius: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-header {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.report-gf-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.gf-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.gf-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.gf-desc {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.gf-prob {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0.95;
}

.report-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.report-axes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.axis-card {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.axis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.axis-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.axis-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}

.axis-bar {
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.axis-bar-fill {
    height: 100%;
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

.model-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-card {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.model-icon {
    font-size: 1.25rem;
}

.model-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.model-card-body {
    text-align: right;
}

.model-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.model-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

.report-footer {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.report-warning {
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.report-note {
    font-size: 0.8125rem;
    color: #78350f;
    line-height: 1.5;
}

.h5-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.h5-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
}

.h5-icon {
    font-size: 1.125rem;
    color: #16a34a;
    font-weight: 700;
}

.h5-name {
    font-size: 0.875rem;
    color: #166534;
    font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.nav-label {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
}

.nav-btn:hover {
    color: #c6a24d;
}

.nav-btn:active {
    transform: scale(0.95);
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Legacy button styles */
.btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
}

/* QR Modal */
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.qr-content {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.125rem;
    margin: 1rem auto;
    width: fit-content;
}

.qr-cell {
    width: 1rem;
    height: 1rem;
}

.qr-cell.black {
    background: black;
}

.qr-cell.white {
    background: white;
    border: 1px solid #e2e8f0;
}

/* Profile Styles */
.profile-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #faf7f0;
    border-radius: 0.75rem;
    border: 1px solid #e5dcc8;
}

.profile-info-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.profile-info-value {
    font-size: 0.9375rem;
    color: #1f2937;
    font-weight: 600;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #faf7f0 100%);
    border: 1px solid #e5dcc8;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.profile-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(198, 162, 77, 0.15);
}

.profile-item-info {
    flex: 1;
}

.profile-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.profile-item-desc {
    font-size: 0.8125rem;
    color: #64748b;
}

.profile-item-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-used {
    background: #dbeafe;
    color: #1e40af;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

.profile-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Admin & Company Panel Styles */
.admin-panel, .company-panel {
    min-height: 100vh;
    background: linear-gradient(to bottom, white 0%, #faf7f0 100%);
    padding: 1rem;
}

.admin-header, .company-header {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-header h1, .company-header h1 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0.5rem 0;
}

.admin-content, .company-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c6a24d;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card-small {
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card-small .stat-value {
    font-size: 1.5rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #c6a24d;
    border-bottom-color: #c6a24d;
}

.tab-content {
    display: none;
}

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

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.company-card, .enrollment-card, .discount-usage-card, .discount-card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.company-info h4 {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.company-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.company-actions, .discount-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.section-card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-card h3 {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.discount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.discount-header h4 {
    font-size: 1rem;
    color: #1f2937;
    margin: 0;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.8125rem;
}

@media (max-width: 375px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-small {
        grid-template-columns: 1fr;
    }
}