/* Sub-Admin Dashboard Premium Styling */

.sub-hero-section {
    position: relative;
    background: url('/assets/partner/img/sub_a_hero_bg.svg') no-repeat center center / cover;
    border-radius: 20px;
    padding: 28px 60px;
    height: 252px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
h1.sub-hero-title span{
    display: block;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 8px;
}
.op_sub-stats-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(140px, auto));
    gap: 13px 25px;
    margin-bottom: 20px;
}

.op_stat-card-v2 {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    height: 100%;
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}
.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.sub-hero-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sub-hero-title span {
    display: block;
}

.sub-hero-desc {
    color: rgba(255, 255, 255, 0.8);
        max-width: 500px;
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.5;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 14px;
}

/* Plan Badge/Pill */
.plan-pill-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-pill-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
height: 36px;
}

.plan-pill-v2 i {
    font-size: 16px;
    color: #fff;
}

.plan-expiry-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.plan-expiry-info span {
    display: block;
    font-weight: 600;
}

/* Hero Character visual */
.sub-hero-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}

.hero-character-v2 {
    width: 100%;
    max-width: 600px;
    height: auto;
    z-index: 2;
    position: relative;
    /* Removed drop-shadow to keep it clean if it's already in the PNG */
    object-fit: contain;
    object-position: right bottom;
}

/* Secondary Branding Section */
.sub-secondary-section {
    background: url('/assets/partner/img/sub_a_2nd_hero_bg.svg') no-repeat center center / cover;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sec-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sec-avatar-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 2px;
    background: #fff;
    overflow: hidden;
}

.sec-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.sec-text-wrapper {
    display: flex;
    flex-direction: column;
}

.sec-platform-name {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-date-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.sec-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.active-dot {
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00E676;
}

.sec-website-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
}

.sec-logo-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-main-logo {
    height: 40px;
    width: auto;
}

.sec-main-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

@media (max-width: 768px) {
    .sub-secondary-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .sec-info-left {
        flex-direction: column;
    }
    .sec-platform-name {
        justify-content: center;
        flex-direction: column;
    }
    .sec-status-line {
        justify-content: center;
        margin-top: 10px;
    }
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .sub-hero-section {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
    .sub-hero-visual {
        display: flex;
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        justify-content: center;
        height: 150px;
        margin-top: 20px;
    }
    .hero-character-v2 {
        max-width: 250px;
        height: 100%;
    }
    .sub-hero-content { max-width: 100%; text-align: center; margin: 0 auto; }
    .sub-hero-desc { margin-left: auto; margin-right: auto; }
    .plan-pill-wrapper { justify-content: center; }
}

@media (max-width: 576px) {
    .sub-hero-section {
        padding: 30px 20px;
        padding-bottom: 0 !important;
        height: 100% !important;
    }
    .plan-pill-wrapper { flex-direction: column; gap: 10px; }
}


/* --- Dashboard Stats & Table Section --- */

.op_stat-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.op_stat-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.op_stat-icon-circle.blue { background: rgba(26, 150, 241, 0.1); color: #1A96F1; }
.op_stat-icon-circle.light-blue { background: rgba(0, 188, 212, 0.1); color: #00BCD4; }
.op_stat-icon-circle.gray { background: rgba(100, 116, 139, 0.1); color: #64748B; }
.op_stat-icon-circle.blue-outline { border: 2px solid rgba(26, 150, 241, 0.2); color: #1A96F1; }

.op_stat-details {
    display: flex;
    flex-direction: column;
}

.op_stat-top-text {
        font-size: 10px;
    color: #1A96F1;
    font-weight: 400;
    margin: 0;
}

.op_stat-value {
    margin: 0;
        font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.op_stat-label {
    font-size: 15px;
    font-weight: 500;
    color: #9098A3;
}

/* .op_stat-graph {
    width: 80px;
    height: 40px;
} */

.op_stat-graph img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Recent Sign-ups Table (Adapted from OpNest) */
.op_recent-payments-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 150, 241, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.op_recent-payments-header {
    padding: 25px 30px;
}

.op_recent-payments-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A96F1;
    margin: 0;
}

.op_recent-payments-table thead th {
    background-color: rgba(26, 150, 241, 0.1) !important;
    padding: 15px 0px;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.op_recent-payments-table tbody td {
    padding: 8px 0px;
    vertical-align: middle;
    border-bottom: 1px dotted #E2E8F0;
    font-size: 14px;
    color: #1E293B;
}
table tr td{
        padding-block: 8px !important;
}

.op_payment-status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.op_payment-status-badge.completed { background: rgba(0, 164, 57, 0.1); color: #118D57; }
.op_payment-status-badge.pending { background: rgba(255, 171, 0, 0.1); color: #B76E00; }

/* Action Center Sidebar */
.op_action-center-card {
    background: linear-gradient(135deg, rgba(30, 167, 254, 0.80) 0%, #1A96F1 100%);
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(26, 150, 241, 0.2);
    height: auto;
}

.op_action-center-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
}

.op_action-section-label {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.op_action-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.op_action-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.op_action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.op_action-icon.circle { border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; }
.op_action-icon.square { background: rgba(255, 255, 255, 0.2); border-radius: 6px; }

.op_action-text {
    font-size: 14px;
    font-weight: 600;
}

.op_action-count {
    font-size: 18px;
    font-weight: 700;
}

.op_action-item.timeline {
    background: rgba(255, 255, 255, 0.1);
}

.timeline::before {
    content: none;
}

.op_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.op_dot.white { background: #fff; box-shadow: 0 0 5px #fff; }

.op_btn-action-outline {
    display: flex;
    width: 100%;
    background: #fff;
    color: #1A96F1 !important;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.op_btn-action-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .op_action-center-card, .op_support-center-card {
        margin-top: 30px;
    }
}

/* Support Snapshot Section (Green) */
.op_support-center-card {
    background: #00A76F;
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 167, 111, 0.2);
    height: 100%;
}

.op_support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
}

.op_support-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

.op_btn-support-tickets {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.op_btn-support-tickets:hover {
    background: #fff;
    color: #00A76F !important;
}

.op_support-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.op_support-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 25px;
    transition: transform 0.3s ease;
}

.op_support-item:hover {
    transform: translateX(5px);
}

.op_support-item-content {
    display: flex;
    flex-direction: column;
}

.op_support-count {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.op_support-label {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}



/* Support Banner Section */
.op_support-banner {
    background: url('/assets/partner/img/sub_a_support_bg.png') no-repeat center center / cover;
    text-align: center;
    height: 220px; 
    border-radius: 24px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.op_support-banner-content h4 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.op_support-banner-content p {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 35px;
}

.op_btn-support-banner {
    max-width: 320px;
    margin: 0 auto;
    display: inline-block;
    padding: 16px 40px;
    text-align: center;
    background-color: #fff;
    color: #1A96F1 !important;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.op_btn-support-banner:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background-color: #f8f9fa;
}

/* ========= Mobile Responsive ========= */
@media (max-width: 768px) {
    .op_support-banner {
        height: auto;
        margin-top: 0 !important;
        padding: 40px 20px;
    }
    .op_support-banner-content h4 {
        font-size: 28px;
    }
    .op_support-banner-content p {
        font-size: 16px;
    }
    .op_btn-support-banner {
        padding: 12px 30px;
        font-size: 16px;
    }
    .op_sub-stats-grid{
        grid-template-columns:auto;
    }
    .op_support-header{
        flex-direction: column;
            align-items: flex-start;
    }
    .op_stat-graph svg {
            width: 90px;
        height: 60px;
}
.op_stat-details{
    flex-direction: column;
    align-content: center;
    align-items: center;
}
.op_stat-label{
    font-size: 15px;
}
.op-dashboard-upgrades-row{
    margin-top: 4.5rem !important;
}
 .op_support-banner{
    margin-top: 2rem !important;
 }
}

/* Stats Card Styles (From User Dashboard V2) */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stats-left-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(140px, auto));
    gap: 50px 25px;
}

.stat-card-small-v2 {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    transition: transform 0.3s ease;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .stat-card-small-v2 {
        justify-content: center;
        text-align: center;
        padding: 15px;
    }
    .stat-info-col-v2 {
        align-items: center;
    }
    .stat-value-row-v2 {
        align-items: center;
    }
}

.stat-icon-circle-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info-col-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-meta-v2 {
    font-size: 10px;
    color: #1A96F1;
    font-weight: 400;
    margin: 0;
}

.stat-value-row-v2 {
    display: flex;
    flex-direction: column;
}

.stat-value-row-v2 .value {
    font-size: 43px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.stat-value-row-v2 .label {
    font-size: 20px;
    font-weight: 500;
    color: #9098A3;
}

@media (max-width: 992px) {
    /* Stack stats grid on mobile/tablet (Force 1 column) */
    .op_sub-stats-grid .stats-left-column {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

/* User Hero Section v2 (Ported from OpNest) */
.hero-section-v2 {
    position: relative;
    background: url('/assets/partner/img/user_hero_bg.svg') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 260px;
    height: auto;
    gap: 24px;
}

.hero-content {
    flex: 1 1 46%;
    max-width: 480px;
    position: relative;
    z-index: 3;
    min-width: 0;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-title span {
    display: inline-block;
    word-break: break-word;
}

.hero-subtitle {
    max-width: 420px;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.hero-plan-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    backdrop-filter: blur(10px);
    height: 36px;
    text-decoration: none;
    color: #fff;
}

.hero-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-left: 0;
}

.hero-image-container {
    position: relative;
    flex: 0 1 48%;
    max-width: 520px;
    width: 48%;
    z-index: 1;
    pointer-events: none;
    align-self: flex-end;
    margin-right: -20px;
    margin-bottom: -28px;
}

.hero-image-container img {
    width: 100%;
    max-height: 280px;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    display: block;
}

/* Responsive adjustments for Hero */
@media (max-width: 991px) {
    .hero-section-v2 {
        padding: 32px 24px 0;
        min-height: auto;
        height: auto;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0;
    }

    .hero-content {
        max-width: 100%;
        flex: none;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-container {
        position: relative;
        width: min(100%, 420px);
        max-width: 420px;
        flex: none;
        margin: 0 auto -8px;
    }

    .hero-image-container img {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .hero-section-v2 {
        height: 100%;
    }
    .hero-expiry-text {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}
