.button{ background:#3398da !important; color:#fff !important;}
.button:hover{ background:#147bc0 !important; color:#fff !important;}

.button-cancel{ background:#8f9eae !important; color:#fff !important; font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding:7px;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    border: 0;}
    
.button-cancel:hover{ background:#464c52 !important; color:#fff !important;}


.add-file {
    padding: 20px 10px 20px 30px;
    background: #EEF4F8;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.add-file:hover {
    border-color: #3398da;
}

.add-file input[type="file"] {
    margin: 10px 0;
    padding: 8px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.add-file input[type="file"]:hover {
    border-color: #3398da;
}



.gsts-tickets-wrapper {
    margin: 20px 0;
}

.gsts-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



.gsts-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.gsts-status-open {
    background: #fcf8e3;
    color: #8a6d3b;
}

.gsts-status-answered {
    background: #d9edf7;
    color: #31708f;
}

.gsts-status-in-progress {
    background: #d4edda;
    color: #155724;
}

.gsts-status-closed {
    background: #f2f2f2;
    color: #666;
}

.gsts-status-licensed {
    background: #d4edda;
    color: #155724;
}

.gsts-single-ticket-wrapper {
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.gsts-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gsts-ticket-info {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f7ff 100%);
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #3398da;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gsts-ticket-info p {
    margin: 5px 0;
}

.gsts-ticket-messages {
    margin-bottom: 30px;
}

.gsts-message {
    background: #fff;
    border: 1px solid #e1e8ed;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gsts-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gsts-staff-message {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-color: #3398da;
    border-left: 4px solid #3398da;
}

.gsts-message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.gsts-badge {
    background: #0073aa;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
}

.gsts-message-date {
    margin-left: auto;
    color: #999;
    font-size: 13px;
}

.gsts-message-content {
    line-height: 1.6;
}

.gsts-message-attachments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ed;
}

.gsts-message-attachments h4 {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsts-message-attachments h4:before {
    content: "📎";
    font-size: 16px;
}

.gsts-message-attachments ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gsts-message-attachments li {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    min-width: 200px;
    max-width: 300px;
}

.gsts-message-attachments li:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.gsts-message-attachments li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    width: 100%;
}

.gsts-message-attachments li a:hover {
    color: #2196f3;
}

.gsts-attachment-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
}

.gsts-attachment-info {
    flex: 1;
    min-width: 0;
}

.gsts-attachment-name {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 2px;
}

.gsts-attachment-size {
    font-size: 12px;
    color: #6c757d;
    opacity: 0.8;
}

.gsts-reply-form {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f7ff 100%);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gsts-new-ticket-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.gsts-new-ticket-wrapper .form-row,
.gsts-reply-form .form-row {
    margin-bottom: 15px;
}

.gsts-new-ticket-wrapper label,
.gsts-reply-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.gsts-new-ticket-wrapper input[type="text"],
.gsts-new-ticket-wrapper input[type="email"],
.gsts-new-ticket-wrapper select,
.gsts-new-ticket-wrapper textarea,
.gsts-reply-form input[type="text"],
.gsts-reply-form input[type="email"],
.gsts-reply-form select,
.gsts-reply-form textarea {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.gsts-new-ticket-wrapper input:focus,
.gsts-new-ticket-wrapper select:focus,
.gsts-new-ticket-wrapper textarea:focus,
.gsts-reply-form input:focus,
.gsts-reply-form select:focus,
.gsts-reply-form textarea:focus {
    border-color: #3398da;
    box-shadow: 0 0 0 3px rgba(51, 152, 218, 0.1);
    outline: none;
}

.gsts-new-ticket-wrapper .description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

#gsts-message {
    margin-top: 20px;
}

/* Reply Form Send Button */
.gsts-send-reply-btn {
    background: #3398da !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s ease;
}

.gsts-send-reply-btn:hover {
    background: #2980b9 !important;
    color: #fff !important;
}

/* Close Ticket Button (Outside Form) */
.gsts-close-ticket-wrapper {
    text-align: right;
    margin-top: 15px;
    margin-bottom: 20px;
}

.gsts-close-ticket-btn {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s ease;
}

.gsts-close-ticket-btn:hover {
    background: #c82333 !important;
    color: #fff !important;
}

/* File Upload Area Styling */
.gsts-file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
}

.gsts-file-upload-area:hover {
    border-color: #3398da;
    background: #f0f8ff;
}

.gsts-file-upload-area input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

.gsts-file-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
}

.gsts-file-info > div {
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.gsts-file-info strong {
    color: #495057;
    display: block;
    margin-bottom: 4px;
}

.gsts-file-error {
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gsts-file-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gsts-file-upload-area {
        padding: 15px;
    }

    .gsts-message-attachments ul {
        flex-direction: column;
    }

    .gsts-message-attachments li {
        min-width: 100%;
        max-width: 100%;
    }

    .gsts-attachment-name {
        font-size: 13px;
    }

    .gsts-attachment-size {
        font-size: 11px;
    }
}

/* License Form Styles */
.gsts-license-info-form {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e1f5fe;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(51, 152, 218, 0.08);
}

.gsts-license-info-form h3 {
    color: #1565c0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 10px;
}

.gsts-license-info-form input[type="text"],
.gsts-license-info-form input[type="url"] {
    border: 2px solid #e1f5fe;
    background: #fff;
}

.gsts-license-info-form input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.gsts-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.gsts-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* Simple Clean Ticket Table */
.gsts-tickets-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: 20px 0;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset any inherited padding and styling */
.gsts-tickets-table,
.gsts-tickets-table * {
    box-sizing: border-box;
}

.gsts-tickets-table th,
.gsts-tickets-table td {
    margin: 0 !important;
}

/* Force override any theme or plugin CSS that might be interfering */
.woocommerce .gsts-tickets-table th,
.woocommerce .gsts-tickets-table td,
.shop_table .gsts-tickets-table th,
.shop_table .gsts-tickets-table td,
.woocommerce-orders-table .gsts-tickets-table th,
.woocommerce-orders-table .gsts-tickets-table td,
.woocommerce-MyAccount-orders .gsts-tickets-table th,
.woocommerce-MyAccount-orders .gsts-tickets-table td,
.my_account_orders .gsts-tickets-table th,
.my_account_orders .gsts-tickets-table td,
.account-orders-table .gsts-tickets-table th,
.account-orders-table .gsts-tickets-table td {
    padding: 16px 20px !important;
    margin: 0 !important;
}

/* Specific override for Elementor and other page builders */
.elementor .gsts-tickets-table th,
.elementor .gsts-tickets-table td,
[class*="elementor"] .gsts-tickets-table th,
[class*="elementor"] .gsts-tickets-table td {
    padding: 16px 20px !important;
    margin: 0 !important;
}

.gsts-tickets-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 16px 20px !important;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    font-size: 14px;
}

.gsts-tickets-table th:last-child {
    border-right: none;
}

.gsts-tickets-table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
}

.gsts-tickets-table td:last-child {
    border-right: none;
}

.gsts-tickets-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

/* Ticket ID Styling */
.gsts-tickets-table .ticket-id {
    font-weight: 600;
    color: #007bff;
    font-size: 14px;
}

/* Subject Link Styling */
.gsts-tickets-table td a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gsts-tickets-table td a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Order link styling */
.gsts-tickets-table td a[href*="view-order"] {
    color: #6c757d;
    font-size: 14px;
}

.gsts-tickets-table td a[href*="view-order"]:hover {
    color: #007bff;
}

/* Status Badge Simple Styling */
.gsts-tickets-table .gsts-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

/* Action Buttons Container */
.gsts-ticket-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* View Button */
.gsts-ticket-actions .button-view {
    background: #28a745 !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.gsts-ticket-actions .button-view:hover {
    background: #218838 !important;
    color: #fff !important;
}

/* Close Button */
.gsts-ticket-actions .button-close {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.gsts-ticket-actions .button-close:hover {
    background: #c82333 !important;
    color: #fff !important;
}

/* New Ticket Button */
.gsts-new-ticket-btn {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.gsts-new-ticket-btn:hover {
    background: #c82333 !important;
    color: #fff !important;
}

/* Table responsive wrapper */
.gsts-table-wrapper {
    overflow-x: auto;
}

/* Empty state styling */
.gsts-no-tickets {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.gsts-no-tickets h3 {
    color: #6c757d;
    font-size: 18px;
    margin-bottom: 12px;
}

.gsts-no-tickets p {
    color: #868e96;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .gsts-tickets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .gsts-message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .gsts-message-date {
        margin-left: 0;
    }

    .gsts-new-ticket-wrapper .form-row,
    .gsts-reply-form .form-row {
        margin-bottom: 20px;
    }

    .gsts-status {
        font-size: 11px;
        padding: 2px 6px;
    }

    /* Mobile responsiveness for ticket table */
    .gsts-tickets-table {
        border-radius: 8px;
        margin: 15px 0;
    }

    .gsts-tickets-table th,
    .gsts-tickets-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .gsts-tickets-table th {
        font-size: 12px;
    }

    .gsts-ticket-actions {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }

    .gsts-ticket-actions .button-view,
    .gsts-ticket-actions .button-close {
        padding: 6px 12px;
        font-size: 11px;
        text-align: center;
        width: 100%;
    }

    .gsts-new-ticket-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .gsts-table-wrapper {
        border-radius: 8px;
        margin: 0 -10px;
    }

    .gsts-no-tickets {
        padding: 40px 15px;
        margin: 15px 0;
        border-radius: 8px;
    }

    /* Enhanced mobile responsiveness for new design elements */
    .gsts-new-ticket-wrapper,
    .gsts-reply-form {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .gsts-license-info-form {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .gsts-license-info-form h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .gsts-single-ticket-wrapper {
        margin: 15px 0;
        border-radius: 8px;
    }

    .gsts-ticket-info {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 0 6px 6px 0;
    }

    .gsts-message {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .add-file {
        padding: 15px 10px 15px 20px;
        border-radius: 8px;
    }

    .add-file input[type="file"] {
        margin: 8px 0;
        padding: 6px;
    }

    .button, .button-cancel {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 4px;
    }

    .gsts-new-ticket-wrapper input[type="text"],
    .gsts-new-ticket-wrapper input[type="email"],
    .gsts-new-ticket-wrapper select,
    .gsts-new-ticket-wrapper textarea,
    .gsts-reply-form input[type="text"],
    .gsts-reply-form input[type="email"],
    .gsts-reply-form select,
    .gsts-reply-form textarea,
    .gsts-license-info-form input[type="text"],
    .gsts-license-info-form input[type="url"] {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }

    .gsts-new-ticket-wrapper label,
    .gsts-reply-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .gsts-badge {
        font-size: 10px;
        padding: 1px 4px;
    }

    .gsts-message-content {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .gsts-new-ticket-wrapper,
    .gsts-reply-form,
    .gsts-license-info-form {
        padding: 15px 10px;
        margin: 10px 0;
    }

    .gsts-ticket-info {
        padding: 12px;
        margin-bottom: 15px;
    }

    .gsts-message {
        padding: 12px;
        margin-bottom: 12px;
    }

    .add-file {
        padding: 12px 8px 12px 15px;
    }

    .button, .button-cancel {
        padding: 6px 10px;
        font-size: 13px;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .gsts-tickets-header h2,
    .gsts-license-info-form h3 {
        font-size: 18px;
    }

    .gsts-status {
        font-size: 10px;
        padding: 1px 4px;
    }

    /* Extra small screen ticket table adjustments */
    .gsts-tickets-table th,
    .gsts-tickets-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .gsts-tickets-table th {
        font-size: 11px;
    }

    .gsts-ticket-actions .button-view,
    .gsts-ticket-actions .button-close {
        padding: 5px 10px;
        font-size: 10px;
    }

    .gsts-new-ticket-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Frontend License Information Display */
.gsts-license-field {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: 1px solid #e3f2fd;
    border-left: 4px solid #1976d2;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gsts-license-field:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.1);
}

.gsts-license-field strong {
    color: #1565c0;
    margin-right: 10px;
    font-weight: 600;
    font-size: 14px;
}

.gsts-domain-link,
.gsts-admin-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.gsts-domain-link:hover,
.gsts-admin-link:hover {
    color: #0d47a1;
    text-decoration: underline;
    transform: scale(1.02);
}

.gsts-domain-link .dashicons,
.gsts-admin-link .dashicons {
    font-size: 16px;
    color: #42a5f5;
}

.gsts-copyable {
    cursor: pointer;
    color: #424242;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
}

.gsts-copyable:hover {
    background: #e8f5e8;
    color: #1b5e20;
    border-color: #a5d6a7;
    transform: scale(1.05);
}

.gsts-copyable .dashicons {
    font-size: 16px;
    color: #66bb6a;
    opacity: 0.8;
}

.gsts-copyable:hover .dashicons {
    opacity: 1;
    color: #2e7d32;
}

.gsts-copy-success {
    background: #c8e6c9 !important;
    color: #1b5e20 !important;
    border-color: #4caf50 !important;
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Submitted License Information Section */
.gsts-submitted-license-info {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.08);
}

.gsts-submitted-license-info h3 {
    color: #1565c0;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3f2fd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsts-submitted-license-info h3:before {
    content: "🔑";
    font-size: 24px;
}

/* Enhanced License Information Layout */
.gsts-license-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .gsts-license-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gsts-submitted-license-info {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .gsts-submitted-license-info h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .gsts-license-field {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .gsts-license-field strong,
    .gsts-domain-link,
    .gsts-admin-link,
    .gsts-copyable {
        font-size: 13px;
    }
}

/* Message Enhancement for License Info */
.gsts-message-content .gsts-license-field:first-child {
    margin-top: 15px;
}

.gsts-message-content .gsts-license-field:last-child {
    margin-bottom: 15px;
}

/* Enhanced Visual Hierarchy */
.gsts-license-field.domain-field {
    border-left-color: #ff5722;
}

.gsts-license-field.admin-url-field {
    border-left-color: #ff9800;
}

.gsts-license-field.username-field {
    border-left-color: #4caf50;
}

.gsts-license-field.password-field {
    border-left-color: #f44336;
}

/* License Activation Header Design */
.gsts-license-activation-header {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.1);
    position: relative;
    overflow: hidden;
}

.gsts-license-activation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 50%, #1976d2 100%);
}

/* Header Top Section */
.gsts-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.gsts-header-title {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.gsts-title-icon {
    font-size: 48px;
    line-height: 1;
    margin-top: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.gsts-title-content h1 {
    font-size: 24px;
    color: #1565c0;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.2;
}

.gsts-title-content h2 {
    font-size: 20px;
    color: #424242;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

/* Back Button Styling */
.gsts-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1976d2;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.gsts-back-button:hover {
    background: #1565c0;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
}

.gsts-back-button .dashicons {
    font-size: 16px;
    margin-top: -2px;
}

/* Meta Cards Grid */
.gsts-license-meta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gsts-meta-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gsts-meta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
    border-color: #bbdefb;
}

.gsts-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gsts-status-card .gsts-card-icon {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
}

.gsts-order-card .gsts-card-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: #fff;
}

.gsts-date-card .gsts-card-icon {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
    color: #fff;
}

.gsts-card-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.gsts-card-content {
    flex: 1;
    min-width: 0;
}

.gsts-card-label {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.gsts-card-value {
    font-size: 14px;
    color: #424242;
    font-weight: 500;
    line-height: 1.4;
}

/* Order Link Styling */
.gsts-order-link {
    color: #1976d2 !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.gsts-order-link:hover {
    color: #1565c0 !important;
    text-decoration: underline;
}

.gsts-order-link .dashicons {
    font-size: 14px;
    margin-top: -1px;
}

/* Status Badge Enhancement for Cards */
.gsts-meta-card .gsts-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gsts-license-activation-header {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .gsts-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .gsts-header-title {
        gap: 12px;
    }

    .gsts-title-icon {
        font-size: 36px;
    }

    .gsts-title-content h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .gsts-title-content h2 {
        font-size: 16px;
    }

    .gsts-back-button {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .gsts-license-meta-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .gsts-meta-card {
        padding: 16px;
        gap: 12px;
    }

    .gsts-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .gsts-card-icon .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .gsts-card-label {
        font-size: 11px;
    }

    .gsts-card-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gsts-license-activation-header {
        padding: 15px 10px;
        margin: 15px 0;
        border-radius: 12px;
    }

    .gsts-header-title {
        gap: 10px;
    }

    .gsts-title-icon {
        font-size: 32px;
    }

    .gsts-title-content h1 {
        font-size: 18px;
    }

    .gsts-title-content h2 {
        font-size: 15px;
    }

    .gsts-meta-card {
        padding: 14px;
        gap: 10px;
    }

    .gsts-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .gsts-card-icon .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

/* Simple License Information Table */
.gsts-license-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gsts-license-table tr {
    border-bottom: 1px solid #eee;
}

.gsts-license-table tr:last-child {
    border-bottom: none;
}

.gsts-license-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border: none;
}

.gsts-license-label {
    width: 30%;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
}

.gsts-license-value {
    width: 70%;
    color: #212529;
}

.gsts-license-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gsts-license-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.gsts-license-link .dashicons {
    font-size: 14px;
    margin-top: -1px;
}

.gsts-copyable {
    cursor: pointer;
    color: #424242;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.gsts-copyable:hover {
    background: #e8f5e8;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.gsts-copyable .dashicons {
    font-size: 14px;
    color: #66bb6a;
    opacity: 0.8;
}

.gsts-copyable:hover .dashicons {
    opacity: 1;
    color: #2e7d32;
}

.gsts-copy-success {
    background: #c8e6c9 !important;
    color: #1b5e20 !important;
    border-color: #4caf50 !important;
}

/* Mobile responsive for table */
@media (max-width: 768px) {
    .gsts-license-table {
        margin: 10px 0;
    }

    .gsts-license-table td {
        padding: 10px 12px;
    }

    .gsts-license-label {
        width: 35%;
        font-size: 13px;
    }

    .gsts-license-value {
        width: 65%;
        font-size: 14px;
    }

    .gsts-copyable {
        padding: 3px 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gsts-license-table {
        display: block;
        border: none;
    }

    .gsts-license-table tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 10px;
        background: #fff;
    }

    .gsts-license-table td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 8px 12px;
    }

    .gsts-license-label {
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        border-right: none;
        border-radius: 8px 8px 0 0;
        margin-bottom: 0;
    }

    .gsts-license-value {
        border-radius: 0 0 8px 8px;
    }
}

/* Pagination Styles */
.gsts-pagination {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.gsts-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.gsts-pagination .page-numbers:hover {
    background: #3398da;
    color: #fff;
    border-color: #3398da;
    text-decoration: none;
}

.gsts-pagination .page-numbers.current {
    background: #3398da;
    color: #fff;
    border-color: #3398da;
    font-weight: 600;
}

.gsts-pagination .page-numbers.prev,
.gsts-pagination .page-numbers.next {
    font-weight: 600;
    padding: 10px 20px;
}

.gsts-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: default;
}

.gsts-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #6c757d;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .gsts-pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 14px;
        min-width: 40px;
    }

    .gsts-pagination .page-numbers.prev,
    .gsts-pagination .page-numbers.next {
        padding: 8px 15px;
    }
}

/* License Dates Section */
.gsts-license-dates-section {
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
    border: 2px solid #c8e6c9;
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1);
}

.gsts-license-dates-title {
    font-size: 20px;
    color: #2e7d32;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #c8e6c9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.gsts-license-dates-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.gsts-license-dates-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gsts-license-date-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.08);
}

.gsts-license-date-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
    border-color: #81c784;
}

.gsts-date-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gsts-start-date .gsts-date-icon {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
}

.gsts-end-date .gsts-date-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: #fff;
}

.gsts-date-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.gsts-date-content {
    flex: 1;
    min-width: 0;
}

.gsts-date-label {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.gsts-date-value {
    font-size: 16px;
    color: #2e7d32;
    font-weight: 600;
    line-height: 1.4;
}

.gsts-expired-badge {
    display: inline-block;
    font-size: 13px;
}

.gsts-remaining-days {
    display: inline-block;
    font-size: 13px;
}

/* Mobile Responsive for License Dates */
@media (max-width: 768px) {
    .gsts-license-dates-section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .gsts-license-dates-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .gsts-license-dates-title .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .gsts-license-dates-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gsts-license-date-card {
        padding: 16px;
        gap: 12px;
    }

    .gsts-date-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .gsts-date-icon .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .gsts-date-label {
        font-size: 11px;
    }

    .gsts-date-value {
        font-size: 14px;
    }

    .gsts-expired-badge,
    .gsts-remaining-days {
        font-size: 12px;
        display: block;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .gsts-license-dates-section {
        padding: 15px 10px;
        margin: 15px 0;
        border-radius: 12px;
    }

    .gsts-license-dates-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .gsts-license-date-card {
        padding: 14px;
        gap: 10px;
    }

    .gsts-date-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .gsts-date-icon .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .gsts-date-value {
        font-size: 13px;
    }

    .gsts-expired-badge,
    .gsts-remaining-days {
        font-size: 11px;
    }
}