/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f6f6f6;
}

/* ============================================
   AUTHENTICATION PAGES (Login, Register, Forgot Password)
   ============================================ */

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #1a1a1a;
}

.auth-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
}

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

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000000;
}

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

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.auth-form textarea {
    min-height: 80px;
    resize: vertical;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #00B67A;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #00B67A;
    text-decoration: none;
    font-weight: 500;
}

/* ============================================
   BUTTONS & FORM ELEMENTS
   ============================================ */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: #000000;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #333333;
}

.btn-secondary {
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

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

.btn-success {
    background: #00B67A;
    color: white;
}

.btn-success:hover {
    background: #009966;
}

/* ============================================
   MESSAGES & ALERTS
   ============================================ */

/* Messages */
.error-message,
.success-message {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background: #e8f8f2;
    color: #00B67A;
    border: 1px solid #00B67A;
}

/* ============================================
   DASHBOARD PAGE LAYOUT
   ============================================ */

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #1a1a1a;
    color: white;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(0, 182, 122, 0.1);
    transition: width 0.3s ease;
    z-index: 0;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: white;
    border-left-color: #00B67A;
    transform: translateX(5px);
}

.nav-item.active {
    color: white;
    border-left: 3px solid #00B67A;
    background: rgba(0, 182, 122, 0.15);
}

.nav-item span {
    margin-right: 10px;
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-item:hover span {
    transform: scale(1.1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.text-muted {
    color: #999;
    font-size: 12px;
}

.content-body {
    padding: 30px;
    flex: 1;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ============================================
   STATS & DASHBOARD COMPONENTS
   ============================================ */

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 40px;
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 32px;
    color: #00B67A;
}

.stat-info p {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

/* Section */
.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Card */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.card-body {
    padding: 20px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #00B67A;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-success {
    background: #e8f8f2;
    border: 1px solid #00B67A;
    color: #006644;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group .btn {
    width: auto;
}

/* ============================================
   TABLES & DATA DISPLAY
   ============================================ */

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

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   ADMIN PAGE COMPONENTS
   ============================================ */

/* Issues Grid - Admin Page */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.issues-grid > div h3 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #00B67A;
    padding-bottom: 0.25rem;
}

.issues-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issues-grid li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    word-break: break-word;
}

.issues-grid li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .issues-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .issues-grid > div {
        flex: 0 0 250px;
        min-width: 250px;
    }
}

/* Invoice action buttons container */
.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.85rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Invoice action buttons - stack vertically on mobile */
    .invoice-actions {
        flex-direction: column;
        min-width: 100px;
    }
    
    .invoice-actions .btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f7fa;
    font-weight: 600;
    color: #555;
}

/* ============================================
   LOADING & UTILITY STATES
   ============================================ */

/* Loading */
.loading {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* ============================================
   RESPONSIVE - GENERAL LAYOUT
   ============================================ */

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        align-items: flex-start;
        margin-top: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER SECTIONS
   ============================================ */

/* Footer */
.app-footer {
    text-align: center;
    padding: 0.75rem;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.75rem;
    margin-top: auto;
}

/* Detailed Footer */
.app-footer-detailed {
    padding: 2rem 1.5rem 1rem;
    background: #1a1a1a;
    color: #e0e0e0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section:last-child {
    align-items: center;
    text-align: center;
}

.footer-title {
    color: #00B67A;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon svg {
    width: 18px;
    height: 18px;
    fill: #00B67A;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #00B67A;
}

.footer-anpc-logos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.footer-anpc-logos a {
    display: block;
    transition: opacity 0.2s;
}

.footer-anpc-logos a:hover {
    opacity: 0.8;
}

.footer-anpc-logos img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-anpc-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-anpc-links li {
    font-size: 0.85rem;
}

.footer-anpc-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-anpc-links a:hover {
    color: #00B67A;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-anpc-logos {
        flex-wrap: wrap;
    }
    
    .footer-anpc-logos img {
        height: 50px;
    }
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

/* Profile Page - Danger Zone */
.danger-zone {
    border-color: #dc3545;
}

.danger-zone .card-header {
    background-color: #fff5f5;
    border-bottom: 1px solid #dc3545;
}

.danger-zone .card-header h2 {
    color: #dc3545;
}

.danger-zone .card-body {
    background-color: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.text-warning {
    color: #ff9800;
}

/* ============================================
   PAGE HEADERS & CONTENT WRAPPERS
   ============================================ */

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Content Header - Compact like Dashboard */
.content-header {
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.content-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.content-header .user-info {
    font-size: 14px;
    color: #666;
}

.content-header .user-info .text-muted {
    color: #999;
}

/* Content Body - Compact padding */
.content-body {
    padding: 1.5rem;
    background: #f6f6f6;
}

/* ============================================
   FORM LAYOUTS & INPUT GROUPS
   ============================================ */

/* Compact Cards - Reduced spacing */
.compact-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.compact-card:last-child {
    margin-bottom: 0;
}

.compact-card .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.compact-card .card-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.compact-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.compact-card .btn {
    min-width: 160px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1rem;
    margin-bottom: 0.75rem;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid .form-control {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 14px;
}

/* Password form - single column, compact */
.password-form-group {
    margin-bottom: 1rem;
}

.password-form-group:last-of-type {
    margin-bottom: 0.75rem;
}

.password-form-group .form-control {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 14px;
}

/* Read-only and disabled fields styling */
.form-control[readonly],
.form-control:read-only {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #e0e0e0;
    pointer-events: none;
    user-select: none;
}

.form-control[disabled],
.form-control:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group small.text-muted {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ============================================
   PROFILE PAGE - DANGER ZONE (Account Deletion)
   ============================================ */

/* Danger Zone Styling - Compact */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .profile-danger {
    margin-top: 16px;
  }

  .profile-grid > .compact-card {
    margin-bottom: 0;
  }

  @media (max-width: 992px) {
    .profile-grid {
      grid-template-columns: 1fr;
    }
  }

.danger-zone {
    border: 2px solid #ffebee;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.danger-zone .card-header {
    background: #ffebee;
    border-bottom: 2px solid #ffcdd2;
}

.danger-zone .card-header h2 {
    color: #c62828;
}

.danger-zone .card-body h3 {
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.danger-zone .card-body p {
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.danger-zone .btn-danger {
    min-width: 180px;
    margin-top: 0.75rem;
}

/* ============================================
   RESPONSIVE - PROFILE PAGE
   ============================================ */

/* Compact Layout Responsive */
@media (max-width: 768px) {
    .content-header {
        padding: 1rem;
    }
    
    .content-body {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .compact-card .card-header {
        padding: 0.875rem 1rem;
    }
    
    .compact-card .card-body {
        padding: 1rem;
    }
    
    .compact-card .btn {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .content-header h1 {
        font-size: 20px;
    }
    
    .content-body {
        padding: 0.75rem;
    }
}

/* ============================================
   SUBSCRIPTION PAGE - SINGLE BOX LAYOUT
   ============================================ */

.sub-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    padding: 1.25rem;
    margin-bottom: 16px;
}

.sub-single-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.sub-left-col,
.sub-right-col,
.sub-history-col {
    padding: 0.25rem 0.5rem;
}

.sub-left-col {
    display: flex;
    flex-direction: column;
}

.sub-right-col {
    display: flex;
    flex-direction: column;
}

.sub-divider {
    width: 1px;
    background: #e5e7eb;
    align-self: stretch;
    margin: 0 1.25rem;
}

.sub-divider-dashed {
    background: none;
    border-left: 1px dashed #d0d0d0;
}

.sub-col-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.sub-cancel-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.sub-cancel-section .text-muted {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.profile-danger-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #dc3545;
    margin: 0 0 0.5rem 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .sub-single-box {
        grid-template-columns: minmax(220px, 1fr) auto 1.2fr;
    }

    .sub-divider-dashed {
        display: none;
    }

    .sub-history-col {
        grid-column: 1 / -1;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px dashed #e0e0e0;
    }
}

@media (max-width: 992px) {
    .sub-single-box {
        grid-template-columns: 1fr;
    }

    .sub-divider {
        width: 100%;
        height: 1px;
        margin: 1rem 0;
    }

    .sub-divider-dashed {
        display: none;
    }

    .sub-history-col {
        grid-column: 1;
        margin-top: 0;
        padding-top: 1rem;
        border-top: 1px dashed #e0e0e0;
    }
}

/* ============================================
   SUBSCRIPTION PAGE - INFO CARDS
   ============================================ */

/* Subscription Page - Card Display */
.subscription-info, .payment-method-info {
    padding: 1rem 0;
}

/* ============================================
   PROFILE PAGE - ROUNDED INPUTS & ALIGNED BUTTONS
   ============================================ */

/* Rounded inputs on profile page */
#profileForm .form-control,
#passwordForm .form-control {
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#profileForm .form-control:focus,
#passwordForm .form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    outline: none;
}

#profileForm .form-control[readonly],
#profileForm .form-control:read-only {
    border-radius: 12px;
    background-color: #f5f5f5;
}

/* Profile columns: align buttons at same height */
.profile-page #passwordForm {
    padding-top: 0.15rem;
}

.profile-page #passwordForm .password-form-group {
    margin-bottom: 1.35rem;
}

.profile-page #passwordForm .password-form-group:last-of-type {
    margin-bottom: 1.1rem;
}

/* Activity column */
.sub-activity-col {
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.82rem;
    color: #444;
}

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

.activity-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.activity-text {
    flex: 1;
}

.activity-text strong {
    display: block;
    font-size: 0.82rem;
    color: #333;
    margin-bottom: 2px;
}

.activity-date {
    font-size: 0.72rem;
    color: #999;
}

.activity-empty {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 2rem 0;
}

/* ============================================
   DELETE ACCOUNT MODAL
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    text-align: center;
}

.modal-box .modal-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.modal-box h3 {
    font-size: 1.2rem;
    color: #c62828;
    margin-bottom: 0.75rem;
}

.modal-box p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-box .modal-warning {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 10px;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.82rem;
    color: #e65100;
}

.modal-box .modal-confirm-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0.75rem 0;
    transition: border-color 0.2s;
}

.modal-box .modal-confirm-input:focus {
    outline: none;
    border-color: #dc3545;
}

.modal-box .modal-confirm-input.invalid {
    border-color: #dc3545;
    animation: shake 0.3s ease;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.modal-buttons .btn {
    flex: 1;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.modal-buttons .btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-buttons .btn-cancel:hover {
    background: #e0e0e0;
}

.modal-buttons .btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-buttons .btn-delete:hover {
    background: #c62828;
}

.modal-buttons .btn-delete:disabled {
    background: #e0a0a5;
    cursor: not-allowed;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

/* Profile 3-column grid override */
.profile-page .sub-single-box {
    grid-template-columns: minmax(220px, 1.2fr) auto 1fr auto 1fr;
    align-items: start;
}

@media (max-width: 1200px) {
    .profile-page .sub-single-box {
        grid-template-columns: minmax(220px, 1fr) auto 1fr;
    }

    .profile-page .sub-activity-col {
        grid-column: 1 / -1;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px dashed #e0e0e0;
    }
}

@media (max-width: 992px) {
    .profile-page .sub-single-box {
        grid-template-columns: 1fr;
    }

    .profile-page .sub-activity-col {
        grid-column: 1;
    }
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

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

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    font-weight: 500;
    color: #333;
}

/* .card-display, .card-brand, .card-number, .card-details — defined in SUBSCRIPTION PAGE STYLES section below */

/* Badge Colors */
.badge-success {
    background-color: #00B67A;
    color: white;
}

.badge-warning {
    background-color: #ff9800;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* ============================================
   SUBSCRIPTION PAGE - RENEWAL MODAL
   ============================================ */

/* Force Renewal Modal */
.renewal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.renewal-modal.show {
    display: flex;
}

.renewal-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.renewal-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.renewal-modal-header h2 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.renewal-modal-body {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.renewal-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-close-modal {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-close-modal:hover {
    background: #5a6268;
}

/* Form Hints */
.input-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

input::placeholder {
    color: #bbb;
}

input:focus {
    border-color: #00B67A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 182, 122, 0.1);
}

.auth-page-footer {
    text-align: center;
    padding: 0.75rem;
    color: #333;
    font-size: 0.75rem;
    margin-top: 2rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Utility Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

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

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.color-gray { color: #666; }
.color-light-gray { color: #999; }

.font-small { font-size: 0.85rem; }
.font-tiny { font-size: 0.75rem; }
.font-medium { font-size: 0.9rem; }

.font-weight-600 { font-weight: 600; }

/* ============================================
   PASSWORD & VALIDATION RULES
   ============================================ */

/* Password Rules */
.password-rules {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.password-rules-title {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.password-rule {
    color: #999;
}

/* ============================================
   LINKS & NAVIGATION
   ============================================ */

/* Links */
.link-primary {
    color: #00B67A;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* ============================================
   INVOICE PAGE - ACTION BUTTONS
   ============================================ */

/* Invoice Action Buttons */
.btn-view {
    background: #00B67A;
    color: white;
    border: none;
    margin-right: 0.5rem;
}

.btn-view:hover {
    background: #000000;
}

.btn-excel {
    background: #1a7f64;
    color: white;
    border: none;
    margin-right: 0.25rem;
}

.btn-excel:hover {
    background: #00B67A;
}

.btn-csv {
    background: #1a1a1a;
    color: white;
    border: none;
}

.btn-csv:hover {
    background: #00B67A;
}

.btn-close {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    background: #1a1a1a;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 10;
}

.btn-close:hover {
    background: #00B67A;
}

.btn-print {
    background: #00B67A;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-print:hover {
    background: #000000;
}

.btn-download-excel {
    background: #1a7f64;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-download-excel:hover {
    background: #000000;
}

.btn-download-csv {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-download-csv:hover {
    background: #00B67A;
}

/* ============================================
   INVOICE PAGE - MODAL & PREVIEW (Redesigned)
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.show {
    display: flex;
}

/* Invoice Modal Container */
.inv-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 95vw;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: invSlideIn 0.3s ease;
}

@keyframes invSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Header */
.inv-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.inv-modal__header-left {
    display: flex;
    align-items: center;
}

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

.inv-modal__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inv-modal__logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #00B67A 0%, #00e676 100%);
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
}

.inv-modal__brand {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.inv-modal__brand-sub {
    font-size: 0.78rem;
    opacity: 0.65;
}

.inv-modal__close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.inv-modal__close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.inv-badge {
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-badge--green {
    background: rgba(0, 182, 122, 0.2);
    color: #00e676;
}

/* Modal Body */
.inv-modal__body {
    padding: 2rem;
    max-height: 65vh;
    overflow-y: auto;
}

.inv-modal__body::-webkit-scrollbar {
    width: 6px;
}
.inv-modal__body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.inv-modal__body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Loading State */
.inv-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #888;
    gap: 1rem;
}

.inv-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #00B67A;
    border-radius: 50%;
    animation: invSpin 0.7s linear infinite;
}

@keyframes invSpin {
    to { transform: rotate(360deg); }
}

/* Info Row - Top cards */
.inv-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.inv-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #eef0f3;
}

.inv-info-card__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.inv-info-card__icon--invoice { background: #e8f5e9; }
.inv-info-card__icon--period { background: #e3f2fd; }
.inv-info-card__icon--date { background: #fff3e0; }
.inv-info-card__icon--company { background: #f3e5f5; }

.inv-info-card__label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.inv-info-card__value {
    display: block;
    font-size: 0.88rem;
    color: #1a1a2e;
    word-break: break-word;
}

/* Stats Row - Big numbers */
.inv-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.inv-stat-card {
    padding: 1.1rem 1rem;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.inv-stat-card--green { background: linear-gradient(135deg, #00B67A, #00e676); }
.inv-stat-card--blue { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.inv-stat-card--red { background: linear-gradient(135deg, #c62828, #ef5350); }
.inv-stat-card--dark { background: linear-gradient(135deg, #1a1a2e, #16213e); }

.inv-stat-card__number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

.inv-stat-card__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* Sections */
.inv-section {
    margin-bottom: 1.5rem;
}

.inv-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Finance Grid - 2 columns */
.inv-finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.inv-finance-table {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #eef0f3;
}

.inv-finance-table__title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

/* Detail Table */
.inv-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.inv-detail-table td {
    padding: 0.55rem 0;
    font-size: 0.88rem;
    color: #444;
    border-bottom: 1px solid #eef0f3;
}

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

.inv-detail-table__val {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.inv-text--green { color: #00B67A; }
.inv-text--red { color: #c62828; }

/* Net Box */
.inv-net-box {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.inv-net-box span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.inv-net-box strong {
    font-size: 1.15rem;
    color: #00e676;
}

/* Trip Stats Grid */
.inv-trips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.inv-trip-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #eef0f3;
}

.inv-trip-stat__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

.inv-trip-stat__val {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.inv-trip-stat__label {
    display: block;
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Averages Row */
.inv-avg-row {
    display: flex;
    gap: 1rem;
}

.inv-avg-item {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #eef0f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-avg-item__label {
    font-size: 0.82rem;
    color: #888;
}

.inv-avg-item__val {
    font-size: 1rem;
    color: #1a1a2e;
}

/* Modal Footer */
.inv-modal__footer {
    padding: 1rem 2rem;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.inv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.inv-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.inv-btn--print {
    background: #1a1a2e;
    color: #fff;
}

.inv-btn--print:hover {
    background: #16213e;
}

.inv-btn--excel {
    background: #00B67A;
    color: #fff;
}

.inv-btn--excel:hover {
    background: #00a06a;
}

.inv-btn--csv {
    background: #f0f0f0;
    color: #1a1a2e;
}

.inv-btn--csv:hover {
    background: #e0e0e0;
}

/* Responsive - Invoice Modal */
@media (max-width: 768px) {
    .inv-info-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .inv-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .inv-finance-grid {
        grid-template-columns: 1fr;
    }
    .inv-trips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .inv-modal__body {
        padding: 1.25rem;
    }
    .inv-modal__header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .inv-modal__header-right {
        align-self: flex-end;
    }
    .inv-avg-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .inv-info-row {
        grid-template-columns: 1fr;
    }
    .inv-stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .inv-trips-grid {
        grid-template-columns: 1fr 1fr;
    }
    .inv-modal__footer {
        flex-direction: column;
    }
    .inv-btn {
        justify-content: center;
    }
    .modal-overlay {
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .inv-modal,
    .inv-modal * {
        visibility: visible;
    }
    .inv-modal {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
    }
    .inv-modal__close,
    .inv-modal__footer,
    .inv-badge {
        display: none !important;
    }
    .inv-modal__body {
        max-height: none;
        overflow: visible;
    }
    .inv-trips-table-wrap {
        overflow: visible;
        max-height: none;
    }
    .modal-overlay {
        position: absolute;
        background: #fff;
        backdrop-filter: none;
    }
}

/* ============================================
   INVOICE - TRIPS TABLE (Full Details)
   ============================================ */

/* Section header with badge */
.inv-section__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.inv-trip-count-badge {
    background: #1a1a2e;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Trips loading */
.inv-trips-table-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    color: #888;
    font-size: 0.88rem;
}

.inv-spinner--small {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* Trips empty state */
.inv-trips-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

/* Trips table wrapper - horizontal scroll */
.inv-trips-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    background: #fff;
}

.inv-trips-table-wrap::-webkit-scrollbar {
    height: 8px;
    width: 6px;
}
.inv-trips-table-wrap::-webkit-scrollbar-track {
    background: #f0f0f0;
}
.inv-trips-table-wrap::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

/* The trips table itself */
.inv-trips-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
}

.inv-trips-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.inv-trips-table thead tr {
    background: #1a1a2e;
}

.inv-trips-table th {
    padding: 0.6rem 0.7rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: left;
    border-bottom: 2px solid #00B67A;
}

.inv-trips-table td {
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}

.inv-trips-table tbody tr:hover {
    background: #f5f7fa;
}

.inv-trips-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.inv-trips-table tbody tr:nth-child(even):hover {
    background: #f0f2f5;
}

/* Cancelled trips */
.inv-trips-table__row--cancel {
    background: #fff5f5 !important;
}
.inv-trips-table__row--cancel:hover {
    background: #fee !important;
}

/* Cell modifiers */
.inv-trips-table__td--num {
    color: #aaa;
    font-weight: 600;
    text-align: center;
    min-width: 35px;
}

.inv-trips-table__td--id {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #666;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-trips-table__td--nowrap {
    white-space: nowrap;
}

.inv-trips-table__td--right {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.inv-trips-table__td--addr {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    font-size: 0.73rem;
}

/* Text helpers */
.inv-text--bold {
    font-weight: 700;
    color: #1a1a2e;
}

/* Totals footer */
.inv-trips-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.inv-trips-table__totals {
    background: #1a1a2e !important;
    color: #fff;
}

.inv-trips-table__totals td {
    padding: 0.65rem 0.7rem;
    border: none;
    color: #fff;
    font-weight: 600;
}

.inv-trips-table__totals .inv-text--green {
    color: #00e676;
}

.inv-trips-table__totals .inv-text--red {
    color: #ef5350;
}

.inv-trips-table__totals .inv-text--bold {
    color: #00e676;
}

/* Status badges */
.inv-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.inv-status--ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.inv-status--cancel {
    background: #fce4ec;
    color: #c62828;
}

.inv-status--warn {
    background: #fff3e0;
    color: #e65100;
}

/* Payment badges */
.inv-pay {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.inv-pay--card {
    background: #e3f2fd;
    color: #1565c0;
}

.inv-pay--cash {
    background: #fff3e0;
    color: #e65100;
}

/* ============================================
   LIST UTILITIES
   ============================================ */

/* List no style */
.list-no-style {
    list-style: none;
    padding: 0;
}

/* ============================================
   SUBSCRIPTION PAGE STYLES
   ============================================ */

/* Payment Method Info - no extra margin */
.payment-method-info {
    flex: 0 0 auto;
}

/* Payment Method Actions - match card width, centered */
.payment-method-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
    width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.payment-method-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

/* Credit Card Display - real card proportions (85.6×53.98mm ≈ 1.586:1) */
.card-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: white;
    width: 340px;
    aspect-ratio: 1.586 / 1;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-brand {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-number {
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    padding: 0.5rem 0;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.card-details span {
    opacity: 0.9;
    text-transform: uppercase;
}

/* Payment History Section */
.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    font-size: 0.82rem;
    color: #444;
    border-bottom: 1px solid #f3f3f3;
}

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

.payment-history-item .ph-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.payment-history-item .ph-icon.success {
    background: #e6f9f0;
    color: #00B67A;
}

.payment-history-item .ph-icon.failed {
    background: #fde8e8;
    color: #dc3545;
}

.payment-history-item .ph-icon.pending {
    background: #fff8e1;
    color: #f59e0b;
}

.payment-history-item .ph-details {
    flex: 1;
    min-width: 0;
}

.payment-history-item .ph-amount {
    font-weight: 600;
    flex-shrink: 0;
    color: #333;
}

.payment-history-empty {
    font-size: 0.82rem;
    color: #999;
    padding: 0.5rem 0;
}

/* Danger zone card */
.danger-zone .card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #dc3545;
}

.danger-zone .card-body p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Responsive - Credit Card Display */
@media (max-width: 1024px) {
    .card-display,
    .payment-method-actions {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .payment-method-actions .btn {
        width: 100%;
    }
}

/* ============================================
   SUBSCRIPTION PAGE - CONTENT SECTIONS
   ============================================ */

.subscription-content {
    padding: 1rem;
}

.subscription-status-card {
    max-width: 1000px;
    margin: 0 auto 1rem auto;
}

.subscription-status-card .card-body {
    padding: 1rem;
}

.status-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.status-item-label {
    color: #999;
    font-size: 0.8rem;
}

.status-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #00B67A;
}

.status-badge {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

/* ============================================
   SUBSCRIPTION PAGE - PRICING SECTION
   ============================================ */

/* Pricing Section */
.pricing-header {
    text-align: center;
    margin: 1rem auto 1rem auto;
}

.pricing-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.pricing-header p {
    color: #666;
    font-size: 0.9rem;
}

.pricing-cards-container {
    display: flex;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    justify-content: center;
    align-items: stretch;
}

/* Pricing Card */
.pricing-card {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 182, 122, 0.3);
}

.pricing-card.featured {
    box-shadow: 0 4px 15px rgba(0, 182, 122, 0.25);
    border: 2px solid #00B67A;
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 182, 122, 0.4);
}

.pricing-card-header {
    background: white;
    padding: 1.5rem 1.2rem;
    border-bottom: 2px solid #00B67A;
    text-align: center;
}

.pricing-card-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.pricing-card-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00B67A;
}

.pricing-card-currency {
    font-size: 1rem;
    color: #666;
}

.pricing-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.pricing-features .check-icon {
    color: #00B67A;
    font-size: 1.1rem;
    margin-right: 0.6rem;
}

.pricing-card-button {
    width: 100%;
    background: #00B67A;
    color: white;
    border: none;
    padding: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 1.2rem;
}

.pricing-card-button:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================
   SUBSCRIPTION PAGE - ANNUAL PLAN POPUP
   ============================================ */

/* Annual Plan Popup */
.annual-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.annual-popup.show {
    display: flex;
}

.annual-popup-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

.annual-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.annual-popup-close:hover {
    color: #000;
}

.annual-popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.annual-popup-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.annual-popup-title {
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.annual-savings-box {
    background: linear-gradient(135deg, #00B67A 0%, #00966a 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.annual-savings-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.annual-savings-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.annual-savings-subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 0.3rem;
}

.annual-equivalent-box {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.annual-equivalent-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.annual-equivalent-price {
    color: #00B67A;
    font-size: 1.8rem;
    font-weight: 700;
}

.annual-equivalent-old-price {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.annual-confirm-button {
    width: 100%;
    background: #00B67A;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.annual-confirm-button:hover {
    background: #000000;
    transform: scale(1.02);
}

/* ============================================
   SUBSCRIPTION PAGE - FEATURES DISPLAY
   ============================================ */

/* Features Grid */
.features-included {
    max-width: 700px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
}

.features-included-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.features-included-grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.feature-label {
    color: #333;
    font-size: 0.85rem;
}

/* ============================================
   SUBSCRIPTION PAGE - PAYMENT HISTORY
   ============================================ */

/* Payment History */
.payment-history-card {
    margin-top: 2rem;
}

/* ============================================
   SUBSCRIPTION PAGE - ALERTS & WARNINGS
   ============================================ */

/* Card Warning Alerts */
.card-warning {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.card-warning.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.card-warning.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Payment Method Info */
.payment-method-info {
    margin-bottom: 0;
}

/* Subscription Info */
.subscription-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.subscription-info .info-label {
    color: #666;
    font-weight: 500;
}

.subscription-info .info-value {
    font-weight: 600;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* Alert Info in Modal */
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ============================================
   SUBSCRIPTION PAGE - UPDATE CARD MODAL
   ============================================ */

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

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

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

/* Form Styles in Modal */
.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.modal .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal .form-group input:focus {
    outline: none;
    border-color: #00B67A;
    box-shadow: 0 0 0 3px rgba(0, 182, 122, 0.15);
}

.modal .form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

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

.modal .form-row .form-group {
    flex: 1;
}

.error-text {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

/* Card Preview in Modal - matches .card-display */
.card-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: white;
    width: 340px;
    aspect-ratio: 1.586 / 1;
    margin: 1rem auto 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-brand {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-number {
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    padding: 0.5rem 0;
}

.preview-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.preview-details span {
    opacity: 0.9;
    text-transform: uppercase;
}

/* ============================================
   RESPONSIVE - SUBSCRIPTION PAGE
   ============================================ */

/* Small modal variant */
.modal-content-sm {
    max-width: 420px;
}

/* Danger header variant */
.modal-header-danger {
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.modal-header-danger h3 {
    color: #dc3545;
}

/* Delete card warning layout */
.delete-card-warning {
    text-align: center;
    padding: 0.5rem 0;
}

.delete-card-icon {
    margin-bottom: 1rem;
}

.delete-card-warning p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

.delete-card-warning p.text-muted {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */