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

html,
body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafb;
}

.container {
    max-width: 448px;
    margin: 0 auto;
    background: #f9fafb;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #f83600;
}

.logo-text {
    font-weight: bold;
    font-size: 1.25rem;
    color: #f83600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logout-btn {
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #dc2626;
    transition: background-color 0.2s;
}

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

.logout-icon {
    width: 20px;
    height: 20px;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #374151;
}

.main-content {
    padding: 1.5rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    margin-bottom: 1rem;
    cursor: pointer;
}

.gradient-card {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.gradient-card-purple {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
}

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

.welcome-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.welcome-subtitle {
    color: #bfdbfe;
    margin-top: 0.25rem;
}

.avatar-large {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-label {
    color: #bfdbfe;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

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

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-card-icon {
    width: 20px;
    height: 20px;
}

.stat-card-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

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

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-code {
    font-size: 0.675rem;
    font-weight: bold;
    color: #2563eb;
    text-align: center;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

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

.activity-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid;
}

.badge-green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-red {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

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

.subject-card {
    border-radius: 0;
    padding: 0.75rem;
    color: white;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.6rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.subject-card:hover {
    opacity: 0.9;
}

.course-code {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    align-self: center;
    white-space: nowrap;
}

.schedule-code {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.65rem;
    opacity: 0.65;
    font-weight: 400;
    white-space: nowrap;
}

.subject-name {
    grid-column: 2;
    grid-row: 2;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.bg-blue {
    background: #3b82f6;
}

.bg-purple {
    background: #a855f7;
}

.bg-green {
    background: #22c55e;
}

.bg-orange {
    background: #f97316;
}

.bg-red {
    background: #ef4444;
}

.bg-pink {
    background: #ec4899;
}

.bg-yellow {
    background: #eab308;
}

.bg-teal {
    background: #14b8a6;
}

.bg-indigo {
    background: #6366f1;
}

.bg-cyan {
    background: #06b6d4;
}

.bg-rose {
    background: #f43f5e;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.subject-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subject-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.subject-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.subject-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.subject-schedule-code {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.subject-details {
    flex: 1;
    min-width: 0;
}

.subject-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.subject-title {
    font-weight: bold;
    color: #1f2937;
}

.subject-code-badge {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.subject-instructor {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.subject-schedule {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.back-btn {
    color: #2563eb;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.term-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.term-header {
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    background: white;
}

.term-header:hover {
    background: #f9fafb;
}

.term-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.term-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: white;
}

.term-icon-blue {
    background: #3b82f6;
}

.term-icon-gray {
    background: #9ca3af;
}

.term-info h4 {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.term-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-score {
    text-align: right;
}

.term-score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.term-score-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.chevron {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.chevron.rotated {
    transform: rotate(180deg);
}

.term-content {
    display: none;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    padding: 1rem;
}

.term-content.expanded {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s;
}

.progress-blue {
    background: #3b82f6;
}

.progress-green {
    background: #22c55e;
}

.progress-yellow {
    background: #eab308;
}

.progress-red {
    background: #ef4444;
}

.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.criteria-item {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s;
}

.criteria-item:hover {
    border-color: #93c5fd;
}

.criteria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.criteria-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.criteria-icon {
    font-size: 1rem;
}

.criteria-info {
    flex: 1;
    min-width: 0;
}

.criteria-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.criteria-weight {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.criteria-date {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.criteria-score {
    text-align: right;
    flex-shrink: 0;
}

.criteria-score-value {
    font-size: 1.125rem;
    font-weight: bold;
}

.criteria-score-percent {
    font-size: 0.75rem;
    color: #6b7280;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    max-width: 448px;
    margin: 0 auto;
    z-index: 100;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.nav-item.active {
    color: #f83600;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-xlarge {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.profile-id {
    color: #bfdbfe;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.profile-tags {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.profile-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

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

.action-btn {
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn-blue {
    background: #eff6ff;
    color: #2563eb;
}

.action-btn-blue:hover {
    background: #dbeafe;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

.login-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #f83600;
}

.login-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    fill: #9ca3af;
    z-index: 1;
}

.form-input-with-icon {
    padding-left: 2.5rem !important;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #f83600;
}

.form-input-wrapper .form-input:focus+.form-input-icon,
.form-input-wrapper:focus-within .form-input-icon {
    fill: #f83600;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f83600;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.login-link {
    color: #f83600;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.app-wrapper {
    display: none;
}

.app-wrapper.show {
    display: block;
}

/* Page Title Styles */
.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Settings Styles */
.settings-content {
    padding: 1.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.settings-item-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.settings-item-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #2563eb;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Help & Support Styles */
.help-content {
    padding: 1.5rem;
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    color: #1f2937;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1rem 1rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.faq-answer.expanded {
    display: block;
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .modal-content {
        max-width: 100%;
        margin: 0 1rem;
    }
}

/* PIN Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-box {
    background: white;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header-pin {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title-pin {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-body-pin {
    padding: 2rem 1.5rem;
    text-align: center;
}

.pin-avatar-section {
    margin-bottom: 1.5rem;
}

.pin-avatar {
    width: 80px;
    height: 80px;
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 0.75rem;
}

.pin-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.pin-user-email {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.pin-instruction {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.pin-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #1f2937;
    transition: all 0.2s ease;
}

.pin-digit:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pin-digit::-webkit-outer-spin-button,
.pin-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pin-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 0.375rem;
}

.pin-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 0.75rem;
}

.pin-btn:hover {
    opacity: 0.9;
}

.pin-btn-primary {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
}

.pin-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.pin-btn-link {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.pin-btn-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Floating Label Styles */
.floating-label-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.floating-label-group .form-input {
    padding: 1.25rem 1rem 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.floating-label-group .form-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.floating-label-group .form-input:focus+.floating-label,
.floating-label-group .form-input:not(:placeholder-shown)+.floating-label {
    top: 0.5rem;
    font-size: 0.7rem;
    color: #667eea;
    font-weight: 600;
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

.floating-label-group .form-input:focus+.floating-label {
    color: #667eea;
}

/* Gender Selector Styling - Isolated */
.gender-selector-container {
    /* margin-bottom: 1.25rem; */
}

.gender-selector-container .gender-selector-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.gender-selector-container .radio-input {
    display: flex;
    width: 100%;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.gender-selector-container .radio-input>* {
    float: left;
}

.gender-selector-container .radio-input input {
    height: 48px;
    width: 48px;
    translate: 0px 24px;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.gender-selector-container .radio-input .card {
    height: 48px;
    width: 48px;
    border: 2px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0.625rem;
    translate: 0px -24px;
    position: relative;
    z-index: 9;
    transition: all 0.2s ease;
    color: #9ca3af;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.gender-selector-container .radio-input .card .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
}

.gender-selector-container .radio-input .card .title {
    display: none;
}

.gender-selector-container .radio-input .i_female:hover~.card.female,
.gender-selector-container .radio-input .i_male:hover~.card.male {
    filter: brightness(1.05);
    border-color: #d1d5db;
}

.gender-selector-container .radio-input .i_female:checked~.card.female {
    border: 2px solid #ec4899;
    color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.gender-selector-container .radio-input .i_male:checked~.card.male {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Checkbox Styling for Registration */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.checkbox-container:has(input:checked) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-container label {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-container label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-container label a:hover {
    text-decoration: underline;
}

/* Register Form Header */
.register-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-form-header .login-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
}

.register-form-header .login-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.register-form-header .login-subtitle {
    font-size: 0.875rem;
}


/* Isolated Announcement Carousel Styles */
.announcement-carousel-wrapper .carousel-section {
    padding: 20px 0;
    overflow: hidden;
    /* background: #ccc; */
    /* linear-gradient(to top, #f83600, #fe8c00); */
    border-radius: 16px;
    margin-bottom: 1rem;
}

.announcement-carousel-wrapper .carousel-header {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-carousel-wrapper .carousel-section .section-title {
    font-size: 18px;
    font-weight: 700;
    /* color: white; */
    margin-bottom: 0;
}

.announcement-carousel-wrapper .view-all-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #374151;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.announcement-carousel-wrapper .view-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.announcement-carousel-wrapper .carousel-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.announcement-carousel-wrapper .carousel-container::-webkit-scrollbar {
    display: none;
}

.announcement-carousel-wrapper .quick-view-card {
    margin-top: 10px;
    flex: 0 0 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.announcement-carousel-wrapper .quick-view-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.announcement-carousel-wrapper .quick-view-card:active {
    transform: translateY(-2px);
}

.announcement-carousel-wrapper .quick-card-header {
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    padding: 16px;
    position: relative;
}

.announcement-carousel-wrapper .unread-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    animation: announcement-pulse 2s infinite;
}

@keyframes announcement-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.announcement-carousel-wrapper .quick-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-right: 20px;
}

.announcement-carousel-wrapper .quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    opacity: 0.95;
}

.announcement-carousel-wrapper .quick-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.announcement-carousel-wrapper .quick-separator {
    opacity: 0.5;
}

.announcement-carousel-wrapper .quick-card-body {
    padding: 16px;
}

.announcement-carousel-wrapper .quick-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.announcement-carousel-wrapper .quick-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.announcement-carousel-wrapper .quick-preview {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-carousel-wrapper .quick-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.announcement-carousel-wrapper .quick-attachments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.announcement-carousel-wrapper .read-more {
    color: #f83600;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-carousel-wrapper .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
}

.announcement-carousel-wrapper .dot {
    width: 6px;
    height: 6px;
    background: rgba(248, 54, 0, 0.4);
    border-radius: 50%;
    transition: all 0.3s;
}

.announcement-carousel-wrapper .dot.active {
    width: 20px;
    border-radius: 3px;
    background: linear-gradient(to right, #f83600, #fe8c00);
}

.announcement-carousel-wrapper .urgency-normal {
    color: #93c5fd;
}

.announcement-carousel-wrapper .urgency-high {
    color: #fca5a5;
}

.announcement-carousel-wrapper .urgency-low {
    color: #86efac;
}

@media (max-width: 380px) {
    .announcement-carousel-wrapper .quick-view-card {
        flex: 0 0 280px;
    }

    .announcement-carousel-wrapper .quick-title {
        font-size: 16px;
    }
}

/* ================================================
   Full View Modal Styles - Isolated
   ================================================ */
.modal-overlay#modalOverlay {
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay#modalOverlay.active {
    display: flex;
}

.modal-overlay .full-view-container {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    margin: auto;
    padding: 0 16px;
}

.modal-overlay .full-view-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: fullViewSlideUp 0.3s ease-out;
}

@keyframes fullViewSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full View Card Header */
.modal-overlay .full-card-header {
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    padding: 20px;
    flex-shrink: 0;
}

.modal-overlay .full-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.modal-overlay .full-view-card .back-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
    margin: 0;
    padding: 0;
}

.modal-overlay .full-view-card .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-overlay .full-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    text-align: left;
    padding: 0;
}

.modal-overlay .share-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.modal-overlay .share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-overlay .full-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.modal-overlay .full-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.modal-overlay .tag-icon {
    width: 14px;
    height: 14px;
}

.modal-overlay .full-separator {
    opacity: 0.6;
}

.modal-overlay .urgency-normal {
    color: #93c5fd;
}

.modal-overlay .urgency-high {
    color: #fca5a5;
    font-weight: 600;
}

.modal-overlay .urgency-low {
    color: #86efac;
}

/* Full View Card Content */
.modal-overlay .full-card-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay .posted-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-overlay .posted-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.modal-overlay .posted-item .icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.modal-overlay .body-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-overlay .body-content p {
    margin-bottom: 16px;
}

.modal-overlay .body-content p:last-child {
    margin-bottom: 0;
}

.modal-overlay .body-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.modal-overlay .body-content ul li {
    margin-bottom: 8px;
    color: #4b5563;
}

.modal-overlay .body-content strong {
    color: #1f2937;
}

/* Attachments & Links Sections */
.modal-overlay .attachments-section {
    margin-bottom: 20px;
}

.modal-overlay .content-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.modal-overlay .content-section-title .icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.modal-overlay .attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-overlay .attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.modal-overlay .attachment-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.modal-overlay .attachment-icon {
    width: 20px;
    height: 20px;
    color: #f83600;
}

.modal-overlay .attachment-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.modal-overlay .links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-overlay .link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #bfdbfe;
}

.modal-overlay .link-item:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.modal-overlay .link-icon {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.modal-overlay .link-name {
    font-size: 13px;
    font-weight: 500;
    color: #1d4ed8;
}

/* Full View Card Footer */
.modal-overlay .full-card-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.modal-overlay .full-card-footer .back-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.modal-overlay .full-card-footer .back-btn:hover {
    background: #e5e7eb;
}

.modal-overlay .acknowledge-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-bottom: 12px;
}

.modal-overlay .acknowledge-btn.unread {
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
}

.modal-overlay .acknowledge-btn.unread:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal-overlay .acknowledge-btn.read {
    background: #d1fae5;
    color: #047857;
}

.modal-overlay .acknowledge-btn.read:hover {
    background: #a7f3d0;
}

.modal-overlay .comments-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-overlay .comments-toggle:hover {
    border-color: #9ca3af;
    color: #4b5563;
    background: #f3f4f6;
}

.modal-overlay .comments-toggle .icon {
    width: 18px;
    height: 18px;
}

.modal-overlay .comments-section {
    display: none;
    margin-top: 12px;
}

.modal-overlay .comments-section.active {
    display: block;
}

.modal-overlay .comment-input {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal-overlay .comment-input:focus {
    outline: none;
    border-color: #f83600;
}

.modal-overlay .comment-input::placeholder {
    color: #9ca3af;
}

/* Responsive Adjustments for Full View Modal */
@media (max-width: 480px) {
    .modal-overlay .full-view-container {
        padding: 0 12px;
    }

    .modal-overlay .full-view-card {
        border-radius: 16px;
        max-height: 90vh;
    }

    .modal-overlay .full-card-header {
        padding: 16px;
    }

    .modal-overlay .full-title {
        font-size: 16px;
    }

    .modal-overlay .full-card-content {
        padding: 16px;
    }

    .modal-overlay .body-content {
        font-size: 14px;
    }
}

.quick-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}