/* ========================================
   Riwise Theme - Müşteri Panel CSS
   Prefix: riwise-
   Tamamen bağımsız, site ile çakışmaz
   Box-shadow yok, border-radius: 5px
   ======================================== */

/* ========================================
   Status Badge Styles
   ======================================== */
.listingstatus span {
    font-size: 12px !important;
    padding: 5px 14px !important;
    text-align: center !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    border: none !important;
    color: #fff !important;
}

.listingstatus .wait {
    background: #ef4444 !important;
}

.listingstatus .answered {
    background: #3b82f6 !important;
}

.listingstatus .responded {
    background: #10b981 !important;
}

.listingstatus .active {
    background: #10b981 !important;
}

.listingstatus .process {
    background: #3b82f6 !important;
}

.listingstatus .resolved {
    background: #3b82f6 !important;
}

.listingstatus .autorenew {
    background: #8b5cf6 !important;
    margin-bottom: 0 !important;
}

/* Destek durumları */
.listingstatus .open {
    background: #10b981 !important;
}

.listingstatus .pending {
    background: #f59e0b !important;
}

.listingstatus .closed {
    background: #6b7280 !important;
}

.listingstatus .cancelled,
.listingstatus .canceled {
    background: #ef4444 !important;
}

.listingstatus .suspended {
    background: #f59e0b !important;
}

/* Body */
#riwise-client-panel {
    background: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Sidebar
   ======================================== */
.riwise-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #0b3c5d;
    overflow-y: auto;
    z-index: 1000;
    margin-left: -260px;
}

.riwise-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.riwise-logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

.riwise-welcome {
    display: block;
    padding: 15px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.riwise-menu {
    padding: 15px 0;
}

.riwise-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.riwise-menu ul li {
    position: relative;
}

.riwise-menu ul li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.riwise-menu ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.riwise-menu ul li a#riwise-active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-left-color: #fff;
}

.riwise-menu ul li a .fa,
.riwise-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.riwise-menu ul li ul.inner {
    display: none;
    background: rgba(0,0,0,0.2);
}

.riwise-menu ul li ul.inner.show {
    display: block;
}

.riwise-menu ul li ul.inner li a {
    padding-left: 50px;
    font-size: 13px;
}

.riwise-mobbtn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: #0b3c5d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.riwise-mobmenuclose {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ========================================
   Main Content Area
   ======================================== */
.riwise-rightcontent {
    min-height: 100vh;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

/* ========================================
   Header
   ======================================== */
.riwise-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 25px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.riwise-header-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.riwise-welcome-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.riwise-reseller-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 5px;
    border: 1px solid #bfdbfe;
}

.riwise-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.riwise-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.riwise-header-btn:hover {
    background: #0b3c5d;
    color: #fff;
    border-color: #0b3c5d;
}

.riwise-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Dropdown
   ======================================== */
.riwise-dropdown {
    position: relative;
}

.riwise-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
}

.riwise-dropdown:hover .riwise-dropdown-content {
    display: block;
}

.riwise-dropdown-head {
    padding: 15px 20px;
    color: #fff;
}

.riwise-dropdown-head h3 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
}

.riwise-dropdown-head h5 {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.riwise-dropdown-body {
    padding: 15px 0;
}

.riwise-dropdown-body a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease;
}

.riwise-dropdown-body a:hover {
    background: #f8fafc;
    color: #0b3c5d;
}

.riwise-dropdown-body a i {
    width: 18px;
    color: #64748b;
}

.riwise-dropdown-footer {
    border-top: 1px solid #e2e8f0;
    padding: 10px 20px;
}

.riwise-dropdown-footer a {
    display: block;
    padding: 8px;
    text-align: center;
    background: #fef2f2;
    color: #dc2626 !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}

/* Notifications */
.riwise-notifications .riwise-dropdown-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
}

.riwise-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.riwise-notif-item:last-child {
    border-bottom: none;
}

.riwise-notif-unread {
    background: #f0f9ff;
}

.riwise-notif-icon {
    color: #64748b;
    flex-shrink: 0;
}

.riwise-notif-text h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #475569;
}

.riwise-notif-empty {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
}

.riwise-notif-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.riwise-notif-empty h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.riwise-notif-empty h5 {
    margin: 0;
    font-size: 12px;
}

.riwise-notif-footer {
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
}

.riwise-notif-footer a {
    display: block;
    text-align: center;
    padding: 8px;
    color: #0b3c5d;
    font-size: 12px;
    font-weight: 500;
}

/* ========================================
   Client Content
   ======================================== */
.riwise-client-content {
    padding: 25px;
    max-width: 1400px;
}

/* ========================================
   Footer
   ======================================== */
.riwise-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 15px 25px;
    margin-top: 30px;
}

.riwise-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.riwise-footer-left i {
    margin-right: 5px;
}

/* ========================================
   Dashboard Stats
   ======================================== */
.riwise-stats {
    margin-bottom: 25px;
}

.riwise-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.riwise-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.riwise-stat-card:hover {
    border-color: #0b3c5d;
    transform: translateY(-2px);
}

.riwise-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.riwise-stat-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.riwise-stat-icon--green {
    background: #d1fae5;
    color: #059669;
}

.riwise-stat-icon--red {
    background: #fee2e2;
    color: #dc2626;
}

.riwise-stat-icon--yellow {
    background: #fef3c7;
    color: #d97706;
}

.riwise-stat-content {
    flex: 1;
}

.riwise-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.riwise-stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.riwise-stat-arrow {
    color: #94a3b8;
    font-size: 14px;
}

/* ========================================
   Reminder
   ======================================== */
.riwise-reminder {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    margin-bottom: 25px;
}

.riwise-reminder-icon {
    width: 50px;
    height: 50px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.riwise-reminder-content {
    flex: 1;
}

.riwise-reminder-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.riwise-reminder-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* ========================================
   Panel Block
   ======================================== */
.riwise-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.riwise-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.riwise-block-head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.riwise-block-head h4 i {
    margin-right: 8px;
    color: #0b3c5d;
}

.riwise-block-body {
    padding: 20px;
}

/* ========================================
   Alert
   ======================================== */
.riwise-alert {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.riwise-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.riwise-alert--info i {
    color: #2563eb;
    flex-shrink: 0;
}

.riwise-alert--info p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
}

/* ========================================
   Table
   ======================================== */
.riwise-table {
    width: 100%;
    border-collapse: collapse;
}

.riwise-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.riwise-table tbody td {
    padding: 12px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

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

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

/* ========================================
   Empty State
   ======================================== */
.riwise-empty {
    text-align: center;
    padding: 40px 20px;
}

.riwise-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.riwise-empty p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.riwise-empty span {
    font-size: 12px;
    color: #94a3b8;
}

/* ========================================
   Activity
   ======================================== */
.riwise-activity {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.riwise-activity-item {
    display: flex;
    gap: 12px;
}

.riwise-activity-dot {
    width: 8px;
    height: 8px;
    background: #0b3c5d;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.riwise-activity-content {
    flex: 1;
}

.riwise-activity-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #1e293b;
}

.riwise-activity-content span {
    font-size: 12px;
    color: #94a3b8;
}

.riwise-activity-content span i {
    margin-right: 3px;
}

/* ========================================
   News
   ======================================== */
.riwise-news {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.riwise-news:last-child {
    border-bottom: none;
}

.riwise-news-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.riwise-news-content {
    flex: 1;
}

.riwise-news-content h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.riwise-news-content h5 a {
    color: #1e293b;
    text-decoration: none;
}

.riwise-news-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #64748b;
}

.riwise-news-date {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 5px;
}

.riwise-news-date i {
    margin-right: 3px;
}

/* ========================================
   Buttons
   ======================================== */
.riwise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: #ffffff;
}

.riwise-btn i {
    font-size: 12px;
}

.riwise-btn--primary {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.riwise-btn--primary:hover {
    background: #1a8cd8;
}

.riwise-btn--success {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.riwise-btn--success:hover {
    background: #059669;
}

.riwise-btn--danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.riwise-btn--danger:hover {
    background: #dc2626;
}

.riwise-btn--outline {
    background: transparent;
    color: #475569;
    border-color: #e2e8f0;
}

.riwise-btn--outline:hover {
    background: #f8fafc;
    border-color: #1da1f2;
    color: #1da1f2;
}

.riwise-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ========================================
   Badge
   ======================================== */
.riwise-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    background: #f1f5f9;
    color: #475569;
}

.riwise-badge--muted {
    background: #f1f5f9;
    color: #94a3b8;
}

/* ========================================
   Utilities
   ======================================== */
.riwise-text-muted {
    font-size: 12px;
    color: #64748b;
}

.riwise-link {
    font-size: 12px;
    font-weight: 500;
    color: #0b3c5d;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .riwise-sidebar {
        margin-left: -260px;
    }

    .riwise-sidebar.open {
        margin-left: 0;
    }

    .riwise-mobbtn {
        display: flex;
    }

    .riwise-mobmenuclose {
        display: none;
    }

    .riwise-mobmenuclose.show {
        display: block;
    }

    .riwise-client-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .riwise-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .riwise-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .riwise-stat-num {
        font-size: 24px;
    }

    .riwise-stat-arrow {
        display: none;
    }

    .riwise-reminder {
        flex-direction: column;
        text-align: center;
    }

    .riwise-table {
        font-size: 12px;
    }

    .riwise-table thead th,
    .riwise-table tbody td {
        padding: 8px 6px;
    }

    .riwise-block-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .riwise-header-inner {
        flex-wrap: wrap;
    }

    .riwise-welcome-text {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
}

/* ========================================
   Client Panel - CP Prefix
   Müşteri paneli özel stilleri
   ======================================== */

/* Welcome Banner */
.cp-welcome-banner {
    background: url('../images/customer-dash-bg.jpg') center/cover no-repeat;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.cp-welcome-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 23, 59, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%);
    z-index: 0;
}

.cp-welcome-inner {
    position: relative;
    z-index: 1;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.cp-welcome-left {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cp-welcome-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-welcome-icon-box i {
    font-size: 24px;
    color: rgba(255,255,255,0.8);
}

.cp-welcome-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.cp-welcome-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cp-welcome-name {
    display: block;
    margin-bottom: 0;
}

.cp-welcome-name h3 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.cp-welcome-meta {
    display: flex;
    gap: 0;
    margin-top: 12px;
}

.cp-welcome-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.cp-welcome-meta-item:first-child {
    padding-left: 0;
}

.cp-welcome-meta-item:last-child {
    border-right: none;
}

.cp-welcome-meta-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.cp-welcome-meta-item i {
    font-size: 14px;
    color: var(--theme-primary);
}

.cp-welcome-right {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px;
    align-items: center;
}

/* Balance Box */
.cp-balance-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 10px 18px;
    text-align: center;
    grid-column: 1;
    grid-row: 1;
}

.cp-balance-amount {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Buttons */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cp-btn i {
    font-size: 11px;
}

.cp-btn-primary {
    background: #3b82f6;
    color: #fff;
    border: 1px solid #3b82f6;
    grid-column: 2;
    grid-row: 1;
}

.cp-btn-primary:hover {
    background: #60a5fa;
    border-color: #60a5fa;
}

.cp-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    grid-row: 2;
}

.cp-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.cp-btn-logout {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.8);
    grid-row: 2;
}

.cp-btn-logout:hover {
    background: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.6);
}

.cp-btn-outline {
    background: #f8f9fa;
    color: #64748b;
    border: 1px solid #ebeef3;
    font-size: 12px;
    padding: 6px 12px;
}

.cp-btn-outline:hover {
    background: #ebeef3;
    color: #475569;
}

.cp-btn-danger {
    background: #d32f2f;
    color: #fff;
}

.cp-btn-danger:hover {
    background: #c62828;
}

.cp-btn-sm {
    padding: 5px 10px;
    font-size: 11px;
}

/* Alert */
.cp-alert {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cp-alert-danger {
    border: 1px solid #ffcdd2;
}

.cp-alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    flex: 1;
}

.cp-alert-icon {
    width: 40px;
    height: 40px;
    background: #d32f2f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-alert-icon i {
    color: #fff;
    font-size: 16px;
}

.cp-alert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-alert-text strong {
    font-size: 14px;
    color: #d32f2f;
}

.cp-alert-text span {
    font-size: 13px;
    color: #c62828;
}

/* Quick Nav */
.cp-quick-nav {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.cp-quick-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-quick-nav-list li {
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.cp-quick-nav-list li:last-child {
    border-right: none;
}

.cp-quick-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.cp-quick-nav-list li a i {
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 5px;
}

.cp-quick-nav-list li a span {
    white-space: nowrap;
}

.cp-quick-nav-list li a:hover {
    background: #f8fafc;
    color: var(--theme-primary);
}

.cp-quick-nav-list li a:hover i {
    color: #fff;
    background: var(--theme-primary);
}

.cp-quick-nav-list li a.active {
    background: var(--theme-primary);
    color: #fff;
}

.cp-quick-nav-list li a.active i {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

/* Stats Row */
.cp-stats-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cp-stats-row > .cp-stat-card {
    flex: 1;
    min-width: 200px;
}

/* Stat Card */
.cp-stat-card {
    background: #fff;
    border: 1px solid #ebeef3;
    border-radius: 5px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.cp-stat-icon-warning {
    background: #ff9800;
    color: #fff;
}

.cp-stat-icon-danger {
    background: #f44336;
    color: #fff;
}

.cp-stat-icon-success {
    background: #4caf50;
    color: #fff;
}

.cp-stat-info {
    flex: 1;
}

.cp-stat-info strong {
    display: block;
    font-size: 14px;
    color: #2c3345;
    font-weight: 600;
}

.cp-stat-info span {
    font-size: 12px;
    color: #8c98a4;
}

/* Block - Modern Design */
.cp-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.cp-block-header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-block-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cp-block-icon {
    width: 42px;
    height: 42px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-block-icon i {
    font-size: 18px;
    color: #fff;
}

.cp-block-icon--blue { background: var(--theme-primary); }
.cp-block-icon--green { background: #10b981; }
.cp-block-icon--purple { background: #8b5cf6; }
.cp-block-icon--orange { background: #f59e0b; }
.cp-block-icon--red { background: #ef4444; }

.cp-block-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-block-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.cp-block-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

.cp-block-body {
    padding: 0;
}

/* YENİ: Başlıklar için kesin yüzdelik ve calc() oranları kullanıldı */
.cp-modern-list-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cp-modern-list-header span:nth-child(1) { width: 35%; flex: none; }
.cp-modern-list-header span:nth-child(2) { width: calc((65% - 60px) / 3); flex: none; text-align: center; }
.cp-modern-list-header span:nth-child(3) { width: calc((65% - 60px) / 3); flex: none; text-align: center; }
.cp-modern-list-header span:nth-child(4) { width: calc((65% - 60px) / 3); flex: none; text-align: center; }
.cp-modern-list-header span:nth-child(5) { width: 60px; flex: none; text-align: center; }

/* Ticket Header Fix */
.cp-ticket-header span:nth-child(1) { width: 35%; flex: none; }
.cp-ticket-header span:nth-child(2) { width: calc(((65% - 60px) / 3) * 2); flex: none; text-align: center; }
.cp-ticket-header span:nth-child(3) { width: calc((65% - 60px) / 3); flex: none; text-align: center; }
.cp-ticket-header span:nth-child(4) { width: 60px; flex: none; text-align: center; }

.cp-modern-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.cp-modern-item:last-child {
    border-bottom: none;
}

.cp-modern-item:hover {
    background: #fafbfd;
}

/* YENİ: Satır içerikleri için kesin hesaplamalar */
.cp-modern-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 35%;
    flex: none;
    min-width: 0;
}

.cp-modern-item-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-modern-item-icon i {
    font-size: 14px;
    color: var(--theme-primary);
}

.cp-item-icon--green .cp-modern-item-icon {
    background: #dcfce7;
}
.cp-item-icon--green .cp-modern-item-icon i { color: #10b981; }

.cp-item-icon--purple .cp-modern-item-icon {
    background: #ede9fe;
}
.cp-item-icon--purple .cp-modern-item-icon i { color: #8b5cf6; }

.cp-modern-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cp-modern-item-content strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-modern-item-content span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-modern-item-content span i {
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
}

.cp-modern-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 65%;
    flex: none;
    gap: 0;
    min-width: 0;
}

.cp-modern-item-price {
    width: calc((100% - 60px) / 3);
    flex: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cp-modern-item-price strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.cp-modern-item-price small {
    font-size: 11px;
    color: #94a3b8;
}

.cp-modern-item-date {
    width: calc((100% - 60px) / 3);
    flex: none;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cp-modern-item-status {
    width: calc((100% - 60px) / 3);
    flex: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ticket Tablosu için özel Hizmet Kolonu */
.cp-modern-item-service {
    width: calc(((100% - 60px) / 3) * 2);
    flex: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.cp-modern-item-service i {
    color: #94a3b8;
}

.cp-service-none {
    color: #cbd5e1;
}

.cp-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.cp-status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.cp-status-badge.status-suspended {
    background: #fee2e2;
    color: #991b1b;
}

.cp-status-badge.status-cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.cp-status-badge.status-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.cp-modern-item-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin: 0 14px;
    background: #f1f5f9;
    border-radius: 5px;
    color: #64748b;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cp-modern-item-action i {
    font-size: 12px;
}

.cp-modern-item-action:hover {
    background: var(--theme-primary);
    color: #fff;
}

/* Ticket Modern List */
.cp-ticket-modern-list .cp-ticket-item {
    padding: 14px 20px;
}

.cp-ticket-meta {
    gap: 0 !important;
}

/* Empty State */
.cp-empty {
    background: #f8fafc;
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.cp-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

/* Responsive (Mobil Düzeltmeleri) */
@media (max-width: 768px) {
    .cp-block-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .cp-modern-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cp-modern-item-info {
        width: 100%;
        flex: 1 1 100%;
    }

    .cp-modern-item-meta {
        width: 100%;
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .cp-modern-item-price,
    .cp-modern-item-date,
    .cp-modern-item-status,
    .cp-modern-item-service {
        width: auto !important;
        flex: none !important;
        text-align: left;
        justify-content: flex-start;
    }

    .cp-stats-row {
        flex-direction: column;
    }

    .cp-stat-card {
        width: 100%;
    }

    .cp-alert {
        flex-direction: column;
    }

    .cp-alert-content {
        width: 100%;
    }

    .cp-alert .cp-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Riwise Corporate Products Table
   ========================================================================== */

/* Nameserver Modal */
.ns-form {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.ns-modal-body {
    padding: 24px;
}

.ns-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.ns-info-box i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ns-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.ns-info-blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.ns-info-blue i {
    color: #3b82f6;
}

.ns-info-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ns-info-red i {
    color: #ef4444;
}

.ns-fields {
    margin-bottom: 0;
}

.ns-field-item {
    margin-bottom: 12px;
}

.ns-field-item:last-child {
    margin-bottom: 0;
}

.ns-field-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ns-field-item label i {
    color: #94a3b8;
    font-size: 11px;
    margin-right: 4px;
}

.ns-field-item input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ns-field-item input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.ns-field-item input::placeholder {
    color: #94a3b8;
}

.ns-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ns-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    text-decoration: none;
}

.ns-btn i {
    font-size: 12px;
}

.ns-btn-outline {
    background: #fff;
    color: #475569;
    border-color: #e2e8f0;
}

.ns-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ns-btn-primary {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.ns-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.riwise-products-wrapper {
    font-family: inherit;
}

/* Page Header */
.riwise-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

.riwise-page-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.riwise-page-header-icon {
    width: 48px;
    height: 48px;
    background: var(--theme-primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.riwise-page-header-icon i {
    font-size: 22px;
    color: #fff;
}

.riwise-page-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.riwise-page-header-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.riwise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s;
    color: #ffffff;
}

.riwise-btn i {
    font-size: 12px;
}

.riwise-btn-outline {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.riwise-btn-outline:hover {
    background: #f8fafc;
    border-color: #1da1f2;
    color: #1da1f2;
}

.riwise-btn-primary {
    background: #1da1f2;
    color: #fff;
    border: 1px solid #1da1f2;
}

.riwise-btn-primary:hover {
    background: #1a8cd8;
    color: #fff;
}

.riwise-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.riwise-page-header-actions .riwise-btn {
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
}

.riwise-page-header-actions .riwise-btn:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.riwise-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s;
    background: #64748b;
    color: #fff;
    border: 1px solid #64748b;
}

.riwise-btn-back:hover {
    background: #475569;
    color: #fff;
    text-decoration: none;
    border-color: #475569;
}

.riwise-btn-back i {
    font-size: 12px;
}

.riwise-form-centered {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.sayfayolu {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.sayfayolu a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.sayfayolu a:hover {
    color: var(--theme-primary);
}

.sayfayolu a i {
    font-size: 12px;
}

.sayfayolu > i {
    color: #cbd5e1;
    font-size: 10px;
}

.sayfayolu > span {
    color: #475569;
    font-weight: 500;
}

/* Filter Tabs */
.riwise-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.riwise-filter-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.riwise-filter-tabs a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.riwise-filter-tabs a.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

.riwise-filter-tabs a .count {
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.riwise-filter-tabs a.active .count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Stat Item */
.riwise-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

.riwise-stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 2px;
}

.riwise-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* Table Container */
.riwise-table-container {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    overflow: hidden;
}

/* DataTables Overrides */
.riwise-table-container .dataTables_wrapper {
    padding: 0;
}

.riwise-table-container .dataTables_length,
.riwise-table-container .dataTables_filter {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.riwise-table-container .dataTables_length label,
.riwise-table-container .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 -10px;
    flex-wrap: nowrap;
}

.datatbspan {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 32px;
}

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

.riwise-table-container .dataTables_filter input {
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 6px 12px;
    outline: none;
    font-size: 12px;
    transition: border-color 0.2s;
    height: 32px;
    width: 180px;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
}

.riwise-table-container .dataTables_filter input:focus {
    border-color: var(--theme-primary);
}

.riwise-table-container .dataTables_length select {
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 6px 10px;
    outline: none;
    font-size: 12px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
}

.riwise-table-container .dataTables_info,
.riwise-table-container .dataTables_paginate {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.riwise-table-container .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    margin: 0 2px;
}

.riwise-table-container .dataTables_paginate .paginate_button.current {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.riwise-table-container .dataTables_paginate .paginate_button:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.riwise-table-container .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Table Structure */
table.riwise-table {
    margin: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

table.riwise-table thead {
    background: #f1f5f9;
}

table.riwise-table thead th {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e2e8f0 !important;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    vertical-align: middle;
    white-space: nowrap;
}

table.riwise-table thead th i {
    color: #94a3b8;
    margin-right: 4px;
    font-size: 12px;
}

/* Column Widths */
.hidden-col { display: none !important; }

.order-col { width: 60px !important; text-align: center !important; }
.domain-col { text-align: left !important; }
.product-col { text-align: left !important; }
.profile-col { text-align: left !important; }
.name-col { text-align: left !important; }
.email-col { text-align: left !important; }
.phone-col { text-align: left !important; }
.price-col { width: 150px !important; text-align: center !important; }
.date-col { width: 140px !important; text-align: center !important; }
.status-col { width: 110px !important; text-align: center !important; }
.action-col { width: 100px !important; text-align: center !important; }

/* Sort arrows */
table.riwise-table thead th.sorting,
table.riwise-table thead th.sorting_asc,
table.riwise-table thead th.sorting_desc {
    background-image: none !important;
    position: relative;
    padding-right: 22px !important;
}

/* Table Body */
table.riwise-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

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

table.riwise-table tbody tr:hover {
    background-color: #fafbfd;
}

table.riwise-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #334155;
    font-size: 13px;
    border-top: none !important;
}

/* Order No Badge */
.order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.3px;
}

.order-badge-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--theme-primary);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* Tabs Wrapper */
.riwise-tabs-wrapper .tab {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.riwise-tabs-wrapper .tab li {
    margin-bottom: -2px;
}

.riwise-tabs-wrapper .tab li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.riwise-tabs-wrapper .tab li a:hover {
    color: #1e293b;
    background: #f8fafc;
}

.riwise-tabs-wrapper .tab li a.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
    background: #f8fafc;
}

.riwise-tabs-wrapper .tab li a i {
    font-size: 12px;
}

.riwise-tabs-wrapper .orderidno {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    margin-bottom: -2px;
    align-self: flex-end;
}

.riwise-tabs-wrapper .orderidno span {
    font-size: 11px;
    color: #94a3b8;
}

.riwise-tabs-wrapper .orderidno strong {
    font-size: 13px;
    color: #475569;
}

/* Email Forward Table */
.rw-email-forward-table {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.rw-email-forward-table table {
    width: 100%;
    border-collapse: collapse;
}

.rw-email-forward-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.rw-email-forward-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.rw-email-forward-table tbody tr:last-child td {
    border-bottom: none;
}

.rw-email-forward-table tbody tr:hover {
    background: #fafbfd;
}

.rw-email-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rw-email-prefix .rw-input {
    width: 120px;
}

.rw-email-domain {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.rw-email-forward-table td.text-center {
    text-align: center;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-main i {
    color: var(--theme-primary);
    font-size: 13px;
}

.product-main strong {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* Modern Card System */
.riwise-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.riwise-card:last-child {
    margin-bottom: 0;
}

.riwise-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.riwise-card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.riwise-card-header h4 i {
    color: #64748b;
    font-size: 13px;
}

.riwise-card-body {
    padding: 20px;
}

/* Badge System */
.riwise-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.riwise-badge i {
    font-size: 10px;
}

.riwise-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.riwise-badge-active {
    background: #dcfce7;
    color: #15803d;
}

.riwise-badge-waiting {
    background: #fef3c7;
    color: #b45309;
}

.riwise-badge-suspended {
    background: #fef2f2;
    color: #dc2626;
}

.riwise-badge-cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.riwise-badge-inprocess {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Info Table */
.riwise-info-table {
    margin-bottom: 0;
}

.riwise-info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.riwise-info-row:last-child {
    border-bottom: none;
}

.riwise-info-label {
    width: 40%;
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}

.riwise-info-value {
    flex: 1;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

.riwise-info-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.riwise-info-footer strong {
    color: #1e293b;
    font-weight: 600;
}

/* Badge System */
.riwise-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.riwise-badge i {
    font-size: 10px;
}

.riwise-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.riwise-badge-active {
    background: #dcfce7;
    color: #15803d;
}

.riwise-badge-waiting {
    background: #fef3c7;
    color: #b45309;
}

.riwise-badge-suspended {
    background: #fef2f2;
    color: #dc2626;
}

.riwise-badge-cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.riwise-badge-inprocess {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Button System */
.riwise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.riwise-btn i {
    font-size: 12px;
}

.riwise-btn-outline {
    background: #fff;
    color: #475569;
    border-color: #e2e8f0;
}

.riwise-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.riwise-btn-blue {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.riwise-btn-blue:hover {
    background: #1a8cd8;
    color: #fff;
}

.riwise-btn-orange {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

.riwise-btn-orange:hover {
    background: #ea580c;
    color: #fff;
}

.riwise-btn-green {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.riwise-btn-green:hover {
    background: #059669;
    color: #fff;
}

.riwise-btn-red {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.riwise-btn-red:hover {
    background: #dc2626;
    color: #fff;
}

.riwise-btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* Switch Toggle */
.riwise-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.riwise-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.riwise-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

.riwise-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.riwise-switch input:checked + .riwise-slider {
    background: #1da1f2;
}

.riwise-switch input:checked + .riwise-slider::before {
    transform: translateX(20px);
}

/* Select */
.riwise-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    color: #334155;
    background: #fff;
    outline: none;
    min-width: 200px;
}

/* Loading */
.riwise-loading {
    display: inline-flex;
    gap: 3px;
}

.riwise-loading div {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: riwise-bounce 1.4s infinite ease-in-out both;
}

.riwise-loading div:nth-child(1) { animation-delay: -0.32s; }
.riwise-loading div:nth-child(2) { animation-delay: -0.16s; }

@keyframes riwise-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive Summary Tab */
@media (max-width: 768px) {
    .riwise-service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 15px;
    }

    .riwise-service-image img {
        width: 70px;
    }

    .riwise-action-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .riwise-action-bar .riwise-btn {
        width: 100%;
        justify-content: center;
    }

    .riwise-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .riwise-detail-label {
        width: 100%;
    }

    .riwise-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Switch Toggle */
.riwise-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.riwise-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.riwise-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

.riwise-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.riwise-switch input:checked + .riwise-slider {
    background: #1da1f2;
}

.riwise-switch input:checked + .riwise-slider::before {
    transform: translateX(20px);
}

/* Select */
.riwise-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    color: #334155;
    background: #fff;
    outline: none;
    min-width: 250px;
    margin-bottom: 10px;
}

/* Alert Boxes */
.riwise-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.riwise-alert:last-child {
    margin-bottom: 0;
}

.riwise-alert i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.riwise-alert p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.riwise-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.riwise-alert-info i {
    color: #3b82f6;
}

.riwise-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.riwise-alert-success i {
    color: #10b981;
}

.riwise-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.riwise-alert-danger i {
    color: #ef4444;
}

.riwise-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.riwise-alert-warning i {
    color: #f59e0b;
}

/* Security Item */
.riwise-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.riwise-security-item:last-child {
    border-bottom: none;
}

.riwise-security-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.riwise-security-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.riwise-security-info h5 i {
    color: #64748b;
}

/* Success Message */
/* Profile Info */
.profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info strong {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.profile-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
}

.profile-default-badge i {
    font-size: 9px;
}

/* Price Column */
.price-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.price-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.price-period {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

/* Date Column */
.date-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.date-info i {
    color: #94a3b8;
    font-size: 12px;
}

/* Empty State */
.riwise-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    margin-top: 20px;
}

.riwise-empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.riwise-empty-state h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.riwise-empty-state p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Form Container */
.riwise-form-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 24px;
}

.riwise-form {
    width: 100%;
}

.riwise-form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.riwise-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.riwise-form-section-title {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.riwise-form-section-title i {
    color: var(--theme-primary);
    font-size: 12px;
}

.riwise-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.riwise-form-row:last-child {
    margin-bottom: 0;
}

.riwise-form-group {
    flex: 1;
    margin-bottom: 16px;
}

.riwise-form-group:last-child {
    margin-bottom: 0;
}

.riwise-form-group.riwise-form-group-sm {
    flex: 0 0 120px;
}

.riwise-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.riwise-form-group label i {
    color: #94a3b8;
    margin-right: 6px;
    font-size: 11px;
}

.riwise-form-group input[type="text"],
.riwise-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.riwise-form-group input[type="text"]:focus,
.riwise-form-group textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.riwise-form-group input[type="text"]::placeholder,
.riwise-form-group textarea::placeholder {
    color: #94a3b8;
}

.riwise-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.riwise-form-checkbox {
    display: flex;
    align-items: center;
}

.riwise-form-checkbox input[type="checkbox"] {
    display: none;
}

.riwise-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.riwise-form-checkbox label .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.riwise-form-checkbox input[type="checkbox"]:checked + label .checkbox-custom {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

.riwise-form-checkbox input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    font-size: 10px;
    color: #fff;
}

.riwise-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .riwise-page-header {
        margin: 0 0 15px 0;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    table.riwise-table thead th,
    table.riwise-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .product-sub span {
        font-size: 10px;
    }

    .riwise-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .riwise-form-group.riwise-form-group-sm {
        flex: 1;
    }

    .riwise-form-actions {
        flex-direction: column;
    }

    .riwise-form-actions .riwise-btn {
        width: 100%;
        justify-content: center;
    }

    .order-col,
    .date-col {
        display: none !important;
    }

    /* Tab responsive */
    .riwise-tabs-wrapper .tab {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .riwise-tabs-wrapper .tab li {
        flex-shrink: 0;
    }

    .riwise-tabs-wrapper .formcon {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .riwise-tabs-wrapper .yuzde30,
    .riwise-tabs-wrapper .yuzde70 {
        width: 100%;
    }

    .riwise-tabs-wrapper input.yuzde33 {
        width: 100%;
    }

    .riwise-table-container .dataTables_filter input {
        width: 100%;
        min-width: auto;
    }


/* ============================================
   WHOIS Section Modern Styles
   ============================================ */
}

.rw-status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

.rw-status-warning {
    background: #fef3c7;
}

.rw-status-warning i {
    color: #d97706;
}

.rw-cancellation-status h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1e293b;
}

.rw-cancellation-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.rw-cancel-item {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.rw-cancel-item:last-child {
    border-bottom: none;
}

.rw-cancel-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.rw-cancel-value {
    display: block;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

/* ============================================
   WHOIS Section Modern Styles
   ============================================ */

/* Contact Tabs */
.rw-contact-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 0 16px 0;
    list-style: none;
    margin: 0;
    border-bottom: 2px solid #e2e8f0;
}

.rw-contact-tabs li {
    list-style: none;
}

.rw-contact-tabs li a.tablinks {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.rw-contact-tabs li a.tablinks:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.rw-contact-tabs li a.tablinks.active {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.rw-contact-tabs li a.tablinks i {
    font-size: 14px;
}

.rw-tab-action {
    margin-left: auto;
}

/* Whois Card */
.rw-whois-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.rw-whois-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.rw-whois-header i {
    font-size: 18px;
    color: #1da1f2;
}

.rw-whois-header span {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.rw-whois-body {
    padding: 20px;
}

.rw-whois-select-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rw-whois-select-row .rw-select {
    min-width: 280px;
    flex: 1;
}

.rw-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rw-checkbox input {
    display: none;
}

.rw-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.rw-checkbox input:checked + .rw-checkbox-mark {
    background: #1da1f2;
    border-color: #1da1f2;
}

.rw-checkbox input:checked + .rw-checkbox-mark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro', 'FontAwesome';
    font-size: 11px;
    color: #fff;
    font-weight: 900;
}

.rw-checkbox-text {
    font-size: 13px;
    color: #64748b;
}

/* Profile Name */
.rw-profile-name {
    margin-bottom: 16px;
}

.rw-profile-name input {
    width: 100%;
    max-width: 300px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
}

.rw-profile-name input:focus {
    outline: none;
    border-color: #1da1f2;
}

/* Whois Fields */
.rw-whois-fields {
    margin-top: 16px;
}

.rw-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.rw-field {
    flex: 1;
    min-width: 150px;
}

.rw-field-sm {
    flex: 0 0 100px;
}

.rw-field-grow {
    flex: 2;
}

.rw-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.rw-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.rw-field input:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29,161,242,0.1);
}

/* Protection Wrapper */
.rw-protection-wrapper {
    padding: 20px 0;
}

.rw-protection-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.rw-protection-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    color: #fff;
}

.rw-protection-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rw-protection-icon i {
    font-size: 26px;
    color: #fff;
}

.rw-protection-info h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.rw-protection-info p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.rw-protection-body {
    padding: 20px;
}

.rw-protection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.rw-protection-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rw-protection-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.rw-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.rw-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rw-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: 0.3s;
}

.rw-switch-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.rw-switch input:checked + .rw-switch-slider {
    background: #10b981;
}

.rw-switch input:checked + .rw-switch-slider::before {
    transform: translateX(22px);
}

.rw-protection-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rw-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.rw-price-period {
    font-size: 12px;
    color: #64748b;
}

.rw-protection-endtime {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
}

.rw-protection-endtime i {
    color: #94a3b8;
}

/* ============================================
   Additional Domain Product Styles
   ============================================ */

/* Transfer Action */
.rw-transfer-action {
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 16px;
}

.rw-transfer-desc {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Success Message */
.rw-success-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rw-success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.rw-success-icon i {
    font-size: 40px;
    color: #10b981;
}

.rw-success-message h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #15803d;
}

.rw-success-message p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Docs Table */
.rw-docs-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.rw-docs-table {
    padding: 20px;
}

.rw-docs-table table {
    border-collapse: collapse;
    width: 100%;
}

.rw-docs-table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.rw-docs-table tbody td {
    padding: 14px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.rw-docs-table tbody tr:hover {
    background: #fafbfd;
}

/* Input Group */
.rw-input-group {
    display: flex;
    gap: 8px;
}

.rw-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
}

.rw-input-group input:focus {
    outline: none;
    border-color: #1da1f2;
}

.rw-file-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    cursor: pointer;
}

.rw-file-input:focus {
    outline: none;
    border-color: #1da1f2;
    background: #fff;
}

/* Textarea */
.rw-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s;
}

.rw-form textarea:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29,161,242,0.1);
}

.rw-form textarea::placeholder {
    color: #94a3b8;
}

/* Alert Warning */
.rw-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.rw-alert-warning i {
    color: #f59e0b;
}

.rw-alert-warning p {
    color: #b45309;
}

/* ============================================
   Form Input Styles (Global rw- support)
   ============================================ */

/* Input */
.rw-input,
.rw-form input[type="text"],
.rw-form input[type="email"],
.rw-form input[type="password"],
.rw-form input[type="url"],
.rw-form input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.rw-input:focus,
.rw-form input[type="text"]:focus,
.rw-form input[type="email"]:focus,
.rw-form input[type="password"]:focus,
.rw-form input[type="url"]:focus,
.rw-form input[type="number"]:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29,161,242,0.1);
}

.rw-input::placeholder,
.rw-form input::placeholder {
    color: #94a3b8;
}

/* Select */
.rw-select,
.rw-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.rw-select:focus,
.rw-form select:focus {
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29,161,242,0.1);
}

/* Radio */
.rw-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rw-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rw-radio input[type="radio"] {
    display: none;
}

.rw-radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.rw-radio input[type="radio"]:checked + .rw-radio-mark {
    border-color: #1da1f2;
    background: #fff;
}

.rw-radio input[type="radio"]:checked + .rw-radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #1da1f2;
    border-radius: 50%;
}

.rw-radio-text {
    font-size: 13px;
    color: #475569;
}

/* Forwarding Form */
.rw-forwarding-form {
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* CNS List */
.rw-cns-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Empty State */
.rw-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.rw-empty-state i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.rw-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Inline Form */
.rw-inline-form .rw-form-row {
    align-items: flex-end;
}

/* DNS Records Table Override */
.rw-form-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.rw-form-section table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.rw-form-section table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.rw-form-section table tbody tr:hover {
    background: #fafbfd;
}

.rw-form-section table tbody tr:last-child td {
    border-bottom: none;
}

/* DNS Record Add Row */
.rw-form-section table input[type="text"],
.rw-form-section table input[type="number"],
.rw-form-section table select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.rw-form-section table input:focus,
.rw-form-section table select:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29,161,242,0.1);
}

/* Edit/Show wrap overrides for DNS */
.dns-record-type {
    font-weight: 600;
    color: #1e293b;
    font-size: 12px;
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.dns-record-name .show-wrap,
.dns-record-value .show-wrap {
    font-size: 13px;
    color: #334155;
    word-break: break-all;
}

.dns-record-name .edit-wrap input,
.dns-record-value .edit-wrap input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #1da1f2;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    box-sizing: border-box;
}

.edit-wrap-ttl select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #1e293b;
}

.edit-wrap-priority input {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #1e293b;
    width: 80px;
}

.show-wrap-ttl {
    font-size: 12px;
    color: #64748b;
}

.show-wrap-priority {
    font-size: 12px;
    color: #64748b;
}

/* Small button overrides for DNS actions */
.sbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
    margin: 0 2px;
}

.sbtn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sbtn.green,
.sbtn.mio-ajax-submit[href*="save"] {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.sbtn.green:hover {
    background: #bbf7d0;
}

.sbtn.red {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.sbtn.red:hover {
    background: #fecaca;
}

.editing-active td {
    background: #eff6ff !important;
}

/* Email Forwards Table */
#getEmailForwards_tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

#getEmailForwards_tbody input[type="text"],
#getEmailForwards_tbody input[type="email"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    box-sizing: border-box;
}

/* Domain Docs Table */
.domain-docs-area table {
    width: 100%;
    border-collapse: collapse;
}

.domain-docs-area table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

/* CTOC Transfer Table */
#ctoc_s_t_list {
    border-collapse: collapse;
    width: 100%;
}

#ctoc_s_t_list th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

#ctoc_s_t_list td {
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Template Loader */
#template-loader,
#template-loaderx,
#template-loader2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #94a3b8;
}

/* Listing Status (reused) */
.listingstatus {
    display: inline-block;
}

.listingstatus .active {
    background: #dcfce7;
    color: #15803d;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.listingstatus .process {
    background: #fef3c7;
    color: #b45309;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.listingstatus .wait {
    background: #fef2f2;
    color: #dc2626;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* DNS Record Add Form */
.DomainModuleChildPage {
    padding: 20px 0;
}

.DomainModuleChildPage table {
    width: 100%;
    border-collapse: collapse;
}

.DomainModuleChildPage table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.DomainModuleChildPage table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.DomainModuleChildPage table input[type="text"],
.DomainModuleChildPage table input[type="number"],
.DomainModuleChildPage table select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
}

.DomainModuleChildPage table input:focus,
.DomainModuleChildPage table select:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 3px rgba(29,161,242,0.1);
}

/* DNS Add Row Button */
.add-dns-record {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.add-dns-record:hover {
    background: #059669;
    color: #fff;
}

/* ============================================
   DNS Table Styles
   ============================================ */

.rw-dns-table {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.rw-dns-table table {
    width: 100%;
    border-collapse: collapse;
}

.rw-dns-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.rw-dns-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.rw-dns-table tbody tr:hover {
    background: #fafbfd;
}

.rw-dns-table .rw-select {
    width: 100%;
    min-width: 100px;
}

.rw-dns-table .rw-input {
    width: 100%;
    padding: 8px 12px;
}

.rw-dns-table td.text-center {
    text-align: center;
}

