/* ============================================================
   iweblab - Client Area Dashboard Styles
   ============================================================ */

/* Wider container for client area (only pages with sidebar or primary-content) */
@media (min-width: 1200px) {
    section#main-body > .container:has(.sidebar),
    section#main-body > .container:has(.iw-welcome-banner),
    section#main-body > .container:has(.iw-domain-header),
    section#main-body > .container:has(.iw-domain-table),
    section#main-body > .container:has(#order-standard_cart) {
        max-width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* News Banner */
.iw-news-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #fcb827;
    border-radius: 12px;
}

.iw-news-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fcb827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iw-news-icon i {
    color: #031041;
    font-size: 18px;
}

.iw-news-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.iw-news-content h1,
.iw-news-content h2,
.iw-news-content h3 {
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 700;
    color: #031041 !important;
    margin-bottom: 4px;
}

.iw-news-content h1 a,
.iw-news-content h2 a,
.iw-news-content h3 a {
    font-size: 16px !important;
    color: #031041 !important;
    text-decoration: none;
}

.iw-news-content h1 a:hover,
.iw-news-content h2 a:hover,
.iw-news-content h3 a:hover {
    color: #294df0 !important;
}

.iw-news-content p {
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 13px;
}

.iw-news-content .btn {
    font-size: 12px;
    padding: 4px 12px;
}

@media (max-width: 575px) {
    .iw-news-banner {
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
    }
}

/* Welcome Banner */
.iw-welcome-banner {
    background: linear-gradient(135deg, #0630b5 0%, #294df0 100%);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.iw-welcome-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.iw-welcome-banner::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 10%;
    width: 180px;
    height: 180px;
    background: rgba(252, 184, 39, 0.1);
    border-radius: 50%;
}

.iw-welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.iw-welcome-text h2 {
    color: #fff !important;
    font-size: 26px !important;
    line-height: 32px !important;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: none !important;
}

.iw-welcome-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 0;
}

.iw-welcome-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.iw-btn-welcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: #fcb827;
    color: #031041 !important;
    border: 2px solid #fcb827;
}

.iw-btn-welcome:hover {
    background: #e5a520;
    border-color: #e5a520;
    color: #031041 !important;
    transform: translateY(-1px);
}

.iw-btn-welcome-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.iw-btn-welcome-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff !important;
}

/* Stat Tiles */
.iw-dashboard-stats {
    margin-bottom: 28px;
}

.iw-stat-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef1f6;
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.iw-stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.iw-stat-icon i {
    font-size: 22px;
    color: #fff;
}

.iw-stat-blue .iw-stat-icon { background: linear-gradient(135deg, #294df0, #4a6cf7); }
.iw-stat-green .iw-stat-icon { background: linear-gradient(135deg, #08bba4, #20d5b8); }
.iw-stat-orange .iw-stat-icon { background: linear-gradient(135deg, #fcb827, #ffd166); }
.iw-stat-red .iw-stat-icon { background: linear-gradient(135deg, #e74c3c, #ff6b6b); }

.iw-stat-info {
    display: flex;
    flex-direction: column;
}

.iw-stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #031041;
}

.iw-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 4px;
}

.iw-stat-tile:hover .iw-stat-number,
.iw-stat-tile:hover .iw-stat-label {
    color: #031041;
}

/* Quick Actions */
.iw-quick-actions {
    margin-bottom: 8px;
}

.iw-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.iw-action-card:hover {
    border-color: #294df0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(41, 77, 240, 0.12);
}

.iw-action-card i {
    font-size: 28px;
    color: #294df0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.iw-action-card:hover i {
    color: #031041;
    transform: scale(1.1);
}

.iw-action-card span {
    font-size: 14px;
    font-weight: 600;
    color: #031041;
}

/* Home Panels Override */
.iw-home-panels .iw-panel {
    border-radius: 14px !important;
    border: 1px solid #eef1f6 !important;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.iw-home-panels .iw-panel:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.iw-home-panels .card-header {
    background: #fff !important;
    border-bottom: 1px solid #eef1f6;
    padding: 18px 24px;
}

.iw-home-panels .card-header .card-title {
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 700;
    color: #031041 !important;
}

.iw-home-panels .card-header .card-title i {
    color: #294df0;
    margin-right: 6px;
}

.iw-home-panels .card-header .btn-default {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 8px;
}

.iw-home-panels .card-body {
    padding: 20px 24px;
}

.iw-home-panels .list-group-item {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding: 14px 24px 14px 44px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.iw-home-panels .list-group-item:last-child {
    border-bottom: none;
}

.iw-home-panels .list-group-item:hover {
    background: #f8faff;
    color: #294df0;
}

.iw-home-panels .list-group-item i {
    color: #294df0;
    font-size: 14px;
}

.iw-home-panels .list-group-item .badge {
    background: #294df0 !important;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.iw-home-panels .card-footer {
    background: #fafbfc;
    border-top: 1px solid #eef1f6;
    padding: 12px 24px;
}

.iw-home-panels .card-footer:empty {
    display: none;
}

/* Card accent colors - top border */
.iw-home-panels .card-accent-blue { border-top: 3px solid #294df0 !important; }
.iw-home-panels .card-accent-green,
.iw-home-panels .card-accent-emerald { border-top: 3px solid #08bba4 !important; }
.iw-home-panels .card-accent-red,
.iw-home-panels .card-accent-pomegranate { border-top: 3px solid #e74c3c !important; }
.iw-home-panels .card-accent-gold,
.iw-home-panels .card-accent-sun-flower { border-top: 3px solid #fcb827 !important; }
.iw-home-panels .card-accent-teal { border-top: 3px solid #08bba4 !important; }
.iw-home-panels .card-accent-asbestos { border-top: 3px solid #7f8c8d !important; }

/* Hide the old-style dashboard tiles and heading */
.iw-home-panels + .tiles,
#main-body .primary-content > h2:first-child,
#main-body .primary-content .card-columns.home {
    display: none;
}

/* Responsive */
@media (max-width: 767px) {
    .iw-welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .iw-welcome-text h2 {
        font-size: 22px !important;
    }

    .iw-welcome-text p {
        font-size: 14px;
    }

    .iw-welcome-actions {
        flex-direction: column;
        width: 100%;
    }

    .iw-btn-welcome {
        justify-content: center;
        width: 100%;
    }

    .iw-welcome-banner {
        padding: 24px 20px;
    }

    .iw-stat-tile {
        padding: 16px 14px;
        gap: 12px;
    }

    .iw-stat-icon {
        width: 44px;
        height: 44px;
    }

    .iw-stat-icon i {
        font-size: 18px;
    }

    .iw-stat-number {
        font-size: 22px;
    }

    .iw-stat-label {
        font-size: 12px;
    }

    .iw-action-card {
        padding: 18px 12px;
    }

    .iw-action-card i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .iw-action-card span {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .iw-stat-tile {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 10px;
    }

    .iw-stat-info {
        align-items: center;
    }
}

/* ============================================================
   Domains Page
   ============================================================ */

/* Domain Header */
.iw-domain-header {
    background: linear-gradient(135deg, #0630b5 0%, #294df0 100%);
    border-radius: 16px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.iw-domain-header::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -3%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.iw-domain-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.iw-domain-header h2 {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 30px !important;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: none !important;
}

.iw-domain-header h2 i {
    margin-right: 10px;
    opacity: 0.8;
}

.iw-domain-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 0;
}

.iw-domain-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.iw-btn-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: #fcb827;
    color: #031041 !important;
    border: 2px solid #fcb827;
}

.iw-btn-domain:hover {
    background: #e5a520;
    border-color: #e5a520;
    transform: translateY(-1px);
}

.iw-btn-domain-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.iw-btn-domain-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff !important;
}

/* Bulk action buttons */
.iw-btn-action {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    font-size: 13px !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.iw-btn-action:hover {
    background: #f0f4ff !important;
    color: #294df0 !important;
    border-color: #294df0 !important;
}

.iw-btn-action i {
    color: #294df0;
    margin-right: 4px;
}

.iw-domain-actions .dropdown-menu {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.iw-domain-actions .dropdown-item {
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
}

.iw-domain-actions .dropdown-item:hover {
    background: #f0f4ff;
    color: #294df0;
}

.iw-domain-actions .dropdown-item i {
    color: #294df0;
    margin-right: 6px;
}

/* Domain table enhancements */
.iw-domain-table .table-container {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f6;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.iw-domain-table .table {
    margin-bottom: 0;
}

.iw-domain-table .table thead th {
    background: #f8faff;
    border-bottom: 2px solid #eef1f6;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 14px 16px;
}

.iw-domain-table .table tbody tr {
    transition: background 0.2s ease;
    cursor: pointer;
}

.iw-domain-table .table tbody tr:hover {
    background: #f8faff;
}

.iw-domain-table .table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.iw-domain-table .table tbody td a {
    color: #294df0;
    font-weight: 600;
    text-decoration: none;
}

.iw-domain-table .table tbody td a:hover {
    color: #031041;
}

.iw-domain-table .table tbody td small {
    color: #9ca3af;
    font-size: 12px;
}

.iw-domain-table .label.status {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Domain Cards (mobile) */
.iw-domain-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.iw-domain-card:hover {
    border-color: #294df0;
    box-shadow: 0 4px 16px rgba(41, 77, 240, 0.1);
}

.iw-domain-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.iw-domain-card-check {
    flex-shrink: 0;
}

.iw-domain-card-name {
    flex-grow: 1;
    min-width: 0;
}

.iw-domain-card-name strong {
    display: block;
    font-size: 15px;
    color: #031041;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iw-domain-card-name small {
    color: #9ca3af;
    font-size: 12px;
}

.iw-domain-card-details {
    display: flex;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.iw-domain-card-details > div {
    display: flex;
    flex-direction: column;
}

.iw-domain-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.iw-domain-card-details span:not(.iw-domain-card-label) {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

@media (max-width: 767px) {
    .iw-domain-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .iw-domain-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .iw-btn-domain {
        justify-content: center;
        width: 100%;
    }

    .iw-domain-header {
        padding: 22px 20px;
    }

    .iw-domain-header h2 {
        font-size: 20px !important;
    }

    .iw-domain-actions .btn-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    .iw-btn-action {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* ============================================================
   Invoice consolidation info banner
   ============================================================ */

.iw-invoice-info-banner {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border: 1px solid #d4dbfc;
    border-left: 4px solid #294df0;
    border-radius: 14px;
    position: relative;
}

.iw-invoice-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #294df0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iw-invoice-info-icon i {
    color: #fff;
    font-size: 20px;
}

.iw-invoice-info-content {
    flex-grow: 1;
}

.iw-invoice-info-content h5 {
    font-size: 17px;
    font-weight: 800;
    color: #031041;
    margin-bottom: 6px;
}

.iw-invoice-info-content > p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.iw-invoice-info-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iw-invoice-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef1f6;
}

.iw-invoice-info-item > i {
    color: #294df0;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.iw-invoice-info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #031041;
    margin-bottom: 2px;
}

.iw-invoice-info-item span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.iw-invoice-info-item code {
    background: #eef1f6;
    color: #294df0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.iw-invoice-info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.iw-invoice-info-close:hover {
    color: #031041;
}

@media (max-width: 767px) {
    .iw-invoice-info-banner {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .iw-invoice-info-details {
        gap: 8px;
    }

    .iw-invoice-info-item {
        padding: 10px 12px;
    }
}

/* Invoice number tooltip */
.iw-inv-tip {
    cursor: pointer;
    border-bottom: 1px dashed #294df0;
    transition: color 0.2s ease;
}

.iw-inv-tip:hover {
    color: #294df0;
}

.popover {
    border-radius: 12px;
    border: 1px solid #eef1f6;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 360px;
}

.popover-body {
    font-size: 13px;
    line-height: 1.7;
    color: #374151;
    padding: 14px 18px;
}

/* ============================================================
   Invoice card (mobile) - extends iw-service-card
   ============================================================ */

.iw-invoice-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.iw-invoice-card:hover {
    border-color: #294df0;
    box-shadow: 0 4px 16px rgba(41, 77, 240, 0.1);
}

/* ============================================================
   Services / Products Page
   ============================================================ */

/* Service Cards (mobile) */
.iw-service-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.iw-service-card:hover {
    border-color: #294df0;
    box-shadow: 0 4px 16px rgba(41, 77, 240, 0.1);
}

.iw-service-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.iw-service-card-icon {
    flex-shrink: 0;
    font-size: 20px;
}

.iw-service-card-name {
    flex-grow: 1;
    min-width: 0;
}

.iw-service-card-name strong {
    display: block;
    font-size: 15px;
    color: #031041;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iw-service-card-name small {
    color: #9ca3af;
    font-size: 12px;
}

.iw-service-card-name small a {
    color: #294df0;
    text-decoration: none;
}

/* Hide original DirectAdmin login button from module output */
.module-client-area form[action*="CMD_LOGIN"] {
    display: none;
}

/* DirectAdmin login button (small - for lists) */
.iw-btn-da-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: #22b522;
    color: #fff !important;
    white-space: nowrap;
    line-height: 1.5;
    vertical-align: middle;
}

.iw-btn-da-sm img {
    height: 12px;
    filter: brightness(0) invert(1);
}

.iw-btn-da-sm:hover {
    background: #1a8c1a;
    color: #fff !important;
}

/* Align DA button with Visualizza Dettagli in home panels */
.div-service-buttons .iw-btn-da-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.div-service-buttons .btn-view-details {
    border-radius: 10px;
}

/* DirectAdmin login button (large - for details) */
.iw-btn-da {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a8c1a, #22b522);
    color: #fff !important;
    border: 2px solid #22b522;
    box-shadow: 0 4px 15px rgba(34, 181, 34, 0.3);
}

.iw-btn-da:hover {
    background: linear-gradient(135deg, #157015, #1a8c1a);
    border-color: #1a8c1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 181, 34, 0.4);
    color: #fff !important;
}

/* ============================================================
   Domain Details Page
   ============================================================ */

/* Detail info cards */
.iw-detail-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.iw-detail-card:hover {
    border-color: #294df0;
    box-shadow: 0 4px 20px rgba(41, 77, 240, 0.1);
}

.iw-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef1ff, #dce3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.iw-detail-icon i {
    font-size: 16px;
    color: #294df0;
}

.iw-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.iw-detail-value {
    font-size: 15px;
    font-weight: 700;
    color: #031041;
    word-break: break-all;
}

.iw-detail-value a {
    color: #294df0;
    text-decoration: none;
}

.iw-detail-value a:hover {
    color: #031041;
}

/* Addon rows */
.iw-addon-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.iw-addon-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef1ff, #dce3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iw-addon-icon i {
    font-size: 20px;
    color: #294df0;
}

.iw-addon-info {
    flex-grow: 1;
}

.iw-addon-info strong {
    font-size: 15px;
    color: #031041;
    display: block;
    margin-bottom: 4px;
}

/* Domain details responsive */
@media (max-width: 767px) {
    .iw-detail-card {
        padding: 16px;
    }

    .iw-addon-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   Sidebar Styles
   ============================================================ */

.iw-sidebar-card {
    border: 1px solid #eef1f6 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.iw-sidebar-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.iw-sidebar-header {
    background: linear-gradient(135deg, #0630b5 0%, #294df0 100%) !important;
    padding: 16px 20px !important;
    border-bottom: none !important;
}

.iw-sidebar-header .card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: 0.3px;
}

.iw-sidebar-header .card-title i {
    color: #fcb827 !important;
    margin-right: 4px;
}

.iw-sidebar-header .card-minimise {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.iw-sidebar-header .card-minimise:hover {
    color: #fff !important;
}

.iw-sidebar-header .badge {
    background: #fcb827 !important;
    color: #031041 !important;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Sidebar list items */
.iw-sidebar-card .list-group-item {
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 13px 20px 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    background: #fff;
}

.iw-sidebar-card .list-group-item:last-child {
    border-bottom: none !important;
}

.iw-sidebar-card .list-group-item:hover {
    background: #f0f4ff;
    color: #294df0;
    padding-left: 24px;
}

.iw-sidebar-card .list-group-item.active {
    background: #294df0 !important;
    color: #fff !important;
    border-color: #294df0 !important;
    font-weight: 600;
}

.iw-sidebar-card .list-group-item.active:hover {
    background: #1e3ed0 !important;
    padding-left: 24px;
}

.iw-sidebar-card .list-group-item.active i,
.iw-sidebar-card .list-group-item.active .sidebar-menu-item-icon {
    color: #fff !important;
}

/* Sidebar menu item wrapper */
.iw-sidebar-card .sidebar-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iw-sidebar-card .sidebar-menu-item-icon-wrapper {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.iw-sidebar-card .sidebar-menu-item-icon {
    color: #294df0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.iw-sidebar-card .list-group-item:hover .sidebar-menu-item-icon {
    color: #294df0;
}

.iw-sidebar-card .sidebar-menu-item-label {
    flex-grow: 1;
}

.iw-sidebar-card .sidebar-menu-item-badge .badge {
    background: #294df0 !important;
    color: #fff !important;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 600;
}

.iw-sidebar-card .list-group-item.active .sidebar-menu-item-badge .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

/* Sidebar card body */
.iw-sidebar-card .card-body {
    padding: 16px 20px;
}

/* Sidebar card footer */
.iw-sidebar-card .card-footer {
    background: #fafbfc;
    border-top: 1px solid #eef1f6;
    padding: 12px 20px;
}

/* Sidebar mobile select */
.iw-sidebar-select {
    border-radius: 10px !important;
    border: 1px solid #eef1f6 !important;
    padding: 10px 16px !important;
    font-size: 14px;
    color: #374151;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.iw-sidebar-select:focus {
    border-color: #294df0 !important;
    box-shadow: 0 0 0 3px rgba(41, 77, 240, 0.1) !important;
}

/* Override old sidebar styles */
.sidebar .iw-sidebar-card .list-group-item.active,
.sidebar .iw-sidebar-card .list-group-item.active:focus,
.sidebar .iw-sidebar-card .list-group-item.active:hover {
    background-color: #294df0 !important;
    border-color: #294df0 !important;
    color: #fff !important;
}

/* ============================================================
   Footer
   ============================================================ */

/* CTA Banner */
.iw-footer-cta {
    background: linear-gradient(135deg, #0630b5 0%, #294df0 100%);
    position: relative;
    overflow: hidden;
}

.iw-footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.iw-footer-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: rgba(252, 184, 39, 0.08);
    border-radius: 50%;
}

.iw-footer-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.iw-footer-cta-text h2 {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: none !important;
}

.iw-footer-cta-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 0;
}

.iw-footer-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.iw-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: #fcb827;
    color: #031041 !important;
    border: 2px solid #fcb827;
}

.iw-footer-cta-btn:hover {
    background: #e5a520;
    border-color: #e5a520;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 184, 39, 0.3);
}

.iw-footer-cta-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.iw-footer-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff !important;
    box-shadow: none;
}

/* Footer Main */
.iw-footer-main {
    background: #031041;
    padding: 60px 0 40px;
}

.iw-footer-brand {
    padding-right: 30px;
}

.iw-footer-logo {
    max-height: 45px;
    margin-bottom: 18px;
}

.iw-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.iw-footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.iw-footer-contacts li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iw-footer-contacts li i {
    color: #294df0;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.iw-footer-contacts a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iw-footer-contacts a:hover {
    color: #fcb827;
}

/* Social icons */
.iw-footer-social {
    display: flex;
    gap: 8px;
}

.iw-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 15px;
}

.iw-social-icon:hover {
    background: #294df0;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Footer headings */
.iw-footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

/* Footer links */
.iw-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iw-footer-links li {
    margin-bottom: 10px;
}

.iw-footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.iw-footer-links a:hover {
    color: #fcb827;
    transform: translateX(3px);
}

/* Copyright bar override */
footer.footer {
    background: #020c2e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 20px 0 !important;
}

footer.footer .copyright {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px;
}

footer.footer .nav-link {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 8px;
}

footer.footer .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

footer.footer .btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    border-radius: 8px;
}

footer.footer .btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* Hide old footer-section styles */
.footer-section .upper-portion-con {
    background-image: none !important;
}

/* Footer responsive */
@media (max-width: 767px) {
    .iw-footer-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 36px 0;
    }

    .iw-footer-cta-text h2 {
        font-size: 24px !important;
    }

    .iw-footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .iw-footer-cta-btn {
        justify-content: center;
        width: 100%;
    }

    .iw-footer-main {
        padding: 40px 0 20px;
    }

    .iw-footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .iw-footer-contacts {
        justify-content: center;
    }

    .iw-footer-social {
        justify-content: center;
    }

    footer.footer .copyright {
        text-align: center !important;
        float: none !important;
    }

    footer.footer ul {
        text-align: center !important;
    }
}

/* General client area overrides for consistency */
.sidebar .iw-sidebar-card .list-group-item i {
    position: relative !important;
    left: auto !important;
    top: auto !important;
}
