/* AMCST Public Styles */
:root {
    --amcst-primary: #308fba;
    --amcst-secondary: #daa520;
}

/* Login Form */
.amcst-login-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.amcst-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.amcst-login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.amcst-login-header p {
    color: #6b7280;
    margin: 0;
}

.amcst-form-group-login {
    margin-bottom: 20px;
}

.amcst-form-group-login label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.amcst-form-group-login input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.amcst-form-group-login input:focus {
    outline: none;
    border-color: var(--amcst-primary);
    box-shadow: 0 0 0 3px rgba(48, 143, 186, 0.1);
}

.amcst-login-submit {
    width: 100%;
    padding: 14px;
    background: var(--amcst-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amcst-login-submit:hover {
    background: #267093;
}

.amcst-login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.amcst-login-links a {
    color: var(--amcst-primary);
    text-decoration: none;
}

.amcst-login-links a:hover {
    text-decoration: underline;
}

/* Member Search */
.amcst-search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.amcst-search-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.amcst-search-header {
    text-align: center;
    margin-bottom: 30px;
}

.amcst-search-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.amcst-search-form {
    display: flex;
    gap: 12px;
}

.amcst-search-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.amcst-search-input:focus {
    outline: none;
    border-color: var(--amcst-primary);
}

.amcst-search-button {
    padding: 14px 32px;
    background: var(--amcst-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amcst-search-button:hover {
    background: #267093;
}

.amcst-search-results {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.amcst-search-results.show {
    display: block;
}

.amcst-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.amcst-result-label {
    font-weight: 500;
    color: #6b7280;
}

.amcst-result-value {
    color: #1f2937;
}

/* Member Dashboard */
.amcst-dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.amcst-dashboard-header {
    background: linear-gradient(135deg, var(--amcst-primary) 0%, #267093 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.amcst-dashboard-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
}

.amcst-dashboard-header p {
    margin: 0;
    opacity: 0.9;
}

.amcst-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .amcst-dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.amcst-dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.amcst-dashboard-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
}

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

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

.amcst-info-label {
    font-weight: 500;
    color: #6b7280;
}

.amcst-info-value {
    color: #1f2937;
}

.amcst-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.amcst-status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.amcst-status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.amcst-status-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.amcst-renewal-button {
    width: 100%;
    padding: 14px;
    background: var(--amcst-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.amcst-renewal-button:hover {
    background: #c79419;
}

/* Alerts */
.amcst-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.amcst-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid #10b981;
}

.amcst-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.amcst-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

/* Registration Summary (Thank You) */
.amcst-registration-summary {
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.amcst-registration-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.amcst-registration-card__header {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 28px;
    padding-bottom: 20px;
}

.amcst-registration-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
    color: var(--amcst-secondary);
    margin: 0 0 6px 0;
}

.amcst-registration-card__header h2 {
    margin: 0;
    font-size: 30px;
    color: #0f172a;
}

.amcst-registration-card__intro {
    margin: 12px 0 0 0;
    color: #475569;
    font-size: 15px;
    max-width: 720px;
}

.amcst-registration-card__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.amcst-registration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.amcst-registration-field {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 110px;
}

.amcst-field-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
}

.amcst-field-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
}

.amcst-registration-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.amcst-registration-section {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(48, 143, 186, 0.04), rgba(255, 255, 255, 0.85));
}

.amcst-registration-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.amcst-registration-section__heading h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.amcst-section-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--amcst-primary);
    box-shadow: 0 0 0 6px rgba(48, 143, 186, 0.15);
}

.amcst-registration-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amcst-registration-list li {
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-weight: 500;
    color: #1e293b;
}

.amcst-emergency-contact {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px dashed rgba(48, 143, 186, 0.4);
}

.amcst-contact-primary {
    font-size: 16px;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.amcst-contact-meta {
    color: #64748b;
    font-weight: 500;
}

.amcst-contact-phone {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--amcst-primary);
}

.amcst-registration-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amcst-pill {
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 16px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.amcst-pill-label {
    font-weight: 600;
    color: #0f172a;
}

.amcst-pill-meta {
    font-size: 13px;
    color: #475569;
}

@media (max-width: 767px) {
    .amcst-registration-card {
        padding: 24px 20px;
    }
    
    .amcst-registration-card__header h2 {
        font-size: 24px;
    }
    
    .amcst-registration-field {
        min-height: auto;
    }
}

/* Loading */
.amcst-loading {
    text-align: center;
    padding: 40px;
}

.amcst-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--amcst-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
    .amcst-login-container {
        padding: 30px 20px;
    }
    
    .amcst-search-box {
        padding: 30px 20px;
    }
    
    .amcst-search-form {
        flex-direction: column;
    }
    
    .amcst-dashboard-header {
        padding: 30px 20px;
    }
    
    .amcst-dashboard-card {
        padding: 20px;
    }
}

/* Forgot Password */
.amcst-forgot-password-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.amcst-forgot-password-header {
    text-align: center;
    margin-bottom: 30px;
}

.amcst-forgot-password-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.amcst-forgot-password-header p {
    color: #6b7280;
    margin: 0;
}

.amcst-forgot-form {
    margin-bottom: 20px;
}

.amcst-form-hint {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.amcst-resend-link {
    text-align: center;
    margin-top: 16px;
}

.amcst-resend-link a {
    color: var(--amcst-primary);
    text-decoration: none;
    font-size: 14px;
}

.amcst-resend-link a:hover {
    text-decoration: underline;
}

.amcst-success-message {
    text-align: center;
    padding: 30px;
}

.amcst-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.amcst-success-message h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.amcst-success-message p {
    color: #6b7280;
    margin: 0 0 24px 0;
}

/* Profile Edit Form */
.amcst-edit-profile-container {
    margin-top: 30px;
}

.amcst-edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 767px) {
    .amcst-edit-form-grid {
        grid-template-columns: 1fr;
    }
    
    .amcst-forgot-password-container {
        padding: 30px 20px;
    }
}

.amcst-form-group {
    margin-bottom: 16px;
}

.amcst-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.amcst-form-group input,
.amcst-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.amcst-form-group input:focus,
.amcst-form-group select:focus {
    outline: none;
    border-color: var(--amcst-primary);
    box-shadow: 0 0 0 3px rgba(48, 143, 186, 0.1);
}

.amcst-form-group.full-width {
    grid-column: 1 / -1;
}

.amcst-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.amcst-btn-primary {
    background: var(--amcst-primary);
    color: white;
}

.amcst-btn-primary:hover {
    background: #267093;
}

.amcst-btn-secondary {
    background: #6b7280;
    color: white;
}

.amcst-btn-secondary:hover {
    background: #4b5563;
}

.amcst-btn-outline {
    background: white;
    color: var(--amcst-primary);
    border: 2px solid var(--amcst-primary);
}

.amcst-btn-outline:hover {
    background: var(--amcst-primary);
    color: white;
}

/* Dashboard Tabs */
.amcst-dashboard-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
}

.amcst-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.amcst-tab-btn:hover {
    color: var(--amcst-primary);
}

.amcst-tab-btn.active {
    color: var(--amcst-primary);
    border-bottom-color: var(--amcst-primary);
}

.amcst-tab-content {
    display: none;
}

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

/* Toast Messages */
.amcst-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.amcst-toast {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.amcst-toast-success {
    background: #10b981;
    color: white;
}

.amcst-toast-error {
    background: #ef4444;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Enhanced Dashboard Styles
   ======================================== */

/* Dashboard Header Enhanced */
.amcst-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.amcst-header-content h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.amcst-header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

.amcst-member-id-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Alert Prominent */
.amcst-alert-prominent {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.amcst-alert-icon {
    flex-shrink: 0;
}

.amcst-alert-icon svg {
    width: 24px;
    height: 24px;
}

.amcst-alert-content {
    flex: 1;
}

.amcst-alert-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.amcst-alert-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.amcst-alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-left: 4px solid #3b82f6;
}

.amcst-btn-warning {
    background: var(--amcst-secondary);
    color: white;
}

.amcst-btn-warning:hover {
    background: #c79419;
    color: white;
}

/* Stats Grid */
.amcst-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .amcst-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.amcst-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f0f0f0;
}

.amcst-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amcst-stat-icon svg {
    width: 24px;
    height: 24px;
}

.amcst-stat-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.amcst-stat-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.amcst-stat-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.amcst-stat-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.amcst-stat-icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.amcst-stat-content {
    display: flex;
    flex-direction: column;
}

.amcst-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.amcst-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.amcst-status-text-active {
    color: #059669;
}

.amcst-status-text-pending {
    color: #d97706;
}

.amcst-status-text-expired {
    color: #dc2626;
}

/* Card Header Enhanced */
.amcst-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.amcst-card-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
}

.amcst-card-header h2 svg {
    color: var(--amcst-primary);
}

.amcst-card-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Badge */
.amcst-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
}

.amcst-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Info Grid */
.amcst-info-grid {
    display: flex;
    flex-direction: column;
}

/* Family List */
.amcst-family-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amcst-family-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.amcst-family-avatar {
    width: 40px;
    height: 40px;
    background: var(--amcst-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.amcst-family-info {
    display: flex;
    flex-direction: column;
}

.amcst-family-name {
    font-weight: 600;
    color: #1f2937;
}

.amcst-family-meta {
    font-size: 13px;
    color: #6b7280;
}

.amcst-empty-state {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Status Badge Large */
.amcst-status-badge-lg {
    font-size: 16px;
    padding: 10px 20px;
}

.amcst-status-display {
    text-align: center;
    margin-bottom: 20px;
}

/* Card Action */
.amcst-card-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

/* Payment List */
.amcst-payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.amcst-payment-info {
    display: flex;
    flex-direction: column;
}

.amcst-payment-date {
    font-weight: 500;
    color: #1f2937;
}

.amcst-payment-method {
    font-size: 13px;
    color: #6b7280;
}

.amcst-payment-amount {
    font-weight: 700;
    font-size: 16px;
}

.amcst-payment-amount.success {
    color: #059669;
}

.amcst-payment-amount.pending {
    color: #d97706;
}

/* Action Buttons */
.amcst-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amcst-btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Fee Breakdown */
.amcst-fee-breakdown {
    display: flex;
    flex-direction: column;
}

.amcst-fee-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.amcst-fee-label {
    color: #6b7280;
}

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

.amcst-fee-total {
    background: #f9fafb;
    margin: 12px -30px -30px;
    padding: 16px 30px;
    border-radius: 0 0 12px 12px;
}

.amcst-fee-total .amcst-fee-label {
    font-weight: 600;
    color: #1f2937;
}

.amcst-fee-total .amcst-fee-value {
    font-size: 20px;
    color: var(--amcst-primary);
}

/* Fee Info Content */
.amcst-fee-info-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 16px 0 8px 0;
}

.amcst-fee-info-content h4:first-child {
    margin-top: 0;
}

.amcst-fee-info-content ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
    font-size: 14px;
}

.amcst-fee-info-content li {
    margin-bottom: 4px;
}

.amcst-fee-note {
    margin-top: 16px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
}

/* Payment Summary */
.amcst-payment-summary {
    display: flex;
    flex-direction: column;
}

.amcst-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.amcst-summary-label {
    color: #6b7280;
}

.amcst-summary-value {
    font-weight: 600;
    font-size: 18px;
    color: #1f2937;
}

.amcst-summary-paid .amcst-summary-value {
    color: #059669;
}

.amcst-summary-due.has-due .amcst-summary-value {
    color: #dc2626;
}

/* Payment Options */
.amcst-payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amcst-payment-option {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.amcst-option-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.amcst-option-content strong {
    display: block;
    color: #1f2937;
    margin-bottom: 4px;
}

.amcst-option-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Table */
.amcst-table-responsive {
    overflow-x: auto;
}

.amcst-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.amcst-table th {
    text-align: left;
    padding: 12px;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.amcst-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
}

.amcst-table tr:last-child td {
    border-bottom: none;
}

.amcst-table-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.amcst-table-status-completed,
.amcst-table-status-processing {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.amcst-table-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.amcst-table-status-failed,
.amcst-table-status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Form Section Title */
.amcst-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 30px 0 16px 0;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.amcst-input-disabled {
    background: #f3f4f6 !important;
    cursor: not-allowed;
}

.amcst-form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
}

/* Settings Form */
.amcst-settings-form {
    max-width: 400px;
}

/* Help Content */
.amcst-help-content {
    color: #6b7280;
    font-size: 14px;
}

.amcst-help-content p {
    margin: 0 0 16px 0;
}

.amcst-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.amcst-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
}

.amcst-contact-item svg {
    color: var(--amcst-primary);
    flex-shrink: 0;
}

.amcst-office-hours {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Tabs Enhanced */
.amcst-dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.amcst-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    white-space: nowrap;
}

.amcst-tab-btn svg {
    width: 18px;
    height: 18px;
}

/* Spinner inline */
.amcst-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-width: 2px;
}

/* Responsive Enhancements */
@media (max-width: 767px) {
    .amcst-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .amcst-header-content h1 {
        font-size: 24px;
    }
    
    .amcst-alert-prominent {
        flex-direction: column;
        text-align: center;
    }
    
    .amcst-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .amcst-tab-btn svg {
        display: none;
    }
    
    .amcst-form-actions {
        flex-direction: column;
    }
    
    .amcst-fee-total {
        margin: 12px -20px -20px;
        padding: 16px 20px;
    }
}

/* ========================================
   Family Member Management
   ======================================== */

/* Family Member Card */
.amcst-family-member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.amcst-family-member-card:hover {
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.amcst-family-member-card:last-child {
    margin-bottom: 0;
}

.amcst-family-member-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.amcst-family-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amcst-family-contact,
.amcst-family-contact-info {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.amcst-family-dob {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}

.amcst-family-member-actions {
    display: flex;
    gap: 8px;
}

/* Icon Buttons */
.amcst-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amcst-btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.amcst-btn-icon.amcst-btn-edit-family:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.amcst-btn-icon.amcst-btn-delete-family:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.amcst-btn-icon svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Modal Styles
   ======================================== */

.amcst-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.amcst-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.amcst-modal-content.amcst-modal-lg {
    max-width: 700px;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    animation: modalSlideIn 0.3s ease;
}

.amcst-modal-sm {
    max-width: 400px;
}

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

.amcst-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.amcst-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.amcst-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amcst-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.amcst-modal-body {
    padding: 24px;
}

.amcst-modal-body p {
    margin: 0 0 12px;
    color: #374151;
}

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

.amcst-modal-content .amcst-form-group {
    padding: 0 24px;
    margin-bottom: 20px;
}

.amcst-modal-content .amcst-edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
}

.amcst-modal-content .amcst-edit-form-grid .amcst-form-group {
    padding: 0;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .amcst-modal-content .amcst-edit-form-grid {
        grid-template-columns: 1fr;
    }
}

.amcst-modal-content .amcst-form-group:first-of-type {
    padding-top: 24px;
}

.amcst-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

/* Text Utilities */
.amcst-text-muted {
    color: #6b7280;
    font-size: 14px;
}

/* Button Danger */
.amcst-btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
}

.amcst-btn-danger:hover {
    background: #b91c1c;
}

/* Mobile Modal */
@media (max-width: 767px) {
    .amcst-modal {
        padding: 10px;
    }
    
    .amcst-modal-content {
        max-height: 85vh;
    }
    
    .amcst-modal-header,
    .amcst-modal-body,
    .amcst-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .amcst-modal-content .amcst-form-group {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .amcst-family-member-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .amcst-family-member-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

