h1 {
    color: #ffffff;
}

.sgdolly-admin-wrap {
    margin: 30px 20px 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sgdolly-header {
    background: linear-gradient(135deg, #4c195a, #000000);
    color: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sgdolly-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.sgdolly-header p {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 15px;
}

.sgdolly-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.sgdolly-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.sgdolly-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.sgdolly-plan {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.2s ease;
    border: 2px solid transparent;
}

.sgdolly-plan:hover {
    transform: translateY(-3px);
}

.sgdolly-plan h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
}

.sgdolly-plan.bronze {
    border-color: #cd7f32;
}

.sgdolly-plan.silver {
    border-color: #9ca3af;
}

.sgdolly-plan.gold {
    border-color: #fbbf24;
}

.sgdolly-field {
    margin-bottom: 20px;
}

.sgdolly-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.sgdolly-field input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0 15px;
    font-size: 15px;
}

.sgdolly-field input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}

.sgdolly-field small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
}

.sgdolly-save-area {
    margin-top: 30px;
}

.sgdolly-save-area .button-primary {
    background: #111827;
    border: none;
    padding: 10px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
}

.sgdolly-save-area .button-primary:hover {
    background: #1f2937;
}


.sgdolly-plan h2,
.sgdolly-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgdolly-plan h2 i,
.sgdolly-card h2 i {
    font-size: 22px;
}

.bronze h2 i {
    color: #cd7f32;
}

.silver h2 i {
    color: #9ca3af;
}

.gold h2 i {
    color: #fbbf24;
}

.sgdolly-card h2 i {
    color: #6366f1;
}

.sgdolly-table-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

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

.sgdolly-table thead th {
    text-align: left;
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.sgdolly-table tbody td {
    padding: 18px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.sgdolly-table tbody tr:hover {
    background: #f9fafb;
}

.sgdolly-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.sgdolly-badge.bronze {
    background: rgba(205,127,50,0.12);
    color: #cd7f32;
}

.sgdolly-badge.silver {
    background: rgba(156,163,175,0.15);
    color: #6b7280;
}

.sgdolly-badge.gold {
    background: rgba(251,191,36,0.15);
    color: #d97706;
}

.sgdolly-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.sgdolly-status.active {
    background: rgba(34,197,94,0.15);
    color: #16a34a;
}

.sgdolly-status.expired {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
}

.sgdolly-history-btn {
    border: none;
    background: #111827;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.sgdolly-history-btn:hover {
    opacity: .9;
}

.sgdolly-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.sgdolly-modal-content {
    width: 350px;
    max-width: 95%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.sgdolly-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.sgdolly-modal-header h3 {
    margin: 0;
}

.sgdolly-close {
    font-size: 28px;
    cursor: pointer;
}

.sgdolly-history-list {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.sgdolly-history-item {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    display: grid;
    gap: 10px;
}

.sgdolly-table td:nth-child(6) {
    max-width: 250px;
}

.sgdolly-transaction-cell {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.sgdolly-transaction-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.sgdolly-history-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: white;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}
.sgdolly-transaction-id {
    font-weight: 600;
    color: #111827;
}

.sgdolly-history-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: white;
    cursor: pointer;
    transition: .2s;
}

.sgdolly-history-btn:hover {
    transform: scale(1.05);
}

.sgdolly-close {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.sgdolly-delete-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .2s;
}

.sgdolly-delete-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.sgdolly-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sgdolly-modal-content{
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    color: #1f2937;
    position: relative;
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
    border: 1px solid #e5e7eb;
}

.sgdolly-modal-content h3{
    margin-top: 0;
    margin-bottom: 20px;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.sgdolly-close{
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all .2s ease;
}

.sgdolly-close:hover{
    background: #e5e7eb;
    color: #111827;
}

.sgdolly-transaction-item{
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sgdolly-transaction-item:last-child{
    border-bottom: none;
}

.sgdolly-transaction-item p{
    margin: 6px 0;
    color: #374151;
    font-size: 14px;
}

.sgdolly-transaction-item strong{
    color: #111827;
}



/* =========================================================
   SGDOLLY COMPLETE REGISTRATION
========================================================= */

#sgdolly-register-form {

    width: 100%;
    max-width: 520px;

    margin: 0 !important;
    padding: 0 !important;

}

.sgdolly-register-box {

    background: #ffffff;

    padding: 40px;

    margin: 0 !important;

    border-radius: 24px;

    border: 1px solid #e5e7eb;

    text-align: center;

}

/* =========================================================
   TITLE
========================================================= */

.sgdolly-register-title {

    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;

    color: #111827;

    letter-spacing: -.03em;

    text-align: center;

}

.sgdolly-register-subtitle {

    margin: 0 0 30px;

    font-size: 15px;
    line-height: 1.6;

    color: #6b7280;

    text-align: center;

}

/* =========================================================
   FIELDS
========================================================= */

.sgdolly-field {

    margin-bottom: 18px;

}

.sgdolly-field input {

    width: 100%;
    height: 56px;

    padding: 0 18px;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid #d1d5db;

    color: #111827;

    font-size: 15px;

    transition: .2s ease;

    box-sizing: border-box;

    text-align: center;

}

.sgdolly-field input::placeholder {

    color: #9ca3af;

    text-align: center;

}

/* =========================================================
   INPUT FOCUS
========================================================= */

.sgdolly-field input:focus {

    outline: none;

    border-color: #4C195A;

    background: #faf8fb;

}

/* =========================================================
   STATUS
========================================================= */

#sgdolly-username-status,
#sgdolly-email-status {

    margin-top: 10px;

    font-size: 13px;
    font-weight: 600;

    text-align: center;

}

/* =========================================================
   BUTTON BASE
========================================================= */

.sgdolly-submit-btn,
#sgdolly-register-form button,
#sgdolly-register-form input[type=submit] {

    width: 100%;
    height: 58px;

    margin-top: 10px;

    border: none !important;

    border-radius: 14px;

    background: #4C195A !important;

    color: #ffffff !important;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;

}

/* =========================================================
   BUTTON HOVER
========================================================= */

.sgdolly-submit-btn:hover,
#sgdolly-register-form button:hover,
#sgdolly-register-form input[type=submit]:hover {

    background: #5d226d !important;

    color: #ffffff !important;

    text-decoration: none !important;

}

/* =========================================================
   BUTTON FOCUS
========================================================= */

.sgdolly-submit-btn:focus,
#sgdolly-register-form button:focus,
#sgdolly-register-form input[type=submit]:focus {

    background: #5d226d !important;

    color: #ffffff !important;

    outline: none !important;

    text-decoration: none !important;

}

/* =========================================================
   BUTTON ACTIVE
========================================================= */

.sgdolly-submit-btn:active,
#sgdolly-register-form button:active,
#sgdolly-register-form input[type=submit]:active {

    background: #3f144b !important;

    color: #ffffff !important;

}

/* =========================================================
   BUTTON DISABLED
========================================================= */

.sgdolly-submit-btn:disabled,
#sgdolly-register-form button:disabled,
#sgdolly-register-form input[type=submit]:disabled {

    background: #b8a8be !important;

    color: #ffffff !important;

    cursor: not-allowed;

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #sgdolly-register-form {

        padding: 0 !important;
        margin: 0 !important;

    }

    .sgdolly-register-box {

        padding: 28px;

    }

    .sgdolly-register-title {

        font-size: 28px;

    }

}