/* TWA 20i Client Dashboard - Frontend Styles */

.twa-client-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.twa-dashboard-header {
    margin-bottom: 40px;
}

.twa-dashboard-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c3338;
}

/* View Toggle */
.twa-table-view,
.twa-detail-view {
    transition: opacity 0.3s ease;
}

.twa-back-to-list {
    margin-bottom: 30px;
    padding: 12px 24px;
    background: #fff;
    color: #2c3338;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.twa-back-to-list:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

/* Packages Table - WooCommerce Style */
.twa-packages-table-wrapper {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

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

.twa-packages-table thead {
    background: #fff;
    border-bottom: 1px solid #dcdcde;
}

.twa-packages-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twa-packages-table tbody tr {
    border-bottom: 1px solid #f0f0f1;
    transition: background 0.15s ease;
}

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

.twa-packages-table tbody tr:hover {
    background: #f6f7f7;
}

.twa-packages-table tbody tr.twa-error-row {
    background: #fcf9f7;
}

.twa-packages-table td {
    padding: 20px;
    font-size: 14px;
    vertical-align: middle;
    color: #2c3338;
}

.twa-package-name {
    max-width: 300px;
}

.twa-package-name strong {
    display: block;
    color: #2c3338;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.twa-package-id {
    font-size: 13px;
    color: #646970;
}

/* URL Cell */
.twa-url-cell {
    max-width: 200px;
}

.twa-site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.twa-site-link:hover {
    color: #135e96;
    text-decoration: underline;
}

.twa-site-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.twa-platform-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status Badge - WooCommerce Style */
.twa-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.twa-status-active {
    background: #c6e1c6;
    color: #2e7d32;
}

.twa-status-inactive {
    background: #fcf3cf;
    color: #94660c;
}

/* Usage Display */
.twa-usage-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.twa-usage-bar-mini {
    flex: 1;
    height: 10px;
    background: #f0f0f1;
    border-radius: 5px;
    overflow: hidden;
    min-width: 80px;
    max-width: 120px;
}

.twa-usage-bar-mini .twa-usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7ad03a 0%, #5cc232 100%);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.twa-usage-mini span {
    font-size: 13px;
    color: #646970;
    min-width: 45px;
    font-weight: 500;
}

.twa-no-data {
    color: #8c8f94;
    font-style: normal;
}

/* Action Buttons */
.twa-actions-cell {
    text-align: right;
    white-space: nowrap;
}

.twa-btn-small {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 1px 0 #2271b1;
}

.twa-btn-small:hover {
    background: #135e96;
    color: #fff;
    box-shadow: 0 1px 0 #135e96;
}

.twa-btn-small:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Detail View - WooCommerce Style */
.twa-package-detail {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 30px;
}

.twa-package-header {
    padding: 24px 30px;
    border-bottom: 1px solid #f0f0f1;
}

.twa-package-title {
    margin-bottom: 12px;
}

.twa-package-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3338;
    display: inline-block;
    margin-right: 15px;
}

.twa-package-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    vertical-align: middle;
}

.twa-package-meta {
    display: flex;
    gap: 12px;
}

.twa-package-type {
    padding: 5px 12px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 13px;
    color: #2c3338;
    font-weight: 500;
}

.twa-package-body {
    padding: 30px;
}

/* Screenshot Section */
.twa-screenshot-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f1;
}

.twa-screenshot-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #2c3338;
    font-weight: 600;
}

.twa-screenshot-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twa-screenshot-wrapper a {
    display: block;
}

.twa-screenshot-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.twa-screenshot-wrapper a:hover .twa-screenshot-image {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.twa-site-url-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f6f7f7;
    border-radius: 4px;
}

.twa-visit-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 0 #2271b1;
    white-space: nowrap;
}

.twa-visit-site-btn:hover {
    background: #135e96;
    color: #fff;
    box-shadow: 0 1px 0 #135e96;
}

.twa-visit-site-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.twa-url-text {
    color: #646970;
    font-size: 14px;
    word-break: break-all;
}

.twa-info-section,
.twa-usage-section {
    margin-bottom: 30px;
}

.twa-info-section:last-child,
.twa-usage-section:last-child {
    margin-bottom: 0;
}

.twa-info-section h4,
.twa-usage-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #2c3338;
    font-weight: 600;
}

.twa-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.twa-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.twa-info-label {
    font-size: 13px;
    color: #646970;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.twa-info-value {
    font-size: 15px;
    color: #2c3338;
    font-weight: 500;
}

/* Usage Stats - WooCommerce Style */
.twa-usage-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.twa-usage-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.twa-usage-label {
    font-size: 14px;
    color: #2c3338;
    font-weight: 600;
}

.twa-usage-bar {
    height: 28px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.twa-usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7ad03a 0%, #5cc232 100%);
    transition: width 0.4s ease;
    border-radius: 4px;
}

.twa-usage-text {
    font-size: 13px;
    color: #646970;
    font-weight: 500;
}

/* DNS Management Section */
.twa-dns-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f1;
}

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

.twa-dns-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3338;
    font-weight: 600;
}

.twa-dns-content {
    margin-top: 20px;
}

.twa-dns-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #f6f7f7;
    border-radius: 4px;
    color: #646970;
}

.twa-dns-manager {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.twa-dns-add-form {
    padding: 24px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.twa-dns-add-form h5 {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #2c3338;
    font-weight: 600;
}

.twa-form-group {
    margin-bottom: 16px;
}

.twa-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2c3338;
}

.twa-form-group input,
.twa-form-group select,
.twa-form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.twa-form-group input:focus,
.twa-form-group select:focus,
.twa-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.twa-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.twa-form-group small {
    display: block;
    margin-top: 6px;
    color: #646970;
    font-size: 12px;
}

.twa-dns-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.twa-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.twa-dns-records-list h5 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #2c3338;
    font-weight: 600;
}

.twa-dns-table-wrapper {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.twa-dns-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.twa-dns-table thead {
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}

.twa-dns-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #2c3338;
}

.twa-dns-table tbody tr {
    border-bottom: 1px solid #f0f0f1;
}

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

.twa-dns-table tbody tr:hover {
    background: #f6f7f7;
}

.twa-dns-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #2c3338;
    vertical-align: middle;
}

.twa-dns-record-type {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.twa-dns-record-value {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
}

.twa-dns-delete-btn {
    padding: 6px 12px;
    background: transparent;
    color: #d63638;
    border: 1px solid #d63638;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.twa-dns-delete-btn:hover {
    background: #d63638;
    color: #fff;
}

.twa-dns-messages {
    margin-top: 16px;
}

/* Actions - WooCommerce Style */
.twa-package-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 30px;
    border-top: 1px solid #f0f0f1;
    background: #f6f7f7;
}

.twa-btn {
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 1px 0 #2271b1;
}

.twa-btn:hover {
    background: #135e96;
    color: #fff;
    box-shadow: 0 1px 0 #135e96;
}

.twa-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.twa-btn:disabled {
    background: #dcdcde;
    color: #a7aaad;
    cursor: not-allowed;
    box-shadow: none;
}

.twa-btn-secondary {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
    box-shadow: none;
}

.twa-btn-secondary:hover {
    background: #f6f7f7;
    color: #135e96;
    border-color: #135e96;
    box-shadow: none;
}

/* Invoice Section */
.twa-invoice-section {
    padding: 24px 30px;
    border-top: 1px solid #f0f0f1;
}

.twa-invoice-content h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #2c3338;
    font-weight: 600;
}

.twa-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twa-invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.twa-invoice-item.twa-placeholder {
    opacity: 0.6;
}

.twa-invoice-date {
    font-size: 13px;
    color: #646970;
    min-width: 120px;
    font-weight: 500;
}

.twa-invoice-desc {
    flex: 1;
    font-size: 14px;
    color: #2c3338;
}

.twa-invoice-amount {
    font-size: 15px;
    font-weight: 600;
    color: #2c3338;
}

/* Messages */
.twa-package-messages {
    margin-top: 20px;
    padding: 0 30px 20px;
}

.twa-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 4px solid;
    font-size: 14px;
}

.twa-message.success {
    background: #edfaef;
    color: #1e4620;
    border-left-color: #4ab866;
}

.twa-message.error {
    background: #fcf0f1;
    color: #b32d2e;
    border-left-color: #d63638;
}

.twa-error-message {
    color: #d63638;
    margin: 10px 0;
    font-size: 13px;
}

.twa-info-message {
    color: #646970;
    font-style: italic;
    font-size: 13px;
}

/* Login/No Packages Messages */
.twa-login-message,
.twa-no-packages {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.twa-login-message p,
.twa-no-packages p {
    margin-bottom: 24px;
    color: #646970;
    font-size: 15px;
}

/* Loading State */
.twa-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: twa-spin 0.6s linear infinite;
}

@keyframes twa-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .twa-client-dashboard {
        padding: 15px;
    }
    
    .twa-dashboard-header h2 {
        font-size: 24px;
    }
    
    /* Make table scrollable on mobile */
    .twa-packages-table-wrapper {
        overflow-x: auto;
    }
    
    .twa-packages-table {
        min-width: 800px;
    }
    
    .twa-packages-table th,
    .twa-packages-table td {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .twa-package-detail {
        border-radius: 4px;
    }
    
    .twa-package-header {
        padding: 20px;
    }
    
    .twa-package-title h3 {
        font-size: 20px;
        display: block;
        margin-bottom: 10px;
    }
    
    .twa-package-status {
        display: inline-block;
    }
    
    .twa-package-body {
        padding: 20px;
    }
    
    .twa-package-actions {
        padding: 20px;
        flex-direction: column;
    }
    
    .twa-btn,
    .twa-btn-small {
        width: 100%;
        text-align: center;
    }
    
    .twa-info-grid {
        grid-template-columns: 1fr;
    }
    
    .twa-invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .twa-invoice-date {
        min-width: auto;
    }
    
    .twa-invoice-section,
    .twa-package-messages {
        padding: 20px;
    }
    
    .twa-screenshot-wrapper {
        flex-direction: column;
    }
    
    .twa-site-url-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .twa-visit-site-btn {
        width: 100%;
        justify-content: center;
    }
    
    .twa-url-text {
        font-size: 13px;
    }
}

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.twa-package-detail:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.twa-package-detail.twa-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.twa-package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.twa-package-title {
    flex: 1;
}

.twa-package-domain {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.twa-domain-icon {
    font-size: 24px;
    line-height: 1;
}

.twa-package-title h3 {
    margin: 0;
    font-size: 22px;
    color: #222;
    line-height: 1.3;
}

.twa-package-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.twa-status-active {
    background: #d4edda;
    color: #155724;
}

.twa-status-inactive {
    background: #fff3cd;
    color: #856404;
}

.twa-package-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.twa-package-type,
.twa-package-platform {
    padding: 3px 10px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
}

/* Package Body */
.twa-package-body {
    margin-bottom: 20px;
}

.twa-info-section,
.twa-usage-section {
    margin-bottom: 20px;
}

.twa-info-section h4,
.twa-usage-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.twa-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.twa-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.twa-info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.twa-info-value {
    font-size: 15px;
    color: #222;
}

/* Usage Stats */
.twa-usage-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.twa-usage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.twa-usage-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.twa-usage-bar {
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.twa-usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

.twa-usage-text {
    font-size: 13px;
    color: #666;
}

/* Actions */
.twa-package-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.twa-btn {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.twa-btn:hover {
    background: #0056b3;
    color: #fff;
}

.twa-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.twa-btn-secondary {
    background: #6c757d;
}

.twa-btn-secondary:hover {
    background: #545b62;
}

/* Invoice Section */
.twa-invoice-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.twa-invoice-content h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #555;
}

.twa-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.twa-invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.twa-invoice-item.twa-placeholder {
    opacity: 0.6;
}

.twa-invoice-date {
    font-size: 13px;
    color: #666;
    min-width: 100px;
}

.twa-invoice-desc {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.twa-invoice-amount {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* Messages */
.twa-package-messages {
    margin-top: 15px;
}

.twa-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.twa-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.twa-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.twa-error-message {
    color: #dc3545;
    margin: 10px 0;
}

.twa-info-message {
    color: #666;
    font-style: italic;
}

/* Login/No Packages Messages */
.twa-login-message,
.twa-no-packages {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.twa-login-message p,
.twa-no-packages p {
    margin-bottom: 20px;
    color: #666;
}

/* Loading State */
.twa-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: twa-spin 0.6s linear infinite;
}

@keyframes twa-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .twa-client-dashboard {
        padding: 15px;
    }
    
    /* Make table scrollable on mobile */
    .twa-packages-table-wrapper {
        overflow-x: auto;
    }
    
    .twa-packages-table {
        min-width: 700px;
    }
    
    .twa-packages-table th,
    .twa-packages-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .twa-package-detail {
        padding: 20px;
    }
    
    .twa-package-header {
        flex-direction: column;
    }
    
    .twa-package-domain {
        flex-wrap: wrap;
    }
    
    .twa-package-domain h3 {
        font-size: 18px;
        word-break: break-word;
    }
    
    .twa-package-meta {
        margin-top: 10px;
    }
    
    .twa-package-actions {
        flex-direction: column;
    }
    
    .twa-btn {
        width: 100%;
        text-align: center;
    }
    
    .twa-info-grid {
        grid-template-columns: 1fr;
    }
    
    .twa-invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .twa-invoice-date {
        min-width: auto;
    }
}
