/**
 * Admin Documentation Styles for Costly Plugin
 *
 * This file contains all styles specific to the documentation section
 * of the Costly plugin admin area. It provides a clean, organized layout
 * for the documentation pages, including the sidebar navigation and
 * content display.
 *
 * @package     Costly_Pricing_Tables
 * @subpackage  Admin/Assets/CSS
 * @since       1.0.3
 * @author      Vortix | Estudio Creativo <web@vortixestudio.com>
 * @link        https://vortixestudio.com/plugins/costly-pricing-tables/
 * @license     GPL-3.0+
 * @copyright   2025 Vortix | Estudio Creativo
 */

/* Main documentation container */
.costly-docs-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.costly-docs-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 60px;
    align-self: flex-start;
    padding-right: 5px;
    transition: max-height 0.2s ease-out;
    will-change: max-height;
    z-index: 10;
    height: auto;
    max-height: none;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.costly-docs-nav,
.costly-docs-card {
    flex-shrink: 0;
    position: relative;
}

.costly-docs-nav ul {
    list-style: none;
    padding: 0;
    background: var(--costly-admin-white);
    border: 1px solid var(--costly-admin-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 2px 8px rgba(93, 147, 197, 0.08);
}

.costly-tab-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    color: var(--costly-admin-text);
    font-weight: 500;
    margin: 0;
    background: var(--costly-admin-white);
    position: relative;
    border-radius: 0;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--costly-admin-border);
}

.costly-tab-link:last-child {
    border-bottom: none;
}

.costly-tab-link.active,
.costly-tab-link.active:hover {
    background: linear-gradient(90deg, rgba(93, 147, 197, 0.25) 0%, transparent 100%);
    border-left-color: var(--costly-admin-primary);
    color: var(--costly-admin-primary);
    font-weight: 600;
}

.costly-tab-link:hover {
    background: rgba(93, 147, 197, 0.1);
    color: var(--costly-admin-primary);
    border-left-color: rgba(93, 147, 197, 0.3);
}

.costly-tab-link .dashicons-money-alt {
    display: none;
}

.costly-tab-link .costly-donate-emoji {
    display: inline-block;
    margin-right: 12px;
    font-size: 20px;
    vertical-align: middle;
}

.costly-documentation .costly-docs-sidebar .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    margin-right: 12px;
    color: inherit;
    transition: transform 0.15s ease;
}

.costly-docs-card {
    background: var(--costly-admin-white);
    border: 1px solid var(--costly-admin-border);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(93, 147, 197, 0.05);
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.costly-docs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--costly-admin-primary), var(--costly-admin-secondary));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.costly-docs-card:hover::before {
    opacity: 1;
}

.costly-docs-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--costly-admin-primary);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.costly-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.costly-quick-links li {
    margin-bottom: 8px;
}

.costly-quick-links li:last-child {
    margin-bottom: 0;
}

.costly-quick-links a {
    display: flex;
    align-items: center;
    padding: 12px 0 12px 12px;
    color: var(--costly-admin-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-left: -12px;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

.costly-quick-links a:hover {
    border-left-color: var(--costly-admin-primary);
    padding-left: 15px;
    color: var(--costly-admin-primary);
    background: transparent;
    transform: translateX(2px);
}

.costly-quick-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(93, 147, 197, 0.25), transparent);
    transition: width 0.3s ease;
}

.costly-quick-links a:hover::before {
    width: 100%;
}

.costly-docs-main {
    flex: 1;
    min-width: 0;
    background: var(--costly-admin-white);
    border: 1px solid var(--costly-admin-border);
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-left: 0;
}

.costly-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    border-radius: 15px;
}

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

.costly-docs-section {
    background: var(--costly-admin-white);
    border-radius: 4px;
    padding: 50px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.costly-form-section {
    background: var(--costly-admin-white);
    padding: 30px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    border-radius: 15px;
    margin-bottom: 0;
}

.costly-error-message {
    background: var(--costly-admin-white);
    border-radius: 15px;
    padding: 30px;
    line-height: 2;
    font-size: 14px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.costly-hook-example code .token.comment,
.costly-hook-example code .token.prolog,
.costly-hook-example code .token.doctype,
.costly-hook-example code .token.cdata {
    color: #6a9955;
}

.costly-hook-example code .token.punctuation {
    color: #d4d4d4;
}

.costly-hook-example code .token.property,
.costly-hook-example code .token.tag,
.costly-hook-example code .token.constant,
.costly-hook-example code .token.symbol,
.costly-hook-example code .token.deleted {
    color: #e06c75;
}

.costly-hook-example code .token.selector,
.costly-hook-example code .token.attr-name,
.costly-hook-example code .token.string,
.costly-hook-example code .token.char,
.costly-hook-example code .token.builtin,
.costly-hook-example code .token.inserted {
    color: #98c379;
}

.costly-hook-example code .token.operator,
.costly-hook-example code .token.entity,
.costly-hook-example code .token.url,
.costly-hook-example code .language-css .token.string,
.costly-hook-example code .style .token.string {
    color: #d19a66;
}

.costly-hook-example code .token.atrule,
.costly-hook-example code .token.attr-value,
.costly-hook-example code .token.keyword {
    color: #c678dd;
}

.costly-hook-example code .token.function,
.costly-hook-example code .token.class-name {
    color: #e5c07b;
}

.costly-hook-example code .token.important,
.costly-hook-example code .token.bold {
    font-weight: bold;
}

.costly-hook-example code .token.italic {
    font-style: italic;
}

.costly-hook-example pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    margin: 0;
    box-shadow: 0 2px 8px rgba(93, 147, 197, 0.08);
}

.costly-docs-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--costly-primary);
    border-radius: 50%;
    margin-right: 10px;
    background: linear-gradient(90deg, var(--costly-admin-primary), var(--costly-admin-secondary));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.costly-hook-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 20px;
    line-height: 1;
}

.costly-hook-params li {
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.costly-hook-action {
    background-color: rgba(24, 144, 255, 0.1);
    color: #1890ff;
}

.costly-hook-filter {
    background-color: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.costly-hook-section {
    margin: 30px 0;
    padding: 30px;
    background: #f9fafc;
    border: 1px solid #e5e9f2;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#costly-system-info-content {
    margin-bottom: 0;
}

.costly-hook-section h4 .dashicons {
    margin-right: 10px;
}

.costly-hook-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
}

.costly-faq-category {
    border: 1px solid var(--costly-admin-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.costly-faq-container h3 {
    background-color: var(--costly-admin-white);
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--costly-admin-text);
    transition: all 0.3s ease-in-out;
    color: var(--costly-admin-primary);
    font-weight: 600;
    position: relative;
    padding-left: 12px;
    gap: 12px;
}

.costly-faq-item .costly-faq-answer {
    padding: 20px;
    background-color: var(--costly-admin-white);
    border-top: 1px solid var(--costly-admin-border);
}

.costly-faq-item {
    max-height: 50px;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
    margin-bottom: 15px;
    border: 1px solid var(--costly-admin-border);
    border-radius: 15px;
}

.costly-faq-item.active {
    max-height: 1000px;
}

.costly-faq-container h3 span.dashicons {
    margin-left: auto;
}

.costly-faq-item.active h3 span.dashicons {
    transform: rotate(180deg);
}

.costly-faq-item .costly-faq-answer .costly-faq-actions,
.costly-faq-item .costly-faq-answer .costly-shortcode-container {
    margin-top: 25px;
}

.costly-faq-item .costly-faq-answer p:first-child {
    margin-top: 0;
}

.costly-faq-item .costly-faq-answer p:last-child {
    margin-bottom: 0;
}

.costly-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.costly-data-table th,
.costly-data-table td {
    border: 1px solid var(--costly-admin-border);
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.costly-docs-section .costly-table-card,
.costly-form-section .costly-table-card {
    display: flex;
    flex-direction: column;
}

.costly-docs-section .costly-table-card .costly-card-actions {
    margin-top: auto;
}

.costly-faq-container {
    margin: 20px 0 0 0;
}

.costly-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--costly-admin-primary);
    color: var(--costly-admin-white);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(93, 147, 197, 0.2);
}

.costly-step-header {
    display: flex;
    position: relative;
    gap: 20px;
}

.costly-docs-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.costly-step-header h3 {
    color: var(--costly-admin-primary);
    margin: 0;
    font-weight: 600;
    position: relative;
}

.costly-step-header h3 span.dashicons {
    margin-right: 10px;
}

.costly-step-content>p {
    margin-top: 0;
}

.costly-step-content .costly-feature-item h4,
.costly-form-section h4.costly-info-header {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 2;
}

.costly-step-content .costly-feature-item h4:first-child {
    margin-top: 0;
}

.costly-step-content .costly-feature-item h4 span,
.costly-form-section h4.costly-info-header span {
    margin-right: 10px;
}

.costly-step-content .costly-feature-item h4,
.costly-step-content .costly-feature-item p {
    margin-top: 0;
}

.costly-step-content .costly-feature-item p:last-child {
    margin-bottom: 0;
}

.costly-step-content .costly-feature-grid .costly-feature-item {
    flex-wrap: wrap;
    gap: 20px;
}

.costly-step-content .costly-feature-grid .costly-feature-item .costly-feature-icon {
    width: calc(50% - 10px);
}

.costly-info-content .costly-internal-link {
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    color: var(--costly-admin-text);
    font-weight: 500;
    margin: 0;
    position: relative;
    border-radius: 0;
    text-decoration: none;
    box-sizing: border-box;
    outline: none;
    margin: 0 2px;
    padding: 2px;
}

.costly-form-section .costly-section-header {
    background: var(--costly-admin-white);
    border: 1px solid var(--costly-admin-border);
    box-shadow: 0 1px 3px rgba(93, 147, 197, 0.1);
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.costly-faq-category-title {
    background-color: var(--costly-admin-white);
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--costly-admin-text);
    transition: all 0.6s ease-in-out;
}

.costly-faq-item .costly-faq-answer {
    padding: 20px;
    background-color: var(--costly-admin-white);
    border-top: 1px solid var(--costly-admin-border);
}

.costly-faq-item {
    max-height: 50px;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
    margin-bottom: 15px;
    border: 1px solid var(--costly-admin-border);
    border-radius: 15px;
}

.costly-faq-item:last-child {
    margin-bottom: 0;
}

.costly-faq-item.active {
    max-height: 1000px;
}

.costly-faq-container h3 span.dashicons {
    margin-left: auto;
}

.costly-faq-item.active h3 span.dashicons {
    transform: rotate(180deg);
}

.costly-faq-item .costly-faq-answer .costly-faq-actions,
.costly-faq-item .costly-faq-answer .costly-shortcode-container {
    margin-top: 25px;
}

.costly-faq-item .costly-faq-answer p:first-child {
    margin-top: 0;
}

.costly-faq-item .costly-faq-answer p:last-child {
    margin-bottom: 0;
}

#tab-developers .costly-tables-grid.example-code {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

#tab-developers .costly-tables-grid.example-code .costly-table-card {
    flex: auto;
}

.costly-form-section code {
    text-wrap: auto;
}

.costly-form-section .costly-tables-grid:last-child {
    margin-bottom: 0;
}

.costly-form-section .costly-card-header,
.costly-form-section .costly-card-content,
.costly-form-section .costly-card-actions {
    padding: 20px;
}

.costly-form-section .costly-card-content p:first-child {
    margin-top: 0;
}

.costly-form-section .costly-card-actions {
    margin-top: auto;
}

/* Modal Styles */
.costly-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.costly-modal-content {
    background: var(--costly-admin-white);
    border-radius: 6px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.costly-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--costly-admin-border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.costly-modal-header h2 {
    margin: 0;
    color: var(--costly-admin-text);
    font-size: 21px;
}

.costly-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--costly-admin-medium-gray);
    padding: 0;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px;
}

.costly-modal-close:hover {
    color: var(--costly-admin-text);
}

.costly-modal-body {
    padding: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
}

.costly-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--costly-admin-border);
    text-align: right;
}

.costly-modal-close-btn {
    background: var(--costly-admin-primary);
    color: var(--costly-admin-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.costly-modal-close-btn:hover {
    background: var(--costly-admin-secondary);
}

.costly-modal-body {
    line-height: 1.6;
}

.costly-modal-body h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
    color: var(--costly-admin-text);
    font-weight: 600;
}

.costly-modal-body h4 {
    margin-bottom: 0.8em;
    color: var(--costly-admin-text);
    font-weight: 500;
}

.costly-modal-body h5 {
    margin-bottom: 0.8em;
    color: var(--costly-admin-text);
    font-weight: 500;
}

/* Show modal when active */
.costly-modal.active {
    display: flex !important;
}

.costly-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--costly-admin-primary);
    color: var(--costly-admin-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 10px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.changelog-section {
    margin-bottom: 20px;
}

.changelog-section li ol,
.changelog-section li ul {
    margin-top: 20px;
    margin-bottom: 20px;
}

.changelog-table {
    margin-top: 20px;
}

.changelog-table th {
    background-color: var(--costly-admin-white);
    color: var(--costly-admin-text);
    font-weight: 600;
    padding: 10px;
    width: 25%;
    text-align: center;
    border-bottom: 1px solid var(--costly-admin-border);
}

.changelog-table td {
    padding: 10px;
    width: 25%;
    text-align: center;
    border-bottom: 1px solid var(--costly-admin-border);
}

.closing-message {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--costly-admin-border);
    text-align: center;
}

.closing-message .text {
    font-style: italic;
    color: var(--costly-admin-medium-gray);
}

.closing-message .text-autor {
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--costly-admin-text);
}

.changelog-type {
    background-color: transparent;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 10px;
    line-height: 1.2;
    display: inline-block;
}

.changelog-type.new {
    background-color: var(--costly-admin-primary);
    color: var(--costly-admin-white);
}

.changelog-type.improved {
    background-color: var(--costly-admin-secondary);
    color: var(--costly-admin-white);
}

.changelog-type.added {
    background-color: var(--costly-admin-success);
    color: var(--costly-admin-white);
}

.changelog-type.performance {
    background-color: var(--costly-admin-warning);
    color: var(--costly-admin-white);
}

.changelog-type.tests {
    background-color: var(--costly-admin-info);
    color: var(--costly-admin-white);
}

.changelog-type.security {
    background-color: var(--costly-admin-error);
    color: var(--costly-admin-white);
}


/* Enhanced Donation Page Styles */
.costly-donate-hero {
    background: linear-gradient(135deg, var(--costly-admin-primary) 0%, var(--costly-admin-secondary) 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    color: var(--costly-admin-white);
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.costly-donate-hero::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.costly-hero-content {
    flex: 2;
}

.costly-hero-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.costly-hero-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--costly-admin-white);
}

.costly-hero-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.costly-stat-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.costly-stat-number {
    font-size: 30px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.costly-stat-label {
    font-size: 15px;
    opacity: 0.9;
}

/* Impact Grid */
.costly-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.costly-impact-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.costly-impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.costly-impact-card:hover::before {
    left: 100%;
}

.costly-impact-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.costly-impact-card h4 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 15px;
}

/* Support Options */
.costly-support-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.costly-support-card {
    background: var(--costly-admin-white);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    overflow: hidden;
}

.costly-support-primary {
    background: linear-gradient(135deg, var(--costly-admin-primary), var(--costly-admin-secondary));
    color: var(--costly-admin-white);
    transform: scale(1.02);
}

.costly-support-primary .costly-support-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.costly-support-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.costly-support-icon {
    font-size: 40px;
    min-width: 60px;
}

.costly-support-title h4 {
    font-size: 24px;
    margin: 0 0 5px 0;
}

.costly-support-subtitle {
    opacity: 0.8;
    font-size: 14px;
}

.costly-support-content {
    padding: 30px;
}

.costly-donate-actions {
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

/* Removed unused CSS classes for better performance and maintainability */

.costly-tier-header h4 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.costly-social-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.costly-social-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.costly-twitter {
    background: var(--costly-admin-primary);
    color: var(--costly-admin-white) !important;
}

.costly-linkedin {
    background: var(--costly-admin-secondary);
    color: var(--costly-admin-white) !important;
}

.costly-dev-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.costly-dev-item {
    background: #f0fdf4;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #bbf7d0;
}

}

.costly-tier-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--costly-admin-primary);
}

.costly-tier-content {
    padding: 0 30px 30px;
}

.costly-tier-gold .costly-tier-description {
    padding-right: 30px;
}

.costly-tier-description p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.costly-tier-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.costly-perk-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.costly-perk-item:last-child {
    border-bottom: none;
}

.costly-perk-icon {
    font-size: 18px;
    min-width: 24px;
}

/* Help Grid */
.costly-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.costly-help-card {
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border-radius: 20px;
    padding: 35px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.costly-help-card .costly-donate-actions {
    padding: 0;
}

.costly-help-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--costly-admin-primary);
}

.costly-help-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.costly-help-card h4 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 15px;
    text-align: center;
}

.costly-translation-info {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.costly-translation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.costly-translation-item:last-child {
    margin-bottom: 0;
}

.costly-language-progress {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.costly-lang-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border-radius: 12px;
    background: var(--costly-admin-white);
    border: 1px solid var(--costly-admin-border);
}

.costly-flag {
    font-size: 20px;
}

.costly-lang-name {
    font-weight: 500;
}

.costly-report-tips {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.costly-report-tips ul {
    margin: 15px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.costly-report-tips li {
    margin-bottom: 8px;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.6;
}

.costly-ideas-showcase {
    margin: 20px 0;
}

.costly-idea-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.costly-idea-implemented {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.costly-idea-planned {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.costly-idea-considering {
    background: #f0f9ff;
    border: 1px solid #93c5fd;
}

.costly-idea-status {
    font-size: 16px;
    min-width: 24px;
}

/* Buttons */
.costly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    box-shadow: none !important;
    outline: none !important;
}

.costly-btn-gradient {
    background: linear-gradient(135deg, var(--costly-admin-text), var(--costly-admin-secondary));
    color: var(--costly-admin-white);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.costly-btn-gradient:hover {
    transform: translateY(-2px);
    color: var(--costly-admin-white);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.costly-btn-large {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 15px;
}

.costly-btn-outline {
    background: transparent;
    border: 2px solid var(--costly-admin-primary);
    color: var(--costly-admin-primary);
}

.costly-btn-outline:hover {
    background: var(--costly-admin-primary);
    color: var(--costly-admin-white);
    transform: translateY(-2px);
}

.costly-secure-note {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.8;
}

/* Gratitude Section */
.costly-gratitude-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 25px;
    padding: 50px;
    margin: 40px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.costly-gratitude-section::before {
    content: '💖';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 60px;
    opacity: 0.1;
}

.costly-gratitude-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.costly-gratitude-message h4 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 20px;
}

.costly-gratitude-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

.costly-donation-form {
    text-align: center;
}

.costly-donation-method svg {
    width: 50px;
    vertical-align: bottom;
    margin-left: 5px;
}

.costly-amount-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.costly-amount-row .costly-amount-option {
    max-width: 20%;
    width: 100%;
    flex: auto;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--costly-admin-text);
    color: var(--costly-admin-white);
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
}

.costly-btn-gradient .dashicons {
    font-size: 15px;
    height: auto;
}

.costly-amount-row .costly-amount-option .costly-amount-text {
    font-weight: 600;
    font-size: 14px;
}

.costly-amount-row .costly-amount-option .costly-amount-description {
    font-size: 15px;
}

.costly-gratitude-signature {
    font-size: 18px;
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(93, 147, 197, 0.1);
    border-radius: 15px;
    color: var(--costly-admin-primary);
    border: 1px solid rgba(93, 147, 197, 0.2);
}

.costly-team-info {
    background: var(--costly-admin-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(93, 147, 197, 0.1);
    border: 1px solid var(--costly-admin-border);
}

.costly-team-avatar {
    margin-bottom: 20px;
}

.costly-avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--costly-admin-primary), var(--costly-admin-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.costly-avatar-circle svg {
    width: 40px;
    fill: var(--costly-admin-white);
}

.costly-team-details h5 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 20px;
}

.costly-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    box-shadow: none !important;
    outline: none !important;
}

.costly-contact-item:last-child {
    margin-bottom: 0;
}

.costly-contact-item:hover {
    background: #f1f5f9;
}

.costly-contact-item a {
    text-decoration: none;
    color: var(--costly-admin-primary);
    font-weight: 500;
}

/* Roadmap */
.costly-roadmap-preview {
    background: linear-gradient(135deg, var(--costly-admin-primary), var(--costly-admin-secondary));
    color: var(--costly-admin-white);
    padding: 35px;
    border-radius: 20px;
    margin-top: 40px;
}

.costly-roadmap-preview h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--costly-admin-white);
}

.costly-roadmap-items {
    margin-top: 25px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.costly-roadmap-item {
    display: flex;
    flex: auto;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.costly-roadmap-status {
    font-size: 24px;
    min-width: 40px;
}

.costly-roadmap-content {
    flex: 1;
}

.costly-roadmap-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.costly-roadmap-eta {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .costly-donate-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .costly-hero-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .costly-stat-item {
        flex: 1;
        margin: 0 10px;
    }

    .costly-impact-grid {
        grid-template-columns: 1fr;
    }

    .costly-community-grid {
        grid-template-columns: 1fr;
    }

    .costly-tiers-container {
        grid-template-columns: 1fr;
    }

    .costly-tier-silver {
        transform: none;
    }

    .costly-help-grid {
        grid-template-columns: 1fr;
    }

    .costly-gratitude-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .costly-donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .costly-donation-amounts {
        grid-template-columns: 1fr;
    }

    .costly-social-actions {
        flex-direction: column;
    }

    .costly-hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}