/* Partner Profile - Enhanced Styling */

.partner-profile-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    color: var(--color-platinum-grey);
}

/* Profile Header */
.profile-header {
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(243, 156, 18, 0.05));
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 16px;
}

.header-content {
    text-align: center;
    margin-bottom: 24px;
}

.profile-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-solar-yellow);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.profile-subtitle {
    font-size: 15px;
    color: var(--color-cool-slate);
    margin: 0;
    line-height: 1.5;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(29, 29, 29, 0.8);
    border: 1px solid rgba(113, 124, 126, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(42, 52, 57, 0.9);
    border-color: rgba(241, 196, 15, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 32px;
    color: var(--color-solar-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 32px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-solar-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

/* Loading State */
.profile-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 32px;
    gap: 20px;
}

.profile-loading-state p {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Empty State */
.profile-empty-state,
.profile-permission-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    gap: 20px;
    text-align: center;
    background: rgba(29, 29, 29, 0.4);
    border: 1px dashed rgba(113, 124, 126, 0.4);
    border-radius: 16px;
}

.empty-icon,
.permission-icon {
    font-size: 64px;
    color: var(--color-matte-grey);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i,
.permission-icon i {
    font-size: 64px;
}

.profile-empty-state h3,
.profile-permission-denied h3 {
    color: var(--color-platinum-grey);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.profile-empty-state p,
.profile-permission-denied p {
    color: var(--color-cool-slate);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

/* Tab Bar */
.pp-tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    padding: 14px;
    background: rgba(22, 22, 22, 0.9);
    border: 1px solid rgba(113, 124, 126, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pp-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(113, 124, 126, 0.3);
    background: rgba(29, 29, 29, 0.7);
    color: var(--color-platinum-grey);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
    flex: 1;
    position: relative;
}

.pp-tab::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-solar-yellow);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.pp-tab:hover:not(.active) {
    background: rgba(42, 52, 57, 0.9);
    border-color: rgba(241, 196, 15, 0.5);
    transform: translateY(-2px);
}

.pp-tab:hover:not(.active)::before {
    width: 60%;
}

.pp-tab.active {
    background: linear-gradient(135deg, #F1C413, #c89b12);
    border-color: #F1C413;
    color: #0a0a0a;
    box-shadow: 0 6px 16px rgba(241, 196, 15, 0.4);
    font-weight: 700;
}

.pp-tab.active::before {
    width: 100%;
    background: #0a0a0a;
}

.pp-tab-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-tab-icon i {
    font-size: 18px;
}

.pp-tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.25);
    color: var(--color-solar-yellow);
    font-size: 12px;
    font-weight: 700;
}

.pp-tab.active .pp-tab-pill {
    background: rgba(10, 10, 10, 0.3);
    color: #0a0a0a;
}

/* Profile Card */
.partner-profile-card {
    background: linear-gradient(180deg, rgba(26,26,26,0.95), rgba(20,20,20,0.9));
    border: 1px solid rgba(113, 124, 126, 0.45);
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.partner-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-color: rgba(241, 196, 15, 0.5);
}

/* Section Header */
.pp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

.pp-section-header h2 {
    margin: 0;
    color: var(--color-solar-yellow);
    font-weight: 600;
    font-size: 24px;
}

.pp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.2);
    color: var(--color-solar-yellow);
    font-size: 14px;
    font-weight: 700;
}

/* Form Styling */
.partner-profile-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.partner-profile-page .form-group {
    margin-bottom: 16px;
}

.partner-profile-page .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--color-platinum-grey);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-profile-page .form-control {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(113,124,126,0.5);
    color: var(--color-platinum-grey);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.partner-profile-page .form-control:hover {
    border-color: rgba(241, 196, 15, 0.5);
    background: rgba(18,18,18,0.95);
}

.partner-profile-page .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241,196,15,0.15);
    border-color: var(--color-solar-yellow);
    background: rgba(22,22,22,0.95);
}

.partner-profile-page textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.partner-profile-page select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1C413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

.partner-profile-page select.form-control option {
    background: rgba(22, 22, 22, 0.98);
    color: var(--color-platinum-grey);
    padding: 12px;
}

.partner-profile-page input[type="checkbox"] {
    accent-color: var(--color-solar-yellow);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Button Styling */
.partner-profile-page .dk-btn {
    min-height: 44px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.partner-profile-page .dk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.partner-profile-page .dk-btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
}

.partner-profile-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(113, 124, 126, 0.25);
}

/* Table Styling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin-bottom: 24px;
}

.partner-profile-page .dk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.partner-profile-page .dk-table th {
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(42, 52, 57, 0.95), rgba(35, 45, 50, 0.9));
    color: var(--color-solar-yellow);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.4);
    text-align: left;
    white-space: nowrap;
    vertical-align: top;
}

.partner-profile-page .dk-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(113, 124, 126, 0.15);
    color: var(--color-platinum-grey);
    vertical-align: middle;
    font-size: 13px;
}

.partner-profile-page .dk-table tbody tr {
    transition: all 0.3s ease;
}

.partner-profile-page .dk-table tbody tr:hover {
    background: rgba(241, 196, 15, 0.08);
    transform: scale(1.002);
}

.partner-profile-page .dk-table tbody tr:last-child td {
    border-bottom: none;
}

/* Toast Messages */
.dk-success-text {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    font-weight: 500;
}

.dk-success-text::before {
    content: '';
    font-family: 'bootstrap-icons';
    content: '\f26b'; /* bi-check-circle-fill */
    font-size: 18px;
}

.dk-error-text {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: var(--color-coral-orange);
    font-weight: 500;
}

.dk-error-text::before {
    content: '';
    font-family: 'bootstrap-icons';
    content: '\f33a'; /* bi-exclamation-triangle-fill */
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pp-tab-bar {
        gap: 8px;
        padding: 12px;
    }

    .pp-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .partner-profile-page {
        padding: 24px 16px 48px;
    }

    .profile-header {
        padding: 24px 16px;
    }

    .profile-title {
        font-size: 28px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .partner-profile-page .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partner-profile-card {
        padding: 20px 18px;
    }

    .pp-tab-bar {
        flex-direction: column;
        gap: 8px;
    }

    .pp-tab {
        width: 100%;
        justify-content: flex-start;
    }

    .table-wrapper {
        border-radius: 8px;
    }

    .partner-profile-page .dk-table th,
    .partner-profile-page .dk-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 24px;
    }

    .profile-subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-value {
        font-size: 20px;
    }

    .pp-tab {
        font-size: 12px;
        padding: 10px 12px;
    }

    .pp-tab-icon {
        font-size: 16px;
    }

    .partner-profile-card {
        padding: 16px;
    }

    .partner-profile-page .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .partner-profile-page .dk-btn {
        width: 100%;
    }
}


/* Pagination Info */
.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(113, 124, 126, 0.2);
}

.pagination-details {
    color: var(--color-cool-slate);
    font-size: 14px;
}

.pagination-details strong {
    color: var(--color-solar-yellow);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-platinum-grey);
}

.page-size-select {
    background-color: rgba(10, 10, 10, 0.9);
    color: var(--color-platinum-grey);
    border: 1px solid rgba(113, 124, 126, 0.5);
    border-radius: 6px;
    padding: 6px 32px 6px 10px;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1C413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.page-size-select:hover {
    border-color: rgba(241, 196, 15, 0.5);
}

.page-size-select:focus {
    outline: none;
    border-color: var(--color-solar-yellow);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.15);
}

/* Pagination Navigation */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 32px;
    border-top: 1px solid rgba(113, 124, 126, 0.2);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(29, 29, 29, 0.8);
    border: 1px solid rgba(113, 124, 126, 0.5);
    border-radius: 8px;
    color: var(--color-platinum-grey);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(42, 52, 57, 0.9);
    border-color: rgba(241, 196, 15, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    margin: 0 12px;
}

.pagination-page {
    min-width: 38px;
    height: 38px;
    displ
