/* CBG Tools App - Plugin Styles */

.cbg-app-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.cbg-app-header {
    text-align: center;
    padding: 30px 20px;
    background: #222;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #444;
}

.cbg-app-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.cbg-app-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #cccccc;
    margin: 0 0 8px;
}

.cbg-app-subtitle {
    font-size: 16px;
    color: #999;
    margin: 0 0 16px;
}

.cbg-app-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cbg-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #d4860a;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Tabs */
.cbg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #222;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #444;
}

.cbg-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cbg-tab:hover {
    color: #cccccc;
}

.cbg-tab.active {
    background: #d4860a;
    color: #fff;
}

/* Tab content */
.cbg-tab-content {
    display: none;
}

.cbg-tab-content.active {
    display: block;
}

/* Sections */
.cbg-section {
    background: #222;
    border: 1px solid #444;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.cbg-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #cccccc;
    margin: 0 0 8px;
}

.cbg-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #cccccc;
    margin: 16px 0 8px;
}

.cbg-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #cccccc;
    margin: 0 0 12px;
}

.cbg-section p {
    color: #c8c8c8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Links dentro del contenido */
.cbg-section a {
    color: #f0a830;
    text-decoration: underline;
    font-weight: 600;
}

.cbg-section a:hover {
    color: #ffc44d;
}

/* Form */
.cbg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cbg-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cbg-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
}

.cbg-form-group input[type="text"],
.cbg-form-group input[type="email"],
.cbg-form-group input[type="password"] {
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 10px;
    color: #cccccc;
    font-size: 14px;
    transition: border-color 0.2s;
}

.cbg-form-group input:focus {
    outline: none;
    border-color: #d4860a;
}

.cbg-form-group input::placeholder {
    color: #888;
}

.cbg-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #c8c8c8;
}

.cbg-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #d4860a;
}

/* Buttons */
.cbg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cbg-btn-primary {
    background: #d4860a;
    color: #fff;
}

.cbg-btn-primary:hover {
    background: #b8720a;
    color: #fff;
}

.cbg-btn-outline {
    background: transparent;
    color: #f0a830;
    border: 1px solid #d4860a;
}

.cbg-btn-outline:hover {
    background: #d4860a;
    color: #fff;
}

.cbg-btn-secondary {
    background: #2a2a2a;
    color: #cccccc;
    border: 1px solid #555;
}

.cbg-btn-secondary:hover {
    border-color: #d4860a;
    color: #f0a830;
}

.cbg-btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

.cbg-btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Divider */
.cbg-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #888;
    font-size: 13px;
}

.cbg-divider::before,
.cbg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #555;
}

/* Download section */
.cbg-download-section {
    text-align: center;
}

.cbg-download-box {
    background: #2a2a2a;
    border: 1px solid #d4860a;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.cbg-file-info {
    margin-bottom: 16px;
}

.cbg-file-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #cccccc;
}

.cbg-file-size {
    font-size: 13px;
    color: #999;
}

/* Install Grid - Android / iPhone cards */
.cbg-install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.cbg-install-card {
    text-align: left;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 12px;
    padding: 20px;
}

.cbg-install-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #cccccc;
    margin: 12px 0;
    text-align: center;
}

.cbg-install-icon {
    text-align: center;
    margin-bottom: 4px;
}

.cbg-install-icon svg {
    width: 48px;
    height: 48px;
}

.cbg-install-card ol {
    padding-left: 18px;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}

.cbg-install-card li {
    margin-bottom: 6px;
}

.cbg-install-card li strong {
    color: #cccccc;
}

.cbg-install-card a {
    color: #f0a830;
    text-decoration: underline;
    font-weight: 600;
}

.cbg-install-card a:hover {
    color: #ffc44d;
}

.cbg-install-android {
    border-color: #4caf5040;
}

.cbg-install-iphone {
    border-color: #2196f340;
}

/* Purchase section */
.cbg-purchase-section {
    text-align: center;
}

.cbg-lock-icon {
    margin-bottom: 16px;
}

.cbg-lock-icon svg {
    width: 64px;
    height: 64px;
}

.cbg-pricing {
    margin-top: 24px;
}

.cbg-price-tag {
    margin-bottom: 20px;
}

.cbg-price {
    font-size: 48px;
    font-weight: 800;
    color: #d4860a;
}

.cbg-price-note {
    display: block;
    font-size: 14px;
    color: #4caf50;
    font-weight: 600;
}

/* Features */
.cbg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cbg-feature {
    text-align: center;
    padding: 24px 20px;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
}

.cbg-feature-icon {
    margin-bottom: 16px;
}

.cbg-feature-icon svg {
    width: 40px;
    height: 40px;
}

.cbg-feature h3 {
    font-size: 15px;
    font-weight: 600;
    color: #cccccc;
    margin: 0 0 8px;
}

.cbg-feature p {
    font-size: 13px;
    color: #c8c8c8;
    margin: 0;
}

/* Store link */
.cbg-store-link {
    text-align: center;
}

/* Success */
.cbg-success-icon {
    margin-bottom: 16px;
}

.cbg-success-icon svg {
    width: 72px;
    height: 72px;
}

/* Messages */
#cbg-messages {
    margin-bottom: 20px;
}

.cbg-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px;
}

.cbg-message-success {
    background: #4caf5020;
    border: 1px solid #4caf50;
    color: #4caf50;
}

.cbg-message-error {
    background: #e5393520;
    border: 1px solid #e53935;
    color: #e53935;
}

.cbg-message-loading {
    background: #d4860a20;
    border: 1px solid #d4860a;
    color: #f0a830;
}

/* Utilities */
.cbg-text-center {
    text-align: center;
}

.cbg-mt-2 {
    margin-top: 16px;
}

.cbg-link {
    color: #f0a830;
    text-decoration: none;
}

.cbg-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .cbg-app-wrapper {
        padding: 10px;
    }

    .cbg-app-header {
        padding: 20px 16px;
    }

    .cbg-app-header h1 {
        font-size: 22px;
    }

    .cbg-section {
        padding: 16px;
    }

    .cbg-features-grid {
        grid-template-columns: 1fr;
    }

    .cbg-install-grid {
        grid-template-columns: 1fr;
    }

    .cbg-btn-large {
        padding: 14px 20px;
        font-size: 14px;
    }

    .cbg-feature-icon svg {
        width: 36px;
        height: 36px;
    }
}
