:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="white" opacity="0.1"/><circle cx="400" cy="100" r="1" fill="white" opacity="0.1"/><circle cx="600" cy="300" r="2" fill="white" opacity="0.1"/><circle cx="800" cy="150" r="1" fill="white" opacity="0.1"/><circle cx="300" cy="400" r="1" fill="white" opacity="0.1"/><circle cx="700" cy="500" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stats-row {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Navigation. */
.navbar {
    backdrop-filter: blur(10px);
    background-color: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827 !important;
}

.navbar-brand:hover {
    color: #111827 !important;
}

.nav-link {
    color: #4b5563 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #1e3c72 !important;
}

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

/* Navbar Logo Styling */
.navbar-logo {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    object-fit: contain;
    background: white;
    padding: 2px;
}

.navbar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Hero Section Logo Styling */
.hero-logo-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    }
}

.hero-main-logo {
    max-height: 100px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    background: white;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-main-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
}

/* Cards and Components */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
}

/* Table Styling */
.table {
    font-size: 0.9rem;
}

.table th {
    background-color: var(--dark-color) !important;
    color: white;
    font-weight: 600;
    border: none;
    text-align: center;
    vertical-align: middle;
}

.table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

.status-available {
    background-color: var(--success-color);
}

.status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.status-approved {
    background-color: var(--info-color);
}

.status-occupied {
    background-color: var(--secondary-color);
}

/* Photo styling in table */
.applicant-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-apply {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    border: none;
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.btn-apply:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #1e88e5, #1565c0);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #ff7043, #f4511e);
    border: none;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #f4511e, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.4);
    color: white !important;
}

.btn-warning {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    border: none;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    color: white !important;
}

/* Feedback Section */
.rating-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
}

.star {
    color: #ddd;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.star:hover,
.star.active {
    color: #ffc107;
}

.star i {
    transition: transform 0.2s ease;
}

.star:hover i {
    transform: scale(1.2);
}

/* Form Styling */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-close {
    filter: invert(1);
}

/* Admin Section */
#admin .card {
    border-radius: 10px;
    margin-bottom: 1rem;
}

.admin-action-btn {
    margin: 0 2px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
/* Mobile Phones (up to 576px) */
@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-logo {
        height: 35px !important;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 80px 0 40px !important;
    }
    
    .hero-main-logo {
        max-height: 150px !important;
    }
    
    .hero-logo-container {
        padding: 15px !important;
    }
    
    .stats-row .col-4 h3 {
        font-size: 1.3rem !important;
    }
    
    .stats-row .col-4 p {
        font-size: 0.75rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 1rem !important;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .step-number {
        font-size: 2rem !important;
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
    }
    
    .table-responsive {
        font-size: 0.75rem !important;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.3rem !important;
    }
    
    /* Positions table responsive on small screens */
    #positionsTable {
        font-size: 0.6rem !important;
    }
    
    #positionsTable th,
    #positionsTable td {
        padding: 0.2rem 0.1rem !important;
        white-space: nowrap;
        vertical-align: middle;
    }
    
    #positionsTable th:first-child,
    #positionsTable td:first-child {
        width: 20px;
        padding: 0.2rem 0.05rem !important;
    }
    
    #positionsTable th:nth-child(2),
    #positionsTable td:nth-child(2) {
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.2rem 0.1rem !important;
    }
    
    #positionsTable th:nth-child(3),
    #positionsTable td:nth-child(3) {
        max-width: 65px;
        white-space: normal;
        line-height: 1.1;
        padding: 0.2rem 0.1rem !important;
    }
    
    #positionsTable th:nth-child(4),
    #positionsTable td:nth-child(4) {
        width: 30px;
        padding: 0.15rem 0.05rem !important;
    }
    
    #positionsTable th:nth-child(5),
    #positionsTable td:nth-child(5) {
        max-width: 60px;
        padding: 0.2rem 0.1rem !important;
    }
    
    #positionsTable th:nth-child(6),
    #positionsTable td:nth-child(6) {
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.2rem 0.1rem !important;
    }
    
    #positionsTable th:nth-child(7),
    #positionsTable td:nth-child(7) {
        width: 25px;
        padding: 0.2rem 0.05rem !important;
    }
    
    #positionsTable th:nth-child(8),
    #positionsTable td:nth-child(8) {
        width: 40px;
        padding: 0.2rem 0.1rem !important;
    }
    
    #positionsTable th:nth-child(9),
    #positionsTable td:nth-child(9) {
        width: 35px;
        padding: 0.15rem 0.05rem !important;
    }
    
    #positionsTable img.user-profile-img {
        width: 22px !important;
        height: 22px !important;
    }
    
    #positionsTable .btn {
        font-size: 0.5rem !important;
        padding: 0.15rem 0.2rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }
    
    #positionsTable .btn-success {
        font-size: 0.5rem !important;
        padding: 0.2rem 0.25rem !important;
        line-height: 1.2 !important;
        display: block !important;
        width: auto !important;
        min-width: 45px !important;
    }
    
    #positionsTable .btn .fas,
    #positionsTable .btn .me-1 {
        font-size: 0.45rem !important;
        margin-right: 0.1rem !important;
    }
    
    #positionsTable .badge {
        font-size: 0.55rem !important;
        padding: 0.2rem 0.3rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .hierarchy-count {
        font-size: 1.5rem !important;
    }
    
    .hierarchy-label {
        font-size: 0.8rem !important;
    }
}

/* Tablets (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .hero-main-logo {
        max-height: 180px;
    }
    
    .stats-row .col-4 h3 {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* iPad and Tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95% !important;
    }
    
    .hero-section {
        padding: 100px 0 50px;
    }
    
    .hero-main-logo {
        max-height: 200px;
    }
}

/* Desktop (1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px !important;
    }
}

/* Large Desktop (1441px and above) */
@media (min-width: 1441px) {
    .container {
        max-width: 1320px !important;
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 80px 0 40px !important;
    }
    
    .stats-row {
        margin-top: 1rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
    
    a, button {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    #admin {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* Hierarchy Display */
.hierarchy-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.hierarchy-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

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

.hierarchy-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 0.25rem;
}

.hierarchy-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Step Numbers */
.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Instruction Items */
.instruction-list, .feature-list, .gesture-list, .tips-list {
    margin-bottom: 1rem;
}

.instruction-item, .feature-item, .gesture-item, .tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.instruction-item:hover, .feature-item:hover, .gesture-item:hover, .tip-item:hover {
    transform: translateX(5px);
    background: rgba(0, 123, 255, 0.1);
}

.instruction-icon, .gesture-icon, .tip-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 2rem;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: white;
    min-width: 30px;
}

.instruction-content, .feature-content, .gesture-content, .tip-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Force Light Mode - No Dark Mode */
.bg-light {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.card {
    background-color: #ffffff !important;
    color: #333 !important;
}

.table {
    color: #333 !important;
    background-color: #ffffff !important;
}

.form-control,
.form-select {
    background-color: #ffffff !important;
    border-color: #ced4da !important;
    color: #333 !important;
}

.form-label {
    color: #6c757d !important;
    font-weight: 600 !important;
}

/* Ensure all text is visible */
body, .card-body, .container {
    color: #333 !important;
}

/* Logo Theme Color Overrides */
.bg-primary {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
}

.bg-success {
    background: linear-gradient(135deg, #ff7043, #f4511e) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.bg-info {
    background: linear-gradient(135deg, #42a5f5, #1e88e5) !important;
}

.text-primary {
    color: #1e88e5 !important;
}

.text-warning {
    color: #ff7043 !important;
}

.text-success {
    color: #ff7043 !important;
}

.text-info {
    color: #42a5f5 !important;
}

/* Card Header Gradients */
.card-header.bg-primary {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
}

.card-header.bg-gradient {
    background: linear-gradient(135deg, #1e88e5 0%, #ff7043 100%) !important;
}

/* Searchable Filter Styles */
.filter-container {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 100;
}

.searchable-filter {
    cursor: pointer;
    background-color: #ffffff !important;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    position: relative;
    color: #333 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.searchable-filter:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.searchable-filter.has-value {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    font-weight: 500;
}

.btn-clear-filter {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-clear-filter:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 999999;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #333 !important;
    overscroll-behavior: contain;
}

.filter-dropdown.show {
    display: block;
    z-index: 1000000;
}

.filter-dropdown-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
    color: #333 !important;
    background-color: #ffffff !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.1);
}

.filter-dropdown-item:hover {
    background-color: #f8f9fa;
}

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

.filter-dropdown-item.highlighted {
    background-color: #e3f2fd;
    color: #1976d2;
}

.filter-search-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    background-color: #ffffff !important;
    color: #333 !important;
}

.filter-search-input:focus {
    border-bottom-color: #2196f3;
    background-color: #f8f9fa;
}

.no-results {
    padding: 0.75rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
}

/* Filter options container for scrollable items */
.filter-options {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Enhanced filter positioning */
.filter-container.active {
    z-index: 1000000;
}

/* Ensure filters section has higher stacking context */
.card.shadow-sm {
    position: relative;
    z-index: 50;
}

.card.shadow-sm .card-body {
    overflow: visible;
    position: relative;
    z-index: 60;
}

/* Table should have lower z-index */
.card.shadow {
    position: relative;
    z-index: 10;
}

/* Ensure filter row allows overflow */
.row.g-2.mt-2 {
    overflow: visible;
    position: relative; 
    z-index: 200;
}

.col-auto {
    overflow: visible;
}

/* Updated Tue Oct 29 2025 */

/* ==========================================
   Payment Plans Styling
   ========================================== */

.payment-tier-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.payment-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.payment-tier-card.selected {
    border-color: #3b82f6;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.payment-tier-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.payment-tier-card .card-body {
    padding: 1rem;
}

.tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-badge.recommended {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.payment-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0.25rem 0;
}

.payment-amount-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    margin: 0.35rem 0;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

.benefit-icon.profit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.benefit-icon.credit {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.benefit-text {
    flex: 1;
}

.benefit-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2px;
}

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

.selected-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.payment-tier-card.selected .selected-check {
    display: flex;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    /* Mobile: Make modal nearly full width */
    #paymentPlansModal .modal-dialog {
        max-width: 98%;
        margin: 0.25rem auto;
    }
    
    /* Reduce card padding significantly for 2-column layout */
    .payment-tier-card .card-body {
        padding: 0.5rem !important;
    }
    
    /* Much smaller payment amount */
    .payment-amount {
        font-size: 1.4rem;
        margin: 0.15rem 0;
    }
    
    .payment-amount-label {
        font-size: 0.65rem;
    }
    
    /* Very compact benefit items */
    .benefit-item {
        padding: 0.3rem;
        margin: 0.2rem 0;
        border-radius: 4px;
    }
    
    /* Smaller benefit icons */
    .benefit-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
        margin-right: 6px;
    }
    
    /* Smaller benefit values */
    .benefit-value {
        font-size: 0.9rem;
    }
    
    .benefit-label {
        font-size: 0.65rem;
    }
    
    /* Smaller tier badge */
    .tier-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        top: 3px;
        right: 3px;
    }
    
    /* Smaller selected check */
    .selected-check {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: 3px;
        left: 3px;
    }
    
    /* 2 cards per row on mobile */
    #paymentTiersContainer .col-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1199px) {
    #paymentPlansModal .modal-dialog {
        max-width: 90%;
    }
    
    .payment-amount {
        font-size: 2rem;
    }
    
    .payment-tier-card .card-body {
        padding: 1.25rem;
    }
}


