/* ============================================================
   internal-styles.css
   Extracted from <style> blocks across 21 .cshtml files.
   Loaded after site.css, before @RenderSection("Styles").
   ============================================================ */


/* ============================================================
   1. SHARED BREADCRUMB COMPONENT
   Used by: _ApartmentList, _BuildingList, Invoice, MySubscription,
            Payment, SavedProperties, _InvoiceList, Admin/Index,
            SubscriptionOverview
   ============================================================ */

.breadcrumb-nav {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    direction: ltr;
}

.breadcrumb-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
    pointer-events: none;
}

.compact-breadcrumb {
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: .85rem;
    box-shadow: none;
    margin-bottom: 0;
    display: inline-flex;
    border: none;
    flex-shrink: 0;
}

.compact-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .2s ease;
}

.compact-breadcrumb a:hover {
    color: #0f172a;
}

.compact-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 500;
}

.compact-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.breadcrumb-right-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.breadcrumb-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    flex-shrink: 0;
}

.breadcrumb-icon-wrapper i {
    color: #ffffff !important;
}

.breadcrumb-page-icon {
    color: #ffffff !important;
    font-size: 1.25rem;
}

.breadcrumb-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.breadcrumb-title-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.breadcrumb-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
}

/* Breadcrumb RTL */
[dir="rtl"] .breadcrumb-container {
    flex-direction: row-reverse;
    direction: rtl;
    border-radius: 12px;
}

[dir="rtl"] .breadcrumb-container::before {
    right: auto;
    left: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
}

[dir="rtl"] .breadcrumb-icon-wrapper {
    direction: ltr;
    border-radius: 10px;
}

[dir="rtl"] .breadcrumb-page-icon {
    direction: ltr;
}

[dir="rtl"] .compact-breadcrumb {
    order: 2;
    direction: rtl;
}

[dir="rtl"] .breadcrumb-right-content {
    margin-left: 0;
    margin-right: auto;
    flex-direction: row-reverse;
    order: 1;
}

[dir="rtl"] .breadcrumb-title {
    text-align: right;
    align-items: flex-end;
}

[dir="rtl"] .breadcrumb-title-text,
[dir="rtl"] .breadcrumb-subtitle {
    text-align: right;
}

[dir="rtl"] .compact-breadcrumb .breadcrumb-item {
    direction: rtl;
}

[dir="rtl"] .compact-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
    padding-right: 0.5rem;
}

[dir="rtl"] .compact-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    float: right;
    padding-right: 0.5rem;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
}

/* Breadcrumb Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-bottom: 0.5rem;
    }

    .breadcrumb-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .breadcrumb-container::before {
        width: 100%;
        height: 150px;
        background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
    }

    .breadcrumb-right-content {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    [dir="rtl"] .breadcrumb-right-content {
        justify-content: flex-end;
    }

    [dir="rtl"] .breadcrumb-title {
        align-items: flex-end;
    }

    .breadcrumb-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .breadcrumb-page-icon {
        font-size: 1rem;
    }

    .breadcrumb-title-text {
        font-size: 0.95rem;
    }

    .breadcrumb-subtitle {
        font-size: 0.7rem;
    }

    .compact-breadcrumb {
        font-size: .75rem;
    }
}


/* ============================================================
   2. SHARED UI COMPONENTS
   Used by: _BuildingList, _ApartmentList, _InvoiceList, _PaymentList
   ============================================================ */

/* Icon Buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .35rem .65rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    white-space: nowrap;
}

.icon-btn i {
    font-size: .8rem;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.icon-btn.text-success {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
    background: rgba(5, 150, 105, 0.05);
}

.icon-btn.text-success:hover {
    background: #059669;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.icon-btn.text-danger {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.05);
}

.icon-btn.text-danger:hover {
    background: #dc2626;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.icon-btn.addMedia {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.icon-btn.addMedia i {
    color: #8b5cf6;
}

.icon-btn.addMedia:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.icon-btn.addMedia:hover i {
    color: #fff;
}

.icon-btn.editBuilding {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.icon-btn.editBuilding i {
    color: #3b82f6;
}

.icon-btn.editBuilding:hover {
    background: #3b82f6;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.icon-btn.editBuilding:hover i {
    color: #fff;
}

.icon-btn.preview {
    color: #14b8a6;
    border-color: rgba(20, 184, 166, 0.2);
    background: rgba(20, 184, 166, 0.05);
}

.icon-btn.preview i {
    color: #14b8a6;
}

.icon-btn.preview:hover {
    background: #14b8a6;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.3);
}

.icon-btn.preview:hover i {
    color: #fff;
}

.icon-btn.toggleStatus.text-success i {
    color: #059669;
}

.icon-btn.toggleStatus.text-danger i {
    color: #dc2626;
}

.icon-btn.toggleStatus:hover i {
    color: #fff;
}

/* Sorter controls */
.sorter-controls {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.sort-chip {
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    border-radius: 999px;
    padding: .4rem .8rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 0.8rem;
}

.sort-chip i {
    font-size: 0.75rem;
}

.sort-chip.sorted-asc,
.sort-chip.sorted-desc {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(147, 197, 253, 0.3);
}

.sort-chip:hover {
    border-color: rgba(15, 23, 42, 0.35);
}

/* Filter fields */
.filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-field label {
    font-size: .8rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: .3rem;
    display: inline-block;
}

.filter-input-wrapper {
    position: relative;
}

.filter-input-wrapper i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.filter-input-wrapper input {
    padding: 0.65rem 0.75rem 0.65rem 2.3rem;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.05);
    font-size: .85rem;
}

.filter-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Stat shared */
.stat-number {
    display: inline-block;
    transition: all 0.3s ease;
}

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

/* Badges */
.badge-soft-success,
.badge-soft-warning {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.badge-soft-success {
    color: #0f5132;
    background: #d1e7dd;
}

.badge-soft-warning {
    color: #9a5d00;
    background: #fff3cd;
}

/* Filter pill */
.filter-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #396afc 0%, #2948ff 100%);
}

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.status-pill--active {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-pill--inactive {
    background: rgba(248, 113, 113, 0.15);
    color: #b91c1c;
}

.status-dot {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: currentColor;
    display: inline-flex;
}

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

/* Action buttons */
.action-buttons-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-group .btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #3b82f6;
}

.action-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.action-group .btn i {
    margin-right: 0.5rem;
}

[dir="rtl"] .action-group .btn {
    direction: rtl;
    border-radius: 8px;
}

[dir="rtl"] .action-group .btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .action-buttons-wrapper {
    justify-content: flex-end;
}

[dir="rtl"] .action-group {
    flex-direction: row;
}

@media (max-width: 768px) {
    .action-buttons-wrapper {
        justify-content: center;
    }

    .action-group {
        flex-direction: column;
        width: 100%;
    }

    .action-group .btn {
        width: 100%;
    }

    [dir="rtl"] .action-group {
        flex-direction: column;
    }
}


/* ============================================================
   3. KEYFRAMES ANIMATION
   Used by: _BuildingList, _ApartmentList
   ============================================================ */

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


/* ============================================================
   4. SELECT2 OVERRIDES
   Source: Pages/Index.cshtml + Pages/Shared/_AddBuilding.cshtml
   ============================================================ */

.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 38px;
    line-height: 38px;
    border: 1px solid #ced4da;
}

.select2-container .select2-dropdown {
    border-radius: .375rem;
    border-color: #ced4da;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
}

.select2-container--open .select2-search--dropdown {
    padding: .35rem .5rem;
}

.select2-container--open .select2-search--dropdown .select2-search__field {
    padding: .375rem .75rem;
    border-radius: .375rem;
}

.select2-container--default .select2-results__option {
    padding-left: .75rem;
    padding-right: .75rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--theme-default);
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(0,113,208,.08);
    color: inherit;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    height: 100%;
    display: flex !important;
    align-items: center;
    position: absolute;
    top: 0;
    right: 30px;
    color: #999;
    z-index: 10;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 45px !important;
}

html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__clear {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 45px !important;
    padding-right: 12px !important;
}

html[dir="rtl"] .mobile-search-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 6px !important; right: auto !important; top: 9px !important;
}

html[dir="ltr"] .mobile-search-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 6px !important; left: auto !important; top: 9px !important;
}


/* ============================================================
   5. INDEX / HOME PAGE HERO SEARCH
   Source: Pages/Index.cshtml
   ============================================================ */

.hero-inputs-row .form-label {
    margin-bottom: 0.35rem;
}

.video-search .form-select.sm-ht {
    height: 52px;
    padding: 10px 16px;
    border-radius: 14px;
}

.video-search .select2-container--default .select2-selection--single {
    height: 52px !important;
    border-radius: 14px !important;
}

.video-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 52px !important;
}

.video-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 12px !important;
}

.video-search .search-btn-col {
    gap: 0.5rem;
}

.video-search .btn-search-desktop {
    width: 100%;
    max-width: 74px;
    height: 52px;
    border-radius: 14px;
    margin-right: 0;
}

.hero-inputs-row > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.price-input-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.price-input-shell .price-range-slider {
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
    width: 100%;
}

.price-values-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding-inline: 2px;
    margin-left: 2px;
    margin-right: 2px;
}

.price-track-shell {
    border: 1px solid #ced4da;
    border-radius: 14px;
    padding: 10px 12px 12px;
    height: 52px;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-inputs-row .price-range-slider {
    height: 100%;
}

.price-track-shell .price-range-track {
    width: 100%;
}

.price-range-slider .price-range-values {
    margin-bottom: 0.2rem;
    align-items: baseline;
    gap: 0.2rem;
}

.price-range-slider .price-range-display .cur {
    font-size: 0.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
}

.price-range-slider .price-range-display .price-value {
    font-size: 0.95rem;
}

.price-input-shell .price-range-track {
    height: 1.35rem;
}

.hero-inputs-row .price-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-search-buffer {
    height: 5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.property-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 767.98px) {
    .banner-section.mt-60 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .video-bg.cst-slider,
    .hero-main {
        height: auto;
        min-height: 320px;
    }

    .hero-search-container {
        padding-top: 12px;
    }
}


/* ============================================================
   6. PROPERTY TYPE FILTER BAR
   Source: Apartments, Duplex, Townhouse, Villas (identical)
   ============================================================ */

.property-type-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.property-filter-section {
    padding-top: 0.5rem;
}

.property-type-filter-section {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-top: -12px;
    margin-bottom: 0.25rem;
}

.property-type-list-section {
    padding-top: 0;
    margin-top: -8px;
}

.property-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 16px;
}

.property-filter-bar .filter-field {
    min-width: 210px;
    flex: 1 1 210px;
}

.property-filter-bar .price-field {
    min-width: 260px;
}

.property-filter-bar .price-field .filter-label {
    display: none;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4b5563;
}

.filter-input {
    height: 48px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background-color: #fff;
    width: 100%;
}

.price-input-shell.filter-input {
    padding: 0;
    height: auto;
    border: none;
    background: transparent;
}

.price-range-slider {
    width: 100%;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.price-range-track {
    height: 6px;
}

.price-range-input {
    height: 4px;
}

.filter-search-btn {
    height: 48px;
    width: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .property-type-title {
        font-size: 1.4rem;
    }

    .property-filter-bar {
        padding: 10px 12px;
    }
}


/* ============================================================
   7. BUILDING LIST
   Source: Pages/Shared/_BuildingList.cshtml
   ============================================================ */

.building-list-wrapper {
    padding: 0.25rem 0 2rem;
    overflow-x: hidden;
    max-width: 100%;
    margin-top: 0;
}

.building-list-wrapper.container-xl {
    padding-left: 0;
    padding-right: 0;
}

.building-list-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.building-list-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.building-list-hero .hero-text {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.building-list-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .7rem;
    font-weight: 600;
    opacity: .85;
    margin-bottom: .35rem;
}

.building-list-hero .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: .5rem;
    font-weight: 700;
}

.building-list-hero .hero-subtitle {
    margin-bottom: 0;
    font-size: .95rem;
    opacity: .9;
}

.building-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.building-stat-compact {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

.building-stat-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.building-stat-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

.building-stat-compact:hover::before {
    opacity: 1;
}

.building-stats-grid .stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.building-stats-grid .stat-card-active .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
}

.building-stats-grid .stat-card-inactive .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
}

.building-stat-compact:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.building-stat-compact .stat-label {
    font-size: .75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.building-stat-compact .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.building-stat-compact:nth-child(1) {
    animation-delay: 0.1s;
}

.building-stat-compact:nth-child(2) {
    animation-delay: 0.2s;
}

.building-stat-compact:nth-child(3) {
    animation-delay: 0.3s;
}

.building-filter-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.building-sorter {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
}

.building-sorter span {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.85rem;
}

.building-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.building-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.building-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.building-table thead th {
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.building-table tbody tr.building-row {
    border-bottom: none;
    transition: background-color 0.15s ease;
}

.building-table tbody tr.building-row:hover {
    background: #f8fafc;
}

.building-table tbody tr.building-row:hover + tr.building-actions-row {
    background: #f8fafc;
}

.building-table tbody tr.building-actions-row {
    border-bottom: 1px solid #e2e8f0;
}

.building-table tbody tr.building-actions-row:last-child {
    border-bottom: none;
}

.building-table tbody td {
    padding: 0.6rem 0.75rem;
    color: #334155;
    vertical-align: middle;
}

.building-table tbody td:first-child {
    font-weight: 600;
    color: #6366f1;
}

.building-table .table-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.35rem 0;
    justify-content: flex-end;
    margin-left: auto;
}

.building-table tbody tr.building-actions-row td {
    padding: 0.4rem 0.75rem;
    background: #fafbfc;
}

.building-table .location-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.85rem;
}

.building-table .location-cell i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.building-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
}

.building-empty i {
    font-size: 3rem;
    margin-bottom: .75rem;
    color: #94a3b8;
}

.building-empty p {
    margin-bottom: .5rem;
    color: #0f172a;
    font-weight: 600;
}

.building-empty small {
    color: #94a3b8;
}

.building-table-wrapper .building-empty {
    margin: 2rem 0;
}

/* Building stat card color variants */
.stat-card-total {
    border-left: 3px solid #6366f1;
}

.stat-card-total:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.stat-card-total .stat-icon {
    color: #6366f1;
}

.stat-card-active {
    border-left: 3px solid #10b981;
}

.stat-card-active:hover {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-card-active .stat-icon {
    color: #10b981;
}

/* Building uses red for inactive */
.building-stats-grid .stat-card-inactive {
    border-left: 3px solid #ef4444;
}

.building-stats-grid .stat-card-inactive:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.building-stats-grid .stat-card-inactive .stat-icon {
    color: #ef4444;
}

/* Building RTL */
[dir="rtl"] .building-stat-compact.stat-card-total,
[dir="rtl"] .building-stat-compact.stat-card-active,
[dir="rtl"] .building-stat-compact.stat-card-inactive {
    border-left: none;
    border-right: 3px solid;
}

[dir="rtl"] .building-stats-grid .stat-card-total {
    border-right-color: #6366f1;
}

[dir="rtl"] .building-stats-grid .stat-card-active {
    border-right-color: #10b981;
}

[dir="rtl"] .building-stats-grid .stat-card-inactive {
    border-right-color: #ef4444;
}

[dir="rtl"] .building-sorter {
    flex-direction: row-reverse;
}

[dir="rtl"] .building-sorter span {
    order: 2;
}

[dir="rtl"] .building-sorter .sorter-controls {
    order: 1;
    flex-direction: row-reverse;
}

[dir="rtl"] .building-list-hero {
    direction: rtl;
}

[dir="rtl"] .building-list-hero::before {
    right: auto;
    left: 0;
    transform: translate(-30%, -30%);
}

[dir="rtl"] .building-table-actions {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .building-table thead th,
[dir="rtl"] .building-table tbody td {
    text-align: right;
}

[dir="rtl"] .building-table thead th:first-child,
[dir="rtl"] .building-table tbody td:first-child {
    padding-right: 1.5rem;
    padding-left: 1rem;
}

[dir="rtl"] .building-table thead th:last-child,
[dir="rtl"] .building-table tbody td:last-child {
    padding-left: 1.5rem;
    padding-right: 1rem;
}

[dir="rtl"] .building-table .table-actions {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
}

/* Building Responsive */
@media (max-width: 768px) {
    .building-list-wrapper {
        padding-top: 0.15rem;
    }

    .building-list-hero {
        padding: 1.5rem;
    }

    .building-list-hero::before {
        width: 200px;
        height: 200px;
    }

    .building-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .building-stat-compact {
        padding: 0.85rem 1rem;
    }

    .building-stats-grid .stat-icon-wrapper {
        width: 40px;
        height: 40px;
    }

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

    .building-stat-compact .stat-value {
        font-size: 1.25rem;
    }

    .building-sorter {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .building-sorter > span {
        width: 100%;
        font-size: .9rem;
    }

    .building-sorter .sorter-controls {
        width: 100%;
        gap: .5rem;
    }

    .building-filter-card {
        padding: 1.25rem;
    }

    .building-table-wrapper {
        border-radius: 8px;
    }

    .building-table {
        font-size: 0.8rem;
    }

    .building-table thead th,
    .building-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .building-table tbody tr.building-actions-row td {
        padding: 0.5rem;
    }

    .building-table .table-actions {
        gap: 0.4rem;
    }

    .icon-btn span {
        display: none;
    }

    .icon-btn {
        padding: 0.4rem 0.6rem;
    }

    .sort-chip {
        flex: 1 1 auto;
        min-width: auto;
        font-size: .75rem;
        padding: .5rem .6rem;
        white-space: nowrap;
    }

    .sort-chip i {
        font-size: .8rem;
    }

    .sort-chip span {
        display: none;
    }

    .filter-fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-input-wrapper input {
        font-size: .85rem;
        padding: .7rem .75rem .7rem 2.3rem;
    }
}


/* ============================================================
   8. APARTMENT LIST
   Source: Pages/Shared/_ApartmentList.cshtml
   ============================================================ */

.apartment-list-wrapper {
    padding: 0.5rem 0 2rem;
    overflow-x: hidden;
    max-width: 100%;
}

.apartment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.apartment-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.apartment-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.apartment-main-title i {
    font-size: 1.75rem;
}

.apartment-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.apartment-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.apartment-stat-compact {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

.apartment-stat-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apartment-stat-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

.apartment-stat-compact:hover::before {
    opacity: 1;
}

/* Apartment uses amber for inactive */
.apartment-stats-grid .stat-card-inactive {
    border-left: 3px solid #f59e0b;
}

.apartment-stats-grid .stat-card-inactive:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.apartment-stats-grid .stat-card-inactive .stat-icon {
    color: #f59e0b;
}

.apartment-stats-grid .stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.apartment-stat-compact .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apartment-stat-compact .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.apartment-filter-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.apartment-sorter {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
}

.apartment-sorter span {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.85rem;
}

.apartment-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.apartment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.apartment-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.apartment-table thead th {
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.apartment-table tbody tr.apartment-row {
    border-bottom: none;
    transition: background-color 0.15s ease;
}

.apartment-table tbody tr.apartment-row:hover {
    background: #f8fafc;
}

.apartment-table tbody tr.apartment-row:hover + tr.apartment-actions-row {
    background: #f8fafc;
}

.apartment-table tbody tr.apartment-actions-row {
    border-bottom: 1px solid #e2e8f0;
}

.apartment-table tbody tr.apartment-actions-row:last-child {
    border-bottom: none;
}

.apartment-table tbody td {
    padding: 0.6rem 0.75rem;
    color: #334155;
    vertical-align: middle;
}

.apartment-table tbody td:first-child {
    font-weight: 600;
    color: #6366f1;
}

.apartment-table .table-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.35rem 0;
    justify-content: flex-end;
    margin-left: auto;
}

.apartment-table tbody tr.apartment-actions-row td {
    padding: 0.4rem 0.75rem;
    background: #fafbfc;
}

.apartment-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
}

.apartment-empty i {
    font-size: 3rem;
    margin-bottom: .75rem;
    color: #94a3b8;
}

.apartment-empty p {
    margin-bottom: .5rem;
    color: #0f172a;
    font-weight: 600;
}

.apartment-empty small {
    color: #94a3b8;
}

.apartment-table-wrapper .apartment-empty {
    margin: 2rem 0;
}

/* Apartment RTL */
[dir="rtl"] .apartment-stat-compact.stat-card-total,
[dir="rtl"] .apartment-stat-compact.stat-card-active,
[dir="rtl"] .apartment-stat-compact.stat-card-inactive {
    border-left: none;
    border-right: 3px solid;
}

[dir="rtl"] .apartment-stats-grid .stat-card-total {
    border-right-color: #6366f1;
}

[dir="rtl"] .apartment-stats-grid .stat-card-active {
    border-right-color: #10b981;
}

[dir="rtl"] .apartment-stats-grid .stat-card-inactive {
    border-right-color: #f59e0b;
}

[dir="rtl"] .apartment-sorter {
    flex-direction: row-reverse;
}

[dir="rtl"] .apartment-sorter span {
    order: 2;
}

[dir="rtl"] .apartment-sorter .sorter-controls {
    order: 1;
    flex-direction: row-reverse;
}

[dir="rtl"] .apartment-header {
    direction: rtl;
}

[dir="rtl"] .apartment-header::before {
    right: auto;
    left: 0;
    transform: translate(-30%, -30%);
}

[dir="rtl"] .apartment-table thead th,
[dir="rtl"] .apartment-table tbody td {
    text-align: right;
}

[dir="rtl"] .apartment-table thead th:first-child,
[dir="rtl"] .apartment-table tbody td:first-child {
    padding-right: 1.5rem;
    padding-left: 1rem;
}

[dir="rtl"] .apartment-table thead th:last-child,
[dir="rtl"] .apartment-table tbody td:last-child {
    padding-left: 1.5rem;
    padding-right: 1rem;
}

[dir="rtl"] .apartment-table .table-actions {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
}

/* Apartment Responsive */
@media (max-width: 768px) {
    .apartment-header {
        padding: 1.25rem 1.5rem;
    }

    .apartment-main-title {
        font-size: 1.5rem;
    }

    .apartment-main-title i {
        font-size: 1.35rem;
    }

    .apartment-subtitle {
        font-size: 0.9rem;
    }

    .apartment-stats-grid {
        flex-direction: column;
        gap: 0.75rem;
    }

    .apartment-sorter {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .apartment-sorter > span {
        width: 100%;
        font-size: .9rem;
    }

    .apartment-sorter .sorter-controls {
        width: 100%;
        gap: .5rem;
    }

    .apartment-filter-card {
        padding: 1.25rem;
    }

    .apartment-table-wrapper {
        border-radius: 8px;
    }

    .apartment-table {
        font-size: 0.8rem;
    }

    .apartment-table thead th,
    .apartment-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .apartment-table tbody tr.apartment-actions-row td {
        padding: 0.5rem;
    }

    .apartment-table .table-actions {
        gap: 0.4rem;
    }
}


/* ============================================================
   9. INVOICE PAGE
   Source: Pages/Property/Invoice.cshtml
   ============================================================ */

.invoice-page-bg {
    background: #f7f9fc;
    min-height: 100vh;
    padding: 16px 0 32px;
}

.invoice-detail-wrapper {
    max-width: 1200px;
}


/* ============================================================
   10. MY SUBSCRIPTION PAGE
   Source: Pages/Property/MySubscription.cshtml
   ============================================================ */

.subscription-page-bg {
    background: #f7f9fc;
    min-height: 100vh;
    padding: 16px 0 32px;
}

.subscription-wrapper {
    max-width: 1200px;
}

.subscription-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.grid-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.grid-item:hover::before {
    opacity: 1;
}

.plan-card-large {
    grid-column: 1 / 8;
    background: transparent;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    min-height: 200px;
}

.plan-card-large::before {
    display: none;
}

.plan-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.plan-card-header {
    position: relative;
    z-index: 0;
    padding-bottom: 3.5rem;
}

.upgrade-button-container {
    position: absolute;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 0;
}

.upgrade-btn-inline {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upgrade-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.subscription-page-bg .plan-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.75rem;
}

.subscription-page-bg .plan-badge .text-muted {
    color: #475569 !important;
}

.subscription-page-bg .plan-badge i {
    font-size: 1rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.plan-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
    line-height: 1.2;
}

.plan-details {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.price-card {
    grid-column: 8 / 13;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.price-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.25);
    text-align: center;
}

.price-icon-wrapper i {
    color: #ffffff;
    font-size: 1.5rem;
}

.price-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.price-value .currency {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    opacity: 0.8;
}

.price-value .amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-subtext {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.25rem;
}

.subscription-grid-container .stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    text-align: center;
}

.subscription-grid-container .stat-icon-wrapper i {
    color: #ffffff;
    font-size: 1.5rem;
}

.subscription-grid-container .stat-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.subscription-grid-container .stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.stat-description {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
}

.listings-card {
    grid-column: 1 / 5;
    grid-row: 2;
    background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.5rem;
    grid-row: 2;
}

.info-card.added-listings {
    grid-column: 5 / 9;
}

.info-card.remaining-listings {
    grid-column: 9 / 13;
}

.info-card.plan-type-card {
    grid-column: 5 / 9;
    grid-row: 3;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.added-listings .info-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.remaining-listings .info-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.plan-type-card .info-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.info-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.info-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.plan-type-value {
    font-size: 1.5rem;
    text-transform: capitalize;
}

.info-progress {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.progress-bar-wrapper {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar-wrapper .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.info-subtext {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.empty-card .empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef4ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e5ad9;
}

/* MySubscription RTL */
[dir="rtl"] .subscription-page-bg .plan-badge {
    direction: rtl;
}

/* MySubscription Responsive */
@media (max-width: 992px) {
    .subscription-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }

    .plan-card-large {
        grid-column: 1 / 7;
    }

    .price-card {
        grid-column: 1 / 7;
        grid-row: 2;
    }

    .listings-card {
        grid-column: 1 / 7;
        grid-row: 3;
    }

    .info-card.added-listings {
        grid-column: 1 / 4;
        grid-row: 4;
    }

    .info-card.remaining-listings {
        grid-column: 4 / 7;
        grid-row: 4;
    }

    .info-card.plan-type-card {
        grid-column: 1 / 7;
        grid-row: 5;
    }
}

@media (max-width: 768px) {
    .subscription-grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-item {
        grid-column: 1 !important;
    }

    .plan-card-large { grid-row: 1; }
    .price-card { grid-row: 2; }
    .listings-card { grid-row: 3; }
    .info-card.added-listings { grid-row: 4; }
    .info-card.remaining-listings { grid-row: 5; }
    .info-card.plan-type-card { grid-row: 6; }

    .plan-name {
        font-size: 1.5rem;
    }

    .price-value .amount,
    .subscription-grid-container .stat-value {
        font-size: 2rem;
    }

    .info-value {
        font-size: 1.75rem;
    }

    .upgrade-button-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        position: relative;
        margin-top: 1rem;
        width: auto;
    }

    .upgrade-btn-inline {
        width: 100%;
    }

    .plan-card-header {
        padding-bottom: 1rem;
    }
}


/* ============================================================
   11. SIGN UP PROCESS PAGE
   Source: Pages/SignUpProcess.cshtml
   ============================================================ */

.signup-process-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.signup-process-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}

.signup-process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
}

.otp-card .card-header-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.success-card .card-header-section {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icon-wrapper i {
    font-size: 36px;
    color: #ffffff;
}

.otp-icon {
    width: 70px;
    height: 70px;
}

.otp-icon i {
    font-size: 32px;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.card-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    color: #ffffff;
}

.card-body-section {
    padding: 40px 30px;
}

.email-info-box {
    margin-bottom: 30px;
}

.info-text {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.email-display:hover {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.email-display i {
    color: #667eea;
    font-size: 18px;
}

.email-address-link {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    word-break: break-all;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
}

.email-address-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

.email-address-link:active {
    color: #5568d3;
    transform: scale(0.98);
}

.email-address-link::after {
    content: '\f35d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-address-link:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

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

.instruction-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-verify-email {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-verify-email i,
.btn-verify-otp i,
.btn-verify-email .fas,
.btn-verify-otp .fas,
.btn-verify-email .fa,
.btn-verify-otp .fa {
    color: #ffffff !important;
}

.btn-verify-email:hover i,
.btn-verify-otp:hover i,
.btn-verify-email:hover .fas,
.btn-verify-otp:hover .fas {
    color: #ffffff !important;
}

.btn-verify-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.otp-form {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

.form-label i {
    color: #f5576c;
}

.input-wrapper {
    position: relative;
}

.otp-input {
    padding: 15px 50px 15px 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    color: #212529 !important;
    cursor: text !important;
    pointer-events: auto !important;
}

.otp-input:disabled {
    background-color: #ffffff !important;
    opacity: 1 !important;
    cursor: text !important;
}

.otp-input[disabled] {
    background-color: #ffffff !important;
    opacity: 1 !important;
    cursor: text !important;
}

.otp-input:focus {
    border-color: #f5576c;
    box-shadow: 0 0 0 0.2rem rgba(245, 87, 108, 0.25);
    outline: none;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
}

.form-actions {
    margin-top: 30px;
}

.btn-verify-otp {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
}

.btn-verify-otp:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.btn-verify-otp:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn-loading i {
    color: #ffffff !important;
}

.success-message {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 15px;
}

.success-actions {
    margin-top: 30px;
}

.btn-success-ok {
    padding: 12px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
    transition: all 0.3s ease;
}

.btn-success-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.5);
}

.btn-success-ok i {
    color: #ffffff !important;
}

.success-icon {
    width: 90px;
    height: 90px;
}

.success-icon i {
    font-size: 48px;
}

@media (max-width: 768px) {
    .signup-process-section {
        padding: 40px 15px;
    }

    .card-header-section {
        padding: 30px 20px;
    }

    .card-body-section {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 28px;
    }

    .otp-input {
        font-size: 16px;
        letter-spacing: 4px;
        padding: 12px 45px 12px 15px;
    }
}

@media (max-width: 576px) {
    .signup-process-card {
        border-radius: 15px;
    }

    .card-header-section {
        padding: 25px 15px;
    }

    .card-body-section {
        padding: 25px 15px;
    }
}


/* ============================================================
   12. PAYMENT PAGE
   Source: Pages/Property/Payment.cshtml
   ============================================================ */

.payment-page-bg {
    background: #f7f9fc;
    min-height: 100vh;
    padding: 16px 0 32px;
}

.payment-detail-wrapper {
    max-width: 1200px;
}


/* ============================================================
   13. SAVED PROPERTIES PAGE
   Source: Pages/Property/SavedProperties.cshtml
   ============================================================ */

.saved-properties-wrapper {
    padding: 0.25rem 0 2rem;
    overflow-x: hidden;
    max-width: 100%;
    margin-top: 0;
}

.saved-properties-wrapper.container-xl {
    padding-left: 0;
    padding-right: 0;
}


/* ============================================================
   14. HOME PROPERTIES PARTIAL
   Source: Pages/Shared/_homePropertiesPartial.cshtml
   ============================================================ */

.property-image {
    position: relative !important;
    min-height: 230px;
    height: 230px;
}

.property-image .property-slider {
    min-height: 230px;
    height: 230px;
    position: relative;
}

.property-image .bg-size {
    display: block;
    height: 230px;
    position: relative;
}

.property-image .bg-size:before {
    display: none;
    padding-top: 0;
}

.property-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.property-slider .bg-img[alt*="Not Available"],
.property-slider .bg-img[alt*="غير متاح"] {
    width: 100% !important;
    height: 230px !important;
    min-height: 230px !important;
    object-fit: cover !important;
    display: block !important;
    background-color: #e3f2fd;
}

.property-slider:has(img[alt*="Not Available"]),
.property-slider:has(img[alt*="غير متاح"]) {
    min-height: 230px !important;
    height: 230px !important;
    display: block;
}

.property-slider img.bg-img[src*="base64,PHN2Zy"] {
    width: 100% !important;
    height: 230px !important;
    min-height: 230px !important;
    object-fit: cover !important;
    display: block !important;
}

.property-slider .bg-size {
    height: 230px !important;
    min-height: 230px !important;
}

.property-slider .bg-size img {
    height: 230px !important;
    min-height: 230px !important;
}


/* ============================================================
   15. ADMIN DASHBOARD
   Source: Pages/Admin/Index.cshtml
   ============================================================ */

.dashboard-wrapper {
    padding: 0.25rem 0 2rem;
    overflow-x: hidden;
    max-width: 100%;
    margin-top: 0;
}

.dashboard-wrapper.container-xl {
    padding-left: 0;
    padding-right: 0;
}

.dashboard-chart-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

.chart-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.chart-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.chart-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-card-body > div {
    width: 100%;
}

.dashboard-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.dashboard-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
}

.subscription-card.grace-period,
.subscription-card.expired {
    cursor: pointer;
}

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

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
}

.stat-card-icon i {
    color: #ffffff !important;
}

.revenue-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.subscription-icon.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.subscription-icon.grace-period {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.subscription-icon.expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.subscription-icon.total {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.revenue-card .stat-card-value { color: #667eea; }
.subscription-card.active .stat-card-value { color: #10b981; }
.subscription-card.grace-period .stat-card-value { color: #f59e0b; }
.subscription-card.expired .stat-card-value { color: #ef4444; }
.subscription-card.total .stat-card-value { color: #3b82f6; }

.building-icon.total {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.building-icon.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.building-icon.inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.building-card.total .stat-card-value { color: #8b5cf6; }
.building-card.active .stat-card-value { color: #10b981; }
.building-card.inactive .stat-card-value { color: #ef4444; }

.user-icon.total {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.user-card.total .stat-card-value { color: #06b6d4; }

.revenue-chart-card .chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.revenue-indicator-tabs {
    display: flex;
    gap: 0.5rem;
}

.revenue-indicator-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #64748b;
}

.revenue-indicator-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.5);
}

.revenue-indicator-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.revenue-indicator-btn i {
    font-size: 1rem;
    color: #ffffff !important;
}

.revenue-indicator-btn.active i,
.revenue-indicator-btn:hover i {
    color: #ffffff !important;
}

.plan-selector-wrapper {
    display: flex;
    align-items: center;
}

.plan-dropdown {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.875rem;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    min-width: 180px;
}

.plan-dropdown:hover,
.plan-dropdown:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 991px) {
    .chart-card-body {
        padding: 1rem;
    }

    .dashboard-stat-card {
        padding: 1.25rem;
    }

    .stat-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

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

    .revenue-chart-card .chart-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .revenue-indicator-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .revenue-indicator-btn {
        flex: 1;
        justify-content: center;
    }

    .plan-selector-wrapper {
        width: 100%;
    }

    .plan-dropdown {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .revenue-indicator-btn span {
        display: none;
    }

    .revenue-indicator-btn {
        padding: 0.5rem 0.75rem;
        flex: 0;
    }
}


/* ============================================================
   16. INVOICE LIST
   Source: Pages/Shared/_InvoiceList.cshtml
   ============================================================ */

.invoice-list-wrapper {
    padding: 0.25rem 0 2rem;
    overflow-x: hidden;
    max-width: 100%;
    margin-top: 0;
}

.invoice-list-wrapper.container-xl {
    padding-left: 0;
    padding-right: 0;
}

.invoice-table-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.tracking-wide {
    letter-spacing: 0.04em;
}

.invoice-filters .form-control {
    border-radius: 10px;
}

.invoice-table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.invoice-table-modern thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.invoice-table-modern thead th {
    border: 0;
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.invoice-table-modern tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

.invoice-table-modern tbody tr:hover {
    background: #f8fafc;
}

.invoice-table-modern tbody tr:last-child {
    border-bottom: none;
}

.invoice-table-modern tbody td {
    padding: 0.6rem 0.75rem;
    color: #334155;
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
}

.invoice-table-modern tbody td:first-child {
    font-weight: 600;
    color: #6366f1;
}

.invoice-link {
    color: #1e5ad9;
    font-weight: 700;
    text-decoration: none;
}

.invoice-link:hover {
    color: #103a9e;
    text-decoration: underline;
}

.invoice-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
}

.invoice-empty i {
    font-size: 3rem;
    margin-bottom: .75rem;
    color: #94a3b8;
}

.invoice-empty p {
    margin-bottom: .5rem;
    color: #0f172a;
    font-weight: 600;
}

.invoice-empty small {
    color: #94a3b8;
}

.invoice-table-wrapper .invoice-empty {
    margin: 2rem 0;
}

/* Invoice List RTL */
[dir="rtl"] .invoice-table-modern thead th,
[dir="rtl"] .invoice-table-modern tbody td {
    text-align: right;
}

[dir="rtl"] .invoice-table-modern thead th:first-child,
[dir="rtl"] .invoice-table-modern tbody td:first-child {
    padding-right: 1.5rem;
    padding-left: 1rem;
}

[dir="rtl"] .invoice-table-modern thead th:last-child,
[dir="rtl"] .invoice-table-modern tbody td:last-child {
    padding-left: 1.5rem;
    padding-right: 1rem;
}

/* Invoice List Responsive */
@media (max-width: 768px) {
    .invoice-table-wrapper {
        border-radius: 8px;
    }

    .invoice-table-modern {
        font-size: 0.8rem;
    }

    .invoice-table-modern thead th,
    .invoice-table-modern tbody td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
}


/* ============================================================
   17. SUBSCRIPTION OVERVIEW
   Source: Pages/Admin/SubscriptionOverview.cshtml
   ============================================================ */

.subscription-overview-wrapper {
    padding: 0.25rem 0 2rem;
    overflow-x: hidden;
    max-width: 100%;
    margin-top: 0;
}

.subscription-overview-wrapper.container-xl {
    padding-left: 0;
    padding-right: 0;
}

.subscription-table-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscription-table-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.subscription-table-header {
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.grace-period-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
}

.expired-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.02) 100%);
}

.table-header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.table-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.grace-period-header .table-header-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.expired-header .table-header-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.table-header-text {
    flex: 1;
}

.table-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.table-header-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.table-header-badge {
    flex-shrink: 0;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.grace-period-header .badge-count {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.expired-header .badge-count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.subscription-table-body {
    padding: 0;
}

.subscription-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.subscription-table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.subscription-table tbody td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 0.875rem;
    vertical-align: middle;
}

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

.subscription-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
}

.user-email {
    font-size: 0.8125rem;
    color: #64748b;
}

.contact-info {
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 0.875rem;
}

.contact-info i {
    color: #94a3b8;
    font-size: 0.75rem;
}

.subscription-table .plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8125rem;
}

.date-cell {
    color: #475569;
    font-size: 0.875rem;
}

.date-cell.expired-date {
    color: #dc2626;
    font-weight: 500;
}

.badge-grace-period {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.badge-grace-period i {
    font-size: 0.75rem;
}

.badge-expired {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.badge-expired i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .subscription-summary-card {
        flex-direction: column;
        text-align: center;
    }

    .subscription-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .table-header-content {
        width: 100%;
    }

    .subscription-table thead th,
    .subscription-table tbody td {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }
}


/* ============================================================
   18. INVOICE VIEW
   Source: Pages/Shared/_InvoiceView.cshtml
   ============================================================ */

.invoice-card {
    border-radius: 12px;
}

.invoice-meta .meta-tile,
.stat-card {
    border: 1px solid #eef1f6;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.stat-card.highlight {
    background: linear-gradient(120deg, #eef4ff, #ffffff);
    border-color: #d9e4ff;
}


/* ============================================================
   19. PAYMENT LIST
   Source: Pages/Shared/_PaymentList.cshtml
   ============================================================ */

.payment-wrapper {
    max-width: 1200px;
}

.breadcrumb-modern {
    background: linear-gradient(90deg, #f6faff, #ffffff);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #e4e9f2;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    color: #a1a9b8;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #1e5ad9;
    font-weight: 600;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

.payment-filters .form-control {
    border-radius: 10px;
}

.payment-table thead th {
    border: 0;
    background: #f6f8fb;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #5f6b7a;
}

.payment-table tbody tr {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.payment-table tbody tr:hover {
    background: #f9fbff;
    box-shadow: 0 10px 24px rgba(53, 78, 116, 0.08);
    transform: translateY(-1px);
}

.payment-table td {
    border-top: 1px solid #eef1f6;
}

.payment-link {
    color: #1e5ad9;
    font-weight: 600;
    text-decoration: none;
}

.payment-link:hover {
    color: #103a9e;
    text-decoration: underline;
}


/* ============================================================
   20. PAYMENT PARTIAL
   Source: Pages/Shared/_PaymentPartial.cshtml
   ============================================================ */

#planInfo {
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d;
}


/* ============================================================
   21. TRANSACTION VIEW
   Source: Pages/Shared/_TransactionView.cshtml
   ============================================================ */

.transaction-card {
    border-radius: 12px;
}

.info-tile {
    border: 1px solid #eef1f6;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}
