:root {
    --smm-primary-color: #ff9900; 
    --smm-secondary-color: #e68a00; 
    --smm-sidebar-bg: #1c2e4a; 
    --smm-sidebar-hover: #294265; 
    --smm-text-light: #f1f1f1;
    --smm-transition: all 0.3s ease-in-out;
}
.pro-smm-dashboard-wrapper {
    display: flex;
    min-height: 85vh;
    background: #f8f9fc;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}
.pro-smm-sidebar {
    width: 250px;
    background: var(--smm-sidebar-bg);
    color: var(--smm-text-light);
    padding: 20px 0;
    flex-shrink: 0;
    transition: var(--smm-transition);
}
.pro-smm-logo { font-size: 1.5em; font-weight: 700; padding: 10px 20px 30px; color: var(--smm-text-light); }
.pro-smm-logo .dashicons { color: var(--smm-primary-color); font-size: 1.1em; margin-right: 8px; }
.pro-smm-menu-group { margin-bottom: 30px; }
.pro-smm-menu-title { text-transform: uppercase; font-size: 0.8em; font-weight: 600; color: #8fa0c0; padding: 10px 25px; margin-bottom: 5px; }
.pro-smm-menu-item {
    display: flex; align-items: center; color: var(--smm-text-light); text-decoration: none;
    padding: 15px 25px; transition: all 0.2s; font-size: 1em; font-weight: 500;
}
.pro-smm-menu-item .dashicons { margin-right: 15px; }
.pro-smm-menu-item:hover { background: var(--smm-sidebar-hover); color: #fff; }
.pro-smm-menu-item.active {
    background: var(--smm-primary-color); box-shadow: 5px 0 0 var(--smm-primary-color) inset;
    color: var(--smm-sidebar-bg); position: relative; font-weight: 700;
}
.pro-smm-main-content { flex-grow: 1; padding: 30px 40px; }
.pro-smm-header-top { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding-bottom: 20px; }
.pro-smm-balance { font-size: 1.1em; font-weight: 600; color: #444; }
.pro-smm-balance .dashicons { color: var(--smm-primary-color); margin-right: 5px; }
.pro-smm-claim-button {
    background: var(--smm-primary-color); color: #fff; padding: 10px 18px; border-radius: 8px;
    text-decoration: none; font-weight: 600; transition: background-color 0.2s;
}
.pro-smm-claim-button:hover { background: var(--smm-secondary-color); }
.pro-smm-greeting { font-size: 2.2em; font-weight: 800; color: #1f2d3d; margin-top: 0; margin-bottom: 30px; }
#pro-smm-dynamic-content { min-height: 400px; }
.pro-smm-loading-initial, .pro-smm-loading { text-align: center; padding: 50px; font-size: 1.2em; color: var(--smm-primary-color); }

.pro-smm-hamburger-icon {
    display: none;
    background: var(--smm-sidebar-bg);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--smm-sidebar-hover);
}

.promosync-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.promosync-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border-top: 5px solid;
}
.promosync-stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
.promosync-stat-card h4 { font-size: 1em; margin: 0 0 10px; color: #777; font-weight: 500; }
.promosync-stat-card .promosync-value { font-size: 2.2em; font-weight: 800; margin: 0; }

.stat-total { border-color: var(--smm-primary-color); }
.stat-total .promosync-value { color: var(--smm-primary-color); }
.stat-completed { border-color: #27ae60; }
.stat-completed .promosync-value { color: #27ae60; }
.stat-failed { border-color: #cc3333; }
.stat-failed .promosync-value { color: #cc3333; }

@media (max-width: 900px) {
    .pro-smm-sidebar[data-state="open"] ~ .pro-smm-main-content .pro-smm-hamburger-icon {
        display: none !important;
    }
}
.pro-smm-hamburger-icon .dashicons { font-size: 1.2em; margin-right: 8px; }

.mobile-close { display: none; }

.pro-smm-wizard { background: #fff; border-radius: 12px; padding: 25px; border: 1px solid #eee; }
.pro-smm-wizard-steps { display: flex; justify-content: space-between; margin-bottom: 30px; overflow-x: auto; }
.pro-smm-step-header { flex: 1; text-align: center; padding: 12px 6px; border-radius: 8px; background: #ffe6cc; color: #cc6600; font-weight: 600; margin: 0 4px; transition: var(--smm-transition); min-width: 80px; }
.pro-smm-step-header.active { background: var(--smm-primary-color); color: #1f2d3d; box-shadow: 0 4px 10px rgba(255, 153, 0, 0.4); font-weight: 700; }
.pro-smm-wizard-step { display: none; }
.pro-smm-wizard-step.active { display: block; }
.pro-smm-wizard-nav { display: flex; justify-content: space-between; margin-top: 25px; }
#pro-smm-prev, #pro-smm-next { border: none; margin: 0 10px; padding: 12px 26px; border-radius: 8px; font-weight: 700; cursor: pointer; width: 45%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transition: background 0.2s, opacity 0.2s; }
#pro-smm-next { background: var(--smm-primary-color); color: #1f2d3d; }
#pro-smm-next:hover:not(:disabled) { background: var(--smm-secondary-color); }
#pro-smm-next:disabled { background: #ffc266; cursor: not-allowed; }
#pro-smm-prev { background: #fff; color: var(--smm-primary-color); border: 1px solid var(--smm-primary-color) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

.pro-smm-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .pro-smm-form select, .pro-smm-form textarea { width: 100%; margin-bottom: 15px; padding: 12px; border-radius: 8px; border: 1px solid #ddd; font-size: 1em; box-sizing: border-box; }
.pro-smm-form label { font-weight: 600; margin-top: 15px; margin-bottom: 5px; display: block; color: #444; }
.pro-smm-result-box { text-align: center; padding: 15px; border-radius: 8px; margin-top: 20px; font-weight: 600; }
.pro-smm-result-success { background: #e8fff3; color: #27ae60; border: 1px solid #27ae60; }
.pro-smm-result-error { background: #ffdada; color: #cc3333; border: 1px solid #cc3333; }

#pro-smm-service-details, .pro-smm-price-box { background: #fff8e6; border: 1px solid #ffcc66; padding: 15px; border-radius: 8px; margin-top: 10px; font-size: 0.95em; }
.pro-smm-price-box { font-size: 1.2em; color: #cc6600; font-weight: bold; text-align: center; margin-top: 15px; }

.pro-smm-delivery-options { display: flex; gap: 20px; margin-top: 15px; margin-bottom: 15px; }
.pro-smm-delivery-card { flex: 1; background: #fff; border: 2px solid #ddd; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: var(--smm-transition); }
.pro-smm-delivery-card:hover { border-color: #ff9900; box-shadow: 0 4px 15px rgba(255, 153, 0, 0.1); }
.pro-smm-delivery-card.active { border-color: var(--smm-primary-color); background: #fff8e6; box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2); }
.pro-smm-delivery-card strong { display: block; font-size: 1.2em; color: var(--smm-primary-color); margin-bottom: 5px; }
.pro-smm-delivery-card i { font-size: 2em; margin-bottom: 10px; display: block; color: var(--smm-primary-color); }

.pro-smm-drip-options { background: #f7f7f7; border: 1px solid #eee; padding: 15px; border-radius: 8px; margin: 15px 0; }
.pro-smm-drip-auto-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-top: 10px; }
.pro-smm-drip-split-total { text-align: center; font-weight: 600; padding: 8px 0; border: 1px dashed #ff9900; border-radius: 6px; margin-top: 10px; }

#pro-smm-review-summary { background: #fcfcfc; border: 1px solid #ddd; padding: 20px; border-radius: 12px; margin-bottom: 25px; }
#pro-smm-review-summary p { margin: 8px 0; font-size: 1.05em; }
#pro-smm-summary-price { font-size: 1.4em !important; color: #cc6600; }
#pro-smm-summary-balance-after { color: #27ae60 !important; }

#promosync_ajax_submit {
    background: var(--smm-primary-color); 
    color: #1f2d3d; 
    padding: 14px 0;
    font-size: 1.1em; 
    border-radius: 8px; 
    font-weight: 700; 
    width: 100%; 
    border: none; 
    cursor: pointer; 
    transition: background 0.2s;
}
#promosync_ajax_submit:hover:not(:disabled) { background: var(--smm-secondary-color); }

.promosync-services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.promosync-services-table th, .promosync-services-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #f1f1f1;
}
.promosync-services-table th { background: #f7f7f7; color: #444; font-size: 0.95em; font-weight: 600; }
.promosync-services-table td { font-size: 0.9em; color: #555; }
.promosync-services-table td:nth-child(4) { font-weight: 600; color: var(--smm-primary-color); }

@media (max-width: 900px) {
    .pro-smm-dashboard-wrapper { flex-direction: column; min-height: auto; }
    .pro-smm-sidebar {
        width: 300px; position: fixed; top: 0; left: 0; height: 100%;
        transform: translateX(-100%); z-index: 1000; padding: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }
    .pro-smm-sidebar[data-state="open"] { transform: translateX(0); }
    .pro-smm-sidebar .pro-smm-logo { padding-top: 50px; }
    .pro-smm-menu-item.active { box-shadow: none; border-left: 5px solid var(--smm-primary-color); background: var(--smm-sidebar-hover); }
    .pro-smm-main-content { padding: 20px; width: 100%; box-sizing: border-box; }
    .pro-smm-header-top { justify-content: space-between; }
    .pro-smm-hamburger-icon { display: block; }
    .pro-smm-greeting { font-size: 1.6em; margin-top: 10px; }
    .promosync-stats-grid { grid-template-columns: 1fr; }
    .mobile-close {
        display: flex; align-items: center; background: rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .pro-smm-delivery-options { flex-direction: column; }
}

@media screen and (max-width: 767px) {
    .promosync-services-table, .promosync-services-table thead, .promosync-services-table tbody, .promosync-services-table th, .promosync-services-table td, .promosync-services-table tr { 
        display: block; 
    }
    .promosync-services-table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .promosync-services-table tr { border: 1px solid #ccc; margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
    .promosync-services-table td { 
        border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; white-space: normal; text-align: right;
    }
    .promosync-services-table td:before { 
        position: absolute; top: 0; left: 6px; width: 45%; padding: 15px 5px; white-space: nowrap; text-align: left; font-weight: 700; color: #555; content: attr(data-title);
    }
}