/* Subscription Manager Integration Styles */
.smi-subscriptions-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.smi-subscriptions-wrapper h2 {
    color: #333;
    margin-bottom: 10px;
}
.smi-subscription-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(201px, 1fr));
    gap: 12px;
    margin-top: 20px;
    align-items: stretch;
}
.smi-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    max-width: 480px;
    margin: auto;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.smi-guide-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    max-width: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.smi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.smi-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.smi-card.expired {
    opacity: 0.6;
    background: #f9f9f9;
}
.smi-card-icon {
    text-align: center;
    margin-bottom: 15px;
}
.smi-card-icon img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}
.smi-card-icon-placeholder {
    width: 48px;
    height: 48px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto;
}
.smi-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.smi-card-content h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 18px;
}
.smi-card-content p {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex: 1;
}
.smi-expiry {
    font-size: 14px;
    margin: 10px 0 !important;
}
.smi-expiry .active {
    color: #28a745;
    font-weight: 500;
}
.smi-expiry .expired {
    color: #dc3545;
    font-weight: 500;
}
.smi-card-actions {
    margin-top: auto;
    text-align: center;
    padding-top: 15px;
}
.smi-view-credentials {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #90caf9;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
    box-shadow: 0 2px 9px rgba(0,0,0,0.09);
}
.smi-view-credentials:hover {
    background: #bbdefb;
    color: #1565c0;
    border-color: #64b5f6;
}
.smi-view-credentials:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.smi-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.smi-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
.smi-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}
.smi-modal-close:hover,
.smi-modal-close:focus {
    color: #000;
}
.smi-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.smi-error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
}
.smi-credentials-content h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}
.smi-credential-item {
    margin-bottom: 20px;
}
.smi-credential-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.smi-credential-value {
    display: flex;
    gap: 10px;
    align-items: center;
}
.smi-credential-value input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    background: #f9f9f9;
}
.smi-copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.smi-copy-btn:hover {
    background: #218838;
}
.smi-toggle-password {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.smi-toggle-password:hover {
    background: #5a6268;
}
.smi-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}
.smi-notes h4 {
    margin: 0 0 10px 0;
    color: #333;
}
.smi-notes p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}
.smi-actions {
    text-align: center;
    margin-top: 20px;
}
.smi-actions .button {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #90caf9;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 8px;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}
.smi-actions .button:hover {
    background: #bbdefb;
    color: #1565c0;
    border-color: #64b5f6;
}
/* Cookie Import Styles */
.smi-cookies-section {
    padding: 10px 0;
}
.smi-info-box {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.smi-info-box h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: white;
}
.smi-info-box p {
    margin: 0;
    font-size: 14px;
    color: white;
}
.smi-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 12px;
    line-height: 1.6;
}
.smi-import-cookies-btn,
.smi-copy-cookies-btn,
.smi-access-platform-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #90caf9;
    padding: 18px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 400px;
    display: block;
}
.smi-import-cookies-btn:hover,
.smi-copy-cookies-btn:hover,
.smi-access-platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
    background: #bbdefb;
    color: #1565c0;
    border-color: #64b5f6;
}
.smi-import-cookies-btn:disabled,
.smi-access-platform-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.smi-guide-cards {
    margin: 15px 0;
    display: block;
}
.smi-guide-card-wrapper {
    width: 100%;
    margin-bottom: 12px;
}
.smi-guide-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.smi-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.smi-guide-announcement {
    background: transparent;
    color: #333;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 18px;
    text-align: left;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.smi-rocket-icon {
    font-size: 22px;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
}
.smi-announcement-text {
    flex: 1;
    color: #333;
}
.smi-guide-content {
    margin-top: 0;
    padding-bottom: 5px;
}
.smi-guide-label {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}
.smi-install-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.smi-install-label {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}
.smi-guide-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
    width: 100%;
}
.smi-guide-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: none;
    gap: 8px;
    width: auto;
}
.smi-guide-btn-secondary {
    background: #d01818;
    color: #ffffff !important;
    font-weight: 600;
}
.smi-guide-btn-secondary,
.smi-guide-btn-secondary * {
    color: #ffffff !important;
}
.smi-guide-btn-secondary:hover {
    background: #c01515;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(210, 25, 25, 0.3);
}
.smi-guide-btn-secondary:hover,
.smi-guide-btn-secondary:hover * {
    color: #ffffff !important;
}
.smi-guide-btn-primary {
    background: #1976d2;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.smi-guide-btn-primary:hover {
    background: #1565c0;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
.smi-play-icon,
.smi-download-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.smi-play-icon {
    color: #ffffff;
}
.smi-download-icon {
    color: #ffffff;
}
.smi-guide-section {
    margin-bottom: 6px;
}
.smi-guide-section:last-child {
    margin-bottom: 0;
}
.smi-guide-link-text {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    display: block;
}
.smi-guide-link-text a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}
.smi-guide-link-text a:hover {
    text-decoration: underline;
}
.smi-whatsapp-section {
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
    margin-top: 16px;
    text-align: center;
}
.smi-whatsapp-text {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}
.smi-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}
.smi-whatsapp-link:hover {
    color: #1565c0;
    text-decoration: none;
}
.smi-whatsapp-icon {
    font-size: 18px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .smi-guide-cards,
    .smi-subscription-cards {
        grid-template-columns: 1fr;
    }
    .smi-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .smi-credential-value {
        flex-direction: column;
        align-items: stretch;
    }
    .smi-credential-value input {
        margin-bottom: 10px;
    }
    .smi-import-cookies-btn,
    .smi-copy-cookies-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    .smi-guide-buttons-row {
        flex-direction: column !important;
    }
    .smi-guide-btn {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}
